diff options
Diffstat (limited to 'spec/mspec/lib/mspec/matchers/method.rb')
-rw-r--r-- | spec/mspec/lib/mspec/matchers/method.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/mspec/lib/mspec/matchers/method.rb b/spec/mspec/lib/mspec/matchers/method.rb new file mode 100644 index 0000000000..e8cdfa62ff --- /dev/null +++ b/spec/mspec/lib/mspec/matchers/method.rb @@ -0,0 +1,10 @@ +class MethodMatcher + def initialize(method, include_super=true) + @include_super = include_super + @method = method.to_sym + end + + def matches?(mod) + raise Exception, "define #matches? in the subclass" + end +end |