Class: CouchPotato::RSpec::MapToProxy

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

Instance Method Summary (collapse)

Constructor Details

- (MapToProxy) initialize(input_ruby)

Returns a new instance of MapToProxy



7
8
9
# File 'lib/couch_potato/rspec/matchers/map_to_matcher.rb', line 7

def initialize(input_ruby)
  @input_ruby = input_ruby
end

Instance Method Details

- (Object) to(*expected_ruby)



11
12
13
# File 'lib/couch_potato/rspec/matchers/map_to_matcher.rb', line 11

def to(*expected_ruby)
  MapToMatcher.new(expected_ruby, @input_ruby)
end