summaryrefslogtreecommitdiff
path: root/spec/mspec/spec/runner/shared_spec.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-29 14:35:09 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-29 14:35:09 +0000
commitd55cd34ba8680310fb07c2f5c1c6a27b4902865d (patch)
treeabc35065c29846042d84e71b6bf500df5cd76d68 /spec/mspec/spec/runner/shared_spec.rb
parent0a11abfc7ec92fcf4eb9e973c68588f079fdb60d (diff)
Update to ruby/mspec@021a119
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/mspec/spec/runner/shared_spec.rb')
-rw-r--r--spec/mspec/spec/runner/shared_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/mspec/spec/runner/shared_spec.rb b/spec/mspec/spec/runner/shared_spec.rb
index 791588fdca..b91800b7db 100644
--- a/spec/mspec/spec/runner/shared_spec.rb
+++ b/spec/mspec/spec/runner/shared_spec.rb
@@ -11,6 +11,7 @@ describe Object, "#it_behaves_like" do
@state = ContextState.new "Top level"
@state.instance_variable_set :@parsed, true
+ @state.singleton_class.send(:public, :it_behaves_like)
@shared = ContextState.new :shared_spec, :shared => true
MSpec.stub(:retrieve_shared).and_return(@shared)
@@ -51,6 +52,7 @@ describe Object, "#it_behaves_like" do
@state2 = ContextState.new "Second top level"
@state2.instance_variable_set :@parsed, true
+ @state2.singleton_class.send(:public, :it_behaves_like)
end
it "ensures the shared spec state is distinct" do