Sha256: da3f56f9fd087efee3765fcd7281b6f5f74dab7fad332e167a4688857bbfc182
Contents?: true
Size: 658 Bytes
Versions: 5
Compression:
Stored size: 658 Bytes
Contents
module CouchPotato module RSpec module RunJS private def run_js(js) path = 'couch_potato_js_runner.js' File.open(path, 'w') {|f| f << js} `js #{path}` end end end end require 'couch_potato/rspec/matchers/map_to_matcher' require 'couch_potato/rspec/matchers/reduce_to_matcher' module Spec module Matchers def map(document) CouchPotato::RSpec::MapToProxy.new(document) end def reduce(docs, keys) CouchPotato::RSpec::ReduceToProxy.new(docs, keys) end def rereduce(docs, keys) CouchPotato::RSpec::ReduceToProxy.new(docs, keys, true) end end end
Version data entries
5 entries across 5 versions & 1 rubygems