aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorAlban Peignier2017-08-27 14:20:15 +0200
committerAlban Peignier2017-08-27 14:20:15 +0200
commit954902fde8f78bd276a1ce11048fe26af47a0d64 (patch)
treef7247e1f7fece65333f8c80421a3a71fc70fa50b /spec
parent15ab19a081cc2272f6d1fff280a72060d02a35d4 (diff)
downloadchouette-core-954902fde8f78bd276a1ce11048fe26af47a0d64.tar.bz2
Import#referential is mandatory only for NetexImport. Refs #4273
Diffstat (limited to 'spec')
-rw-r--r--spec/models/import_spec.rb1
-rw-r--r--spec/models/netex_import_spec.rb5
2 files changed, 5 insertions, 1 deletions
diff --git a/spec/models/import_spec.rb b/spec/models/import_spec.rb
index 164769fd5..adefadd2b 100644
--- a/spec/models/import_spec.rb
+++ b/spec/models/import_spec.rb
@@ -7,7 +7,6 @@ RSpec.describe Import, :type => :model do
it { should enumerize(:status).in("aborted", "canceled", "failed", "new", "pending", "running", "successful") }
it { should validate_presence_of(:file) }
- it { should validate_presence_of(:referential) }
it { should validate_presence_of(:workbench) }
let(:workbench_import) { build_stubbed(:workbench_import) }
diff --git a/spec/models/netex_import_spec.rb b/spec/models/netex_import_spec.rb
new file mode 100644
index 000000000..6013bdfae
--- /dev/null
+++ b/spec/models/netex_import_spec.rb
@@ -0,0 +1,5 @@
+RSpec.describe NetexImport, :type => :model do
+
+ it { should validate_presence_of(:referential) }
+
+end