aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/referential_metadata_spec.rb
diff options
context:
space:
mode:
authorcedricnjanga2017-09-11 16:06:42 +0200
committercedricnjanga2017-09-11 16:21:41 +0200
commit8fe9a39516f6fb71545d6329c448680d6f8c75d1 (patch)
tree0b0e231aea62d32fe91544cd79c8224a755ceaf6 /spec/models/referential_metadata_spec.rb
parentecef9d98cbe08e42434753477da4886dcfcb02bb (diff)
downloadchouette-core-8fe9a39516f6fb71545d6329c448680d6f8c75d1.tar.bz2
Update of ReferentialsController#new :
- Add some context to referential and workbench decorator to access current_referential and assign it to the cloned referential - Add a build_referential method to avoir duplicates of code (in the controller and in the model), need to clean a bit more - Need to add some Spec features to take into account the functional scope of the current_user
Diffstat (limited to 'spec/models/referential_metadata_spec.rb')
-rw-r--r--spec/models/referential_metadata_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/referential_metadata_spec.rb b/spec/models/referential_metadata_spec.rb
index 775e6f228..291ed974a 100644
--- a/spec/models/referential_metadata_spec.rb
+++ b/spec/models/referential_metadata_spec.rb
@@ -30,8 +30,8 @@ RSpec.describe ReferentialMetadata, :type => :model do
expect(new_referential_metadata.referential).to be(nil)
end
- it "should have the same referential_source" do
- expect(new_referential_metadata.referential_source).to eq(referential_metadata.referential_source)
+ it "should have the right referential_source" do
+ expect(new_referential_metadata.referential_source).to eq(referential_metadata.referential)
end
end