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

#initialize(input_ruby) ⇒ MapToProxy

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

#to(*expected_ruby) ⇒ Object



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