Sha256: 6ca2b880a7e3068caeae4a028c973e6aa6cedbd1793a5b96f18940faa98a2c0e
Contents?: true
Size: 408 Bytes
Versions: 26
Compression:
Stored size: 408 Bytes
Contents
class DataStoreFake attr_writer :insert, :all, :first attr_reader :inserts, :updates def initialize(opts = {}) opts.each { |k,v| send("#{k}=", v) } @inserts = [] @updates = [] end def insert(*args) @inserts << args @insert end def update(*args) @updates << args @update end def all(*args) @all[args] end def first(*args) @first[args] end end
Version data entries
26 entries across 26 versions & 7 rubygems