| Switch ActiveRecord's default_timezone to :local because specs expect that. - r… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 0d1590082dfe46740af507eb0b6d3259201a969e | |
| parent 9373bc0ac7971e3e80a3a9796b77acf30e2177d1 | |
| Author: Martin Schùˆrrer <[email protected]> | |
| 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(-) | |
| --- | |
| 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', 'databa… | |
| ActiveRecord::Base.establish_connection(databases[ENV['DB'] || 'sqlite3']) |