Sha256: 5c268d37d1002f9ffd970b62511769aac6f5b02000e66b428be820fcf8434cda

Contents?: true

Size: 657 Bytes

Versions: 3

Compression:

Stored size: 657 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 'enumlogic'

ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => ":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
    end
  end
  
  config.after(:each) do
    Object.send(:remove_const, :Computer)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
binarylogic-enumlogic-1.0.1 spec/spec_helper.rb
enumlogic-1.0.1 spec/spec_helper.rb
enumlogic-1.0.0 spec/spec_helper.rb