aboutsummaryrefslogtreecommitdiffstats
path: root/spec/mspec/lib/mspec/matchers/have_constant.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mspec/lib/mspec/matchers/have_constant.rb')
-rw-r--r--spec/mspec/lib/mspec/matchers/have_constant.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/mspec/lib/mspec/matchers/have_constant.rb b/spec/mspec/lib/mspec/matchers/have_constant.rb
index df95219e53..6ec7c75b85 100644
--- a/spec/mspec/lib/mspec/matchers/have_constant.rb
+++ b/spec/mspec/lib/mspec/matchers/have_constant.rb
@@ -5,8 +5,8 @@ class HaveConstantMatcher < VariableMatcher
self.description = 'constant'
end
-class Object
- def have_constant(variable)
+module MSpecMatchers
+ private def have_constant(variable)
HaveConstantMatcher.new(variable)
end
end