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:
parent
4c23e288db
commit
78fe1a4113
3 changed files with 2 additions and 3 deletions
|
@ -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'])
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require 'spec_helper'
|
||||
require 'active_record'
|
||||
require 'logger'
|
||||
require 'i18n'
|
||||
|
||||
I18n.enforce_available_locales = false
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue