Sha256: e693ffe21c2f3b56531508e149ae54da48dcca55d8722c8bbf721ae445cca0fa
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
require './lib/couchpillow.rb' require 'minitest/autorun' require 'minitest/unit' require 'mocha/mini_test' class FakeCouchbaseServer def initialize @storage = {} end def set id, data, opts = {} @storage[id] = data end def delete id @storage.delete(id) end def replace id, data @storage.has_key?(id) or raise "Document does not exist" @storage[id] = data end def get id @storage[id] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
couchpillow-0.4.4 | test/helper.rb |
couchpillow-0.4.3 | test/helper.rb |