mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
fix tests for age_range
This commit is contained in:
parent
79b97eb113
commit
6e5fd86ad3
6
test/fixtures/age_ranges.yml
vendored
6
test/fixtures/age_ranges.yml
vendored
@ -2,12 +2,12 @@
|
||||
|
||||
youngs:
|
||||
id: 1
|
||||
range: De 10 à 21 ans
|
||||
name: De 10 à 21 ans
|
||||
|
||||
adults:
|
||||
id: 2
|
||||
range: A partir de 18 ans
|
||||
name: A partir de 18 ans
|
||||
|
||||
seniors:
|
||||
id: 3
|
||||
range: A partir de 65 ans
|
||||
name: A partir de 65 ans
|
||||
|
@ -13,7 +13,7 @@ class EventTest < ActiveSupport::TestCase
|
||||
|
||||
test 'event must have an age range' do
|
||||
e = Event.find(2)
|
||||
assert_not_nil e.age_range.range
|
||||
assert_not_nil e.age_range.name
|
||||
end
|
||||
|
||||
test 'event must not have any age range' do
|
||||
|
Loading…
Reference in New Issue
Block a user