diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/factories.rb | 2 | ||||
| -rw-r--r-- | spec/models/referential_spec.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb index c5c1c0ff0..c36f1c71a 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -3,6 +3,8 @@ FactoryGirl.define do factory :referential do |f| f.sequence(:name) { |n| "Test #{n}" } f.sequence(:slug) { |n| "test_#{n}" } + f.sequence(:prefix) { |n| "test_#{n}" } + f.time_zone "Europe/Paris" end factory :user do |f| diff --git a/spec/models/referential_spec.rb b/spec/models/referential_spec.rb index 363fe237f..bb6158d4f 100644 --- a/spec/models/referential_spec.rb +++ b/spec/models/referential_spec.rb @@ -4,5 +4,7 @@ describe Referential do it { should validate_presence_of(:name) } it { should validate_presence_of(:slug) } + it { should validate_presence_of(:prefix) } + it { should validate_presence_of(:time_zone) } end
\ No newline at end of file |
