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