Module: RSpec::Matchers

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

Instance Method Summary collapse

Instance Method Details

#list(results) ⇒ Object



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

def list(results)
  CouchPotato::RSpec::ListAsProxy.new(results)
end

#map(document) ⇒ Object



10
11
12
# File 'lib/couch_potato/rspec/matchers.rb', line 10

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

#map_reduce(*docs) ⇒ Object



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

def map_reduce(*docs)
  CouchPotato::RSpec::MapReduceToProxy.new(docs)
end

#reduce(keys, values) ⇒ Object



14
15
16
# File 'lib/couch_potato/rspec/matchers.rb', line 14

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

#rereduce(keys, values) ⇒ Object



18
19
20
# File 'lib/couch_potato/rspec/matchers.rb', line 18

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