Module: RSpec::Matchers
- Defined in:
- lib/couch_potato/rspec/matchers.rb
Instance Method Summary collapse
- #list(results) ⇒ Object
- #map(document) ⇒ Object
- #map_reduce(*docs) ⇒ Object
- #reduce(keys, values) ⇒ Object
- #rereduce(keys, values) ⇒ Object
Instance Method Details
#list(results) ⇒ Object
47 48 49 |
# File 'lib/couch_potato/rspec/matchers.rb', line 47 def list(results) CouchPotato::RSpec::ListAsProxy.new(results) end |
#map(document) ⇒ Object
35 36 37 |
# File 'lib/couch_potato/rspec/matchers.rb', line 35 def map(document) CouchPotato::RSpec::MapToProxy.new(document) end |
#map_reduce(*docs) ⇒ Object
51 52 53 |
# File 'lib/couch_potato/rspec/matchers.rb', line 51 def map_reduce(*docs) CouchPotato::RSpec::MapReduceToProxy.new(docs) end |
#reduce(keys, values) ⇒ Object
39 40 41 |
# File 'lib/couch_potato/rspec/matchers.rb', line 39 def reduce(keys, values) CouchPotato::RSpec::ReduceToProxy.new(keys, values) end |
#rereduce(keys, values) ⇒ Object
43 44 45 |
# File 'lib/couch_potato/rspec/matchers.rb', line 43 def rereduce(keys, values) CouchPotato::RSpec::ReduceToProxy.new(keys, values, true) end |