Make ticket layout configurable

This commit is contained in:
siddhantbajaj 2017-06-30 05:26:21 +05:30
parent f37d3095e1
commit a21d95c486
7 changed files with 19 additions and 1 deletions

View file

@ -10,6 +10,7 @@ FactoryGirl.define do
start_hour 9
end_hour 20
registration_limit 0
ticket_layout 0
description { Faker::Hipster.paragraph }
organization
after(:create) do |conference|

View file

@ -1573,6 +1573,10 @@ describe Conference do
should validate_presence_of(:end_hour)
end
it 'is not valid without a ticket_layout' do
should validate_presence_of(:ticket_layout)
end
it 'is not valid with a duplicate short title' do
should validate_uniqueness_of(:short_title)
end