Class: CouchPotato::RSpec::ListAsProxy

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

Instance Method Summary (collapse)

Constructor Details

- (ListAsProxy) initialize(results_ruby)

Returns a new instance of ListAsProxy



4
5
6
# File 'lib/couch_potato/rspec/matchers/list_as_matcher.rb', line 4

def initialize(results_ruby)
  @results_ruby = results_ruby
end

Instance Method Details

- (Object) as(expected_ruby)



8
9
10
# File 'lib/couch_potato/rspec/matchers/list_as_matcher.rb', line 8

def as(expected_ruby)
  ListAsMatcher.new(expected_ruby, @results_ruby)
end