Switch ActiveRecord's default_timezone to :local because specs expect that. - reportable - Fork of reportable required by WarVox, from hdm/reportable.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 0d1590082dfe46740af507eb0b6d3259201a969e
(DIR) parent 9373bc0ac7971e3e80a3a9796b77acf30e2177d1
(HTM) Author: Martin Schùˆrrer <martin@schuerrer.org>
Date: Wed, 9 Apr 2014 15:52:04 +0200
Switch ActiveRecord's default_timezone to :local because specs expect that.
Diffstat:
M spec/spec_helper.rb | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
@@ -34,6 +34,7 @@ RSpec.configure do |config|
config.filter_run :focus => true
config.run_all_when_everything_filtered = true
end
+ActiveRecord::Base.default_timezone = :local
databases = YAML::load(IO.read(File.join(File.dirname(__FILE__), 'db', 'database.yml')))
ActiveRecord::Base.establish_connection(databases[ENV['DB'] || 'sqlite3'])