Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Spec
- module Matchers
- class Have #:nodoc:
- # ...
- def method_missing(sym, *args, &block)
- @collection_name = sym
- @plural_collection_name = Inflector.pluralize(sym.to_s) if Object.const_defined?(:Inflector)
- @args = args
- @block = block
- self
- end
- # ...
- end
- end
- end
Add Comment
Please, Sign In to add comment