Module: Spec::Matchers
- Defined in:
- lib/couch_potato/rspec/matchers.rb
Instance Method Summary collapse
- #list(results) ⇒ Object
- #map(document) ⇒ Object
- #reduce(docs, keys) ⇒ Object
- #rereduce(docs, keys) ⇒ Object
Instance Method Details
#list(results) ⇒ Object
34 35 36 |
# File 'lib/couch_potato/rspec/matchers.rb', line 34 def list(results) CouchPotato::RSpec::ListAsProxy.new(results) end |
#map(document) ⇒ Object
22 23 24 |
# File 'lib/couch_potato/rspec/matchers.rb', line 22 def map(document) CouchPotato::RSpec::MapToProxy.new(document) end |
#reduce(docs, keys) ⇒ Object
26 27 28 |
# File 'lib/couch_potato/rspec/matchers.rb', line 26 def reduce(docs, keys) CouchPotato::RSpec::ReduceToProxy.new(docs, keys) end |
#rereduce(docs, keys) ⇒ Object
30 31 32 |
# File 'lib/couch_potato/rspec/matchers.rb', line 30 def rereduce(docs, keys) CouchPotato::RSpec::ReduceToProxy.new(docs, keys, true) end |