aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/line_referential_spec.rb
diff options
context:
space:
mode:
authorXinhui2016-05-10 16:34:31 +0200
committerXinhui2016-05-10 16:47:46 +0200
commit17b85942577dd038d1ba12a9e5af775196fe4a3a (patch)
tree089c2fa854daf5117705937cc1812222206d9741 /spec/models/line_referential_spec.rb
parent848e6de7d25c41ee3b6cfb77740f0ce2f9eb0dd3 (diff)
downloadchouette-core-17b85942577dd038d1ba12a9e5af775196fe4a3a.tar.bz2
Add model LineReferential
Refs #824
Diffstat (limited to 'spec/models/line_referential_spec.rb')
-rw-r--r--spec/models/line_referential_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/models/line_referential_spec.rb b/spec/models/line_referential_spec.rb
new file mode 100644
index 000000000..70c005017
--- /dev/null
+++ b/spec/models/line_referential_spec.rb
@@ -0,0 +1,9 @@
+require 'spec_helper'
+
+RSpec.describe LineReferential, :type => :model do
+ it 'should have a valid factory' do
+ expect(FactoryGirl.build(:line_referential)).to be_valid
+ end
+
+ it { should validate_presence_of(:name) }
+end