aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-04-26 11:21:59 +0200
committerJohan Van Ryseghem2018-04-26 11:22:34 +0200
commite69dfa80737402286adbfe6f29edae2efca36fd8 (patch)
tree3d3356cbb7bf1f0f507f7b2dc37b9cf94b12a463
parentcc1be3219f3263e23023590ab04bc8cc94405754 (diff)
downloadchouette-core-e69dfa80737402286adbfe6f29edae2efca36fd8.tar.bz2
Refs #6811; Fix specs
-rw-r--r--spec/controllers/referentials_controller_spec.rb2
-rw-r--r--spec/models/referential/referential_oid_format_from_wkbch_spec.rb1
2 files changed, 1 insertions, 2 deletions
diff --git a/spec/controllers/referentials_controller_spec.rb b/spec/controllers/referentials_controller_spec.rb
index ff450c905..acab3abd9 100644
--- a/spec/controllers/referentials_controller_spec.rb
+++ b/spec/controllers/referentials_controller_spec.rb
@@ -94,7 +94,7 @@ describe ReferentialsController, :type => :controller do
expect(new_referential.stop_area_referential).to eq referential.stop_area_referential
expect(new_referential.objectid_format).to eq referential.objectid_format
expect(new_referential.prefix).to eq referential.prefix
- expect(new_referential.slug).to eq "#{referential.slug}_clone"
+ expect(new_referential.slug).to be_nil
expect(new_referential.workbench).to eq workbench
end
end
diff --git a/spec/models/referential/referential_oid_format_from_wkbch_spec.rb b/spec/models/referential/referential_oid_format_from_wkbch_spec.rb
index b3ee68be3..6783ab55d 100644
--- a/spec/models/referential/referential_oid_format_from_wkbch_spec.rb
+++ b/spec/models/referential/referential_oid_format_from_wkbch_spec.rb
@@ -51,7 +51,6 @@ RSpec.describe Referential do
expect( described_class )
.to receive(:new)
.with(name: I18n.t("activerecord.copy", name: source.name),
- slug: "#{source.slug}_clone",
prefix: source.prefix,
time_zone: source.time_zone,
bounds: source.bounds,