Sha256: 3b419f071abc09630da164cc08f6a0ffb425667981eae2bf9768fdcb6e7c9f62

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

require "active_record"
require "with_model"

if defined?(RSpec)
  # For RSpec 2 users.
  RSpec.configure do |config|
    config.extend WithModel
  end
else
  # For RSpec 1 users.
  Spec::Runner.configure do |config|
    config.extend WithModel
  end
end

# WithModel requires ActiveRecord::Base.connection to be established.
# If ActiveRecord already has a connection, as in a Rails app, this is unnecessary.
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ":memory:")

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
with_model-0.1.1 spec/spec_helper.rb
with_model-0.1 spec/spec_helper.rb