spec/spec_helper.rb in memento-0.3.3 vs spec/spec_helper.rb in memento-0.3.4
- old
+ new
@@ -2,10 +2,10 @@
require 'active_record'
require 'action_controller'
require 'rspec'
# Initialize time_zones from rails
-Time.zone_default = Time.__send__(:get_zone, 'Berlin') || raise("Err")
+Time.zone_default = (Time.respond_to?(:find_zone!) && Time.find_zone!("Berlin")) || Time.__send__(:get_zone, 'Berlin') || raise("Err")
ActiveRecord::Base.time_zone_aware_attributes = true
ActiveRecord::Base.default_timezone = :utc
$:.unshift(File.dirname(__FILE__))
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
\ No newline at end of file