Class: CouchPotato::RSpec::ListAsProxy
- Inherits:
-
Object
- Object
- CouchPotato::RSpec::ListAsProxy
- Defined in:
- lib/couch_potato/rspec/matchers/list_as_matcher.rb
Instance Method Summary collapse
- #as(expected_ruby) ⇒ Object
-
#initialize(results_ruby) ⇒ ListAsProxy
constructor
A new instance of ListAsProxy.
Constructor Details
#initialize(results_ruby) ⇒ ListAsProxy
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
#as(expected_ruby) ⇒ Object
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 |