Sha256: e24a248f5ef5fb49c3aaeb3f1ffa7df2d7517b39469323e9c586da2958d3bb10
Contents?: true
Size: 748 Bytes
Versions: 2
Compression:
Stored size: 748 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 'enumlogic' 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-2.0.0 | spec/spec_helper.rb |
enumlogic-1.0.4 | spec/spec_helper.rb |