Sha256: 52b8aa68a7ce058791e5d27fc2b4b274a81b9d8e17415677139fc92df429f313
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'spec' require 'spec/autorun' require 'rubygems' require 'active_record' require "#{File.dirname(__FILE__)}/../init" ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") ActiveRecord::Base.configurations = true ActiveRecord::Schema.verbose = false ActiveRecord::Schema.define(:version => 1) do create_table :computers do |t| t.string :kind end end Spec::Runner.configure do |config| config.before(:each) do class Computer < ActiveRecord::Base private def return_false false end end end config.after(:each) do Object.send(:remove_const, :Computer) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enumlogic-1.0.3 | spec/spec_helper.rb |
enumlogic-1.0.2 | spec/spec_helper.rb |