From 78fe1a4113df29e12b23fa63d53135badfd98d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20B=C3=B6ttger?= Date: Sat, 16 May 2015 16:32:58 +1200 Subject: [PATCH] fix build (missing Logger) --- spec/spec_helper.rb | 2 +- spec/unit/localizer_spec.rb | 1 - spec/unit/persistence/active_record_persistence_spec.rb | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a1794c9..f812a2c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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']) diff --git a/spec/unit/localizer_spec.rb b/spec/unit/localizer_spec.rb index 728e777..d360986 100644 --- a/spec/unit/localizer_spec.rb +++ b/spec/unit/localizer_spec.rb @@ -1,6 +1,5 @@ require 'spec_helper' require 'active_record' -require 'logger' require 'i18n' I18n.enforce_available_locales = false diff --git a/spec/unit/persistence/active_record_persistence_spec.rb b/spec/unit/persistence/active_record_persistence_spec.rb index b7ca0fd..24cdda1 100644 --- a/spec/unit/persistence/active_record_persistence_spec.rb +++ b/spec/unit/persistence/active_record_persistence_spec.rb @@ -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