aboutsummaryrefslogtreecommitdiffstats
path: root/spec/concerns
diff options
context:
space:
mode:
authorRobert2017-07-31 14:57:30 +0200
committerRobert2017-07-31 14:57:30 +0200
commit54856654f0e7c1802ab785f8dff689f35c92fe80 (patch)
tree6b9e06f91f0b852eb3158aa0181483ed33d8f8b6 /spec/concerns
parent609b774388a7f57703ec14a224363c88f3564eaf (diff)
downloadchouette-core-54856654f0e7c1802ab785f8dff689f35c92fe80.tar.bz2
Refs: #3507@2h CR 2nd leg
Diffstat (limited to 'spec/concerns')
-rw-r--r--spec/concerns/configurable_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/concerns/configurable_spec.rb b/spec/concerns/configurable_spec.rb
index 822f572c1..330241b72 100644
--- a/spec/concerns/configurable_spec.rb
+++ b/spec/concerns/configurable_spec.rb
@@ -14,7 +14,9 @@ RSpec.describe Configurable do
subject.config.something = something
expect( subject.config.something ).to eq(something)
+ # Instances delegate to the class
expect( subject.new.send(:config).something ).to eq(something)
+ # **All** instances delegate to the class
expect( subject.new.send(:config).something ).to eq(something)
end
@@ -25,7 +27,9 @@ RSpec.describe Configurable do
end
expect( subject.config.something ).to eq(something)
+ # Instances delegate to the class
expect( subject.new.send(:config).something ).to eq(something)
+ # **All** instances delegate to the class
expect( subject.new.send(:config).something ).to eq(something)
end
end