1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

fix build (missing Logger)

This commit is contained in:
Thorsten Böttger 2015-05-16 16:32:58 +12:00
parent 4c23e288db
commit 78fe1a4113
3 changed files with 2 additions and 3 deletions

View file

@ -1,7 +1,6 @@
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
require 'aasm'
require 'rspec'
# require 'ruby-debug'; Debugger.settings[:autoeval] = true; debugger; rubys_debugger = 'annoying'
@ -11,6 +10,7 @@ require 'rspec'
SEQUEL_DB = defined?(JRUBY_VERSION) ? 'jdbc:sqlite::memory:' : 'sqlite:/'
def load_schema
require 'logger'
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config['sqlite3'])

View file

@ -1,6 +1,5 @@
require 'spec_helper'
require 'active_record'
require 'logger'
require 'i18n'
I18n.enforce_available_locales = false

View file

@ -1,10 +1,10 @@
require 'active_record'
require 'logger'
require 'spec_helper'
load_schema
# if you want to see the statements while running the spec enable the following line
# require 'logger'
# ActiveRecord::Base.logger = Logger.new(STDERR)
shared_examples_for "aasm model" do