Class: CouchPotato::RSpec::MapReduceToProxy
- Inherits:
-
Object
- Object
- CouchPotato::RSpec::MapReduceToProxy
- Defined in:
- lib/couch_potato/rspec/matchers/map_reduce_to_matcher.rb
Instance Method Summary collapse
-
#initialize(*input_ruby) ⇒ MapReduceToProxy
constructor
A new instance of MapReduceToProxy.
- #to(*expected_ruby) ⇒ Object
- #with_options(options) ⇒ Object
Constructor Details
#initialize(*input_ruby) ⇒ MapReduceToProxy
Returns a new instance of MapReduceToProxy.
6 7 8 |
# File 'lib/couch_potato/rspec/matchers/map_reduce_to_matcher.rb', line 6 def initialize(*input_ruby) @input_ruby, @options = input_ruby.flatten, {} end |
Instance Method Details
#to(*expected_ruby) ⇒ Object
15 16 17 |
# File 'lib/couch_potato/rspec/matchers/map_reduce_to_matcher.rb', line 15 def to(*expected_ruby) MapReduceToMatcher.new(expected_ruby, @input_ruby, @options) end |
#with_options(options) ⇒ Object
10 11 12 13 |
# File 'lib/couch_potato/rspec/matchers/map_reduce_to_matcher.rb', line 10 def () @options = self end |