Module: Spec::Matchers

Defined in:
lib/couch_potato/rspec/matchers.rb

Instance Method Summary collapse

Instance Method Details

#map(document) ⇒ Object



21
22
23
# File 'lib/couch_potato/rspec/matchers.rb', line 21

def map(document)
  CouchPotato::RSpec::MapToProxy.new(document)
end

#reduce(docs, keys) ⇒ Object



25
26
27
# File 'lib/couch_potato/rspec/matchers.rb', line 25

def reduce(docs, keys)
  CouchPotato::RSpec::ReduceToProxy.new(docs, keys)
end

#rereduce(docs, keys) ⇒ Object



29
30
31
# File 'lib/couch_potato/rspec/matchers.rb', line 29

def rereduce(docs, keys)
  CouchPotato::RSpec::ReduceToProxy.new(docs, keys, true)
end