aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorXinhui2017-08-09 14:21:25 +0200
committerXinhui2017-08-09 14:21:25 +0200
commit5e14bbe1f1e7cb923a4a1454da9fab399f2027df (patch)
treea9736b3e46ec7d28b59b9b1d5173d2d1414cdd5f /spec
parent03b241936978513468d5931f53dcd256682a9334 (diff)
downloadchouette-core-5e14bbe1f1e7cb923a4a1454da9fab399f2027df.tar.bz2
Replace netex objectid support by codifligne objectid support for network and company
Diffstat (limited to 'spec')
-rw-r--r--spec/models/chouette/company_spec.rb7
-rw-r--r--spec/models/chouette/network_spec.rb7
2 files changed, 2 insertions, 12 deletions
diff --git a/spec/models/chouette/company_spec.rb b/spec/models/chouette/company_spec.rb
index 3da8b4311..a3101d79c 100644
--- a/spec/models/chouette/company_spec.rb
+++ b/spec/models/chouette/company_spec.rb
@@ -1,13 +1,8 @@
require 'spec_helper'
describe Chouette::Company, :type => :model do
-
subject { create(:company) }
-
- it { is_expected.to validate_presence_of :name }
-
- # it { should validate_presence_of :objectid }
- it { is_expected.to validate_uniqueness_of :objectid }
+ it { should validate_presence_of :name }
describe "#nullables empty" do
it "should set null empty nullable attributes" do
diff --git a/spec/models/chouette/network_spec.rb b/spec/models/chouette/network_spec.rb
index c9e510e84..32bacc512 100644
--- a/spec/models/chouette/network_spec.rb
+++ b/spec/models/chouette/network_spec.rb
@@ -1,13 +1,8 @@
require 'spec_helper'
describe Chouette::Network, :type => :model do
-
subject { create(:network) }
-
- it { is_expected.to validate_presence_of :name }
-
- # it { should validate_presence_of :objectid }
- it { is_expected.to validate_uniqueness_of :objectid }
+ it { should validate_presence_of :name }
describe "#stop_areas" do
let!(:line){create(:line, :network => subject)}