aboutsummaryrefslogtreecommitdiffstats
path: root/spec/mspec/lib/mspec/matchers/have_singleton_method.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mspec/lib/mspec/matchers/have_singleton_method.rb')
-rw-r--r--spec/mspec/lib/mspec/matchers/have_singleton_method.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/mspec/lib/mspec/matchers/have_singleton_method.rb b/spec/mspec/lib/mspec/matchers/have_singleton_method.rb
index 5f3acb84e2..95d78709ff 100644
--- a/spec/mspec/lib/mspec/matchers/have_singleton_method.rb
+++ b/spec/mspec/lib/mspec/matchers/have_singleton_method.rb
@@ -17,8 +17,8 @@ class HaveSingletonMethodMatcher < MethodMatcher
end
end
-class Object
- def have_singleton_method(method, include_super=true)
+module MSpecMatchers
+ private def have_singleton_method(method, include_super=true)
HaveSingletonMethodMatcher.new method, include_super
end
end