diff options
| author | Xinhui | 2017-08-09 14:21:25 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-08-09 14:21:25 +0200 | 
| commit | 5e14bbe1f1e7cb923a4a1454da9fab399f2027df (patch) | |
| tree | a9736b3e46ec7d28b59b9b1d5173d2d1414cdd5f | |
| parent | 03b241936978513468d5931f53dcd256682a9334 (diff) | |
| download | chouette-core-5e14bbe1f1e7cb923a4a1454da9fab399f2027df.tar.bz2 | |
Replace netex objectid support by codifligne objectid support for network and company
| -rw-r--r-- | app/models/chouette/company.rb | 2 | ||||
| -rw-r--r-- | app/models/chouette/network.rb | 2 | ||||
| -rw-r--r-- | spec/models/chouette/company_spec.rb | 7 | ||||
| -rw-r--r-- | spec/models/chouette/network_spec.rb | 7 | 
4 files changed, 4 insertions, 14 deletions
| diff --git a/app/models/chouette/company.rb b/app/models/chouette/company.rb index c153a2d6b..a472020e1 100644 --- a/app/models/chouette/company.rb +++ b/app/models/chouette/company.rb @@ -1,6 +1,6 @@  class Chouette::Company < Chouette::ActiveRecord    include CompanyRestrictions -  include StifNetexAttributesSupport +  include StifCodifligneAttributesSupport    include LineReferentialSupport    has_many :lines diff --git a/app/models/chouette/network.rb b/app/models/chouette/network.rb index d710112f9..8df205789 100644 --- a/app/models/chouette/network.rb +++ b/app/models/chouette/network.rb @@ -1,5 +1,5 @@  class Chouette::Network < Chouette::ActiveRecord -  include StifNetexAttributesSupport +  include StifCodifligneAttributesSupport    include NetworkRestrictions    include LineReferentialSupport    # FIXME http://jira.codehaus.org/browse/JRUBY-6358 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)} | 
