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

Version Path
ihoka-friendly-0.8.0.pre spec/fakes/data_store_fake.rb
ihoka-friendly-0.7.1.2 spec/fakes/data_store_fake.rb
ihoka-friendly-0.7.1.1 spec/fakes/data_store_fake.rb
ihoka-friendly-0.7.1 spec/fakes/data_store_fake.rb
ihoka-friendly-0.7.0 spec/fakes/data_store_fake.rb
friendly-0.6.0 spec/fakes/data_store_fake.rb
honkster-friendly-0.5.3 spec/fakes/data_store_fake.rb
honkster-friendly-0.5.2 spec/fakes/data_store_fake.rb
honkster-friendly-0.5.1 spec/fakes/data_store_fake.rb
wayne-friendly-0.5.1 spec/fakes/data_store_fake.rb
wego-friendly-0.5.1 spec/fakes/data_store_fake.rb
arunthampi-friendly-0.5.1 spec/fakes/data_store_fake.rb
friendly_postgres-0.5.1 spec/fakes/data_store_fake.rb
friendly-0.5.1 spec/fakes/data_store_fake.rb
friendly-0.5.0 spec/fakes/data_store_fake.rb
friendly_postgres-0.4.5 spec/fakes/data_store_fake.rb
friendly-0.4.5 spec/fakes/data_store_fake.rb
friendly-0.4.4 spec/fakes/data_store_fake.rb
friendly_postgres-0.4.3 spec/fakes/data_store_fake.rb
friendly-0.4.3 spec/fakes/data_store_fake.rb