Merge pull request #1118 from rishabhs95/free-ticket

ability to create and purchase free tickets
This commit is contained in:
Hernán Schmidt 2017-01-31 14:54:18 +01:00 committed by GitHub
commit a4ef10cf1b
9 changed files with 88 additions and 24 deletions

View file

@ -22,14 +22,14 @@ describe Ticket do
should validate_presence_of(:price_currency)
end
it 'is not valid with a price_cents equals zero' do
should_not allow_value(0).for(:price_cents)
end
it 'is not valid with a price_cents smaller than zero' do
should_not allow_value(-1).for(:price_cents)
end
it 'is valid with a price_cents equals zero' do
should allow_value(0).for(:price_cents)
end
it 'is valid with a price_cents greater than zero' do
should allow_value(1).for(:price_cents)
end