Sha256: 05bb9149cf002ef92c91c8c1e3ee3a179f7c6338eb2d4ca020a7a0f5f200b57b
Contents?: true
Size: 798 Bytes
Versions: 6
Compression:
Stored size: 798 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' require 'couch_potato/rspec/matchers/list_as_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 def list(results) CouchPotato::RSpec::ListAsProxy.new(results) end end end
Version data entries
6 entries across 6 versions & 2 rubygems