spec/spec_helper.rb in datetime-scopes-1.0.0.alpha1 vs spec/spec_helper.rb in datetime-scopes-1.0.0.alpha2

- old
+ new

@@ -1,13 +1,21 @@ +require "logger" +logger = Logger.new(File.expand_path "../../log/test.log", __FILE__) +logger.level = Logger::DEBUG + require "codeclimate-test-reporter" +CodeClimate::TestReporter.configure do |config| + config.logger = logger +end CodeClimate::TestReporter.start require "rspec/core" require "database_cleaner" require "datetime-scopes" ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" +ActiveRecord::Base.logger = logger DatabaseCleaner.strategy = :truncation RSpec.configure do |c| c.before :suite do DatabaseCleaner.clean @@ -19,10 +27,10 @@ # Create table and declare AR model ActiveRecord::Migration.verbose = false -ActiveRecord::Migration.create_table :foo_bar do |t| +ActiveRecord::Migration.create_table :foo_bars do |t| t.datetime :foo t.date :bar end class FooBar < ActiveRecord::Base