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

- (MapReduceToProxy) initialize(*input_ruby)



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

- (Object) to(*expected_ruby)



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

- (Object) with_options(options)



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