Class: CouchPotato::RSpec::MapReduceToProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/couch_potato/rspec/matchers/map_reduce_to_matcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(*input_ruby) ⇒ 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 with_options(options)
  @options = options
  self
end