Sha256: 59b4cdd80cc9b00fe46041f32dd4755f8ea28d98c3ac32da0d65a1c7190e06ea

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

# Mock ActiveRecord::RecordNotFound
#
module ActiveRecord
  class RecordNotFound < StandardError
  end
end

# ActiveRecord-ish - a mocked ActiveRecord that behaves like a model class with id
#
class ActiveRecordIsh
  attr_accessor :id

  def self.find(id)
    obj = self.new
    obj.id = id
    obj
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cru_lib-0.1.2 spec/support/async_commons.rb