aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/timezone_fixes_spec.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-01-15 17:04:06 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-01-15 17:04:06 +1100
commite6c80e93df44a436d9c94a9c076eb321df249b2a (patch)
treef2396181cfadeca370446f936f0bc4c1da3888dd /spec/lib/timezone_fixes_spec.rb
parentb5f2bed1e406cd7fb6b50259a57be201c797db7d (diff)
parent843805e5d92eded943bd2a32b02ac967539245e8 (diff)
Merge remote-tracking branch 'mysociety/develop' into rails_xss
Diffstat (limited to 'spec/lib/timezone_fixes_spec.rb')
-rw-r--r--spec/lib/timezone_fixes_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/lib/timezone_fixes_spec.rb b/spec/lib/timezone_fixes_spec.rb
index a2bea5f64..525bd7561 100644
--- a/spec/lib/timezone_fixes_spec.rb
+++ b/spec/lib/timezone_fixes_spec.rb
@@ -92,22 +92,6 @@ describe "when doing things with timezones" do
end
end
-
- protected
-
- def with_env_tz(new_tz = 'US/Eastern')
- old_tz, ENV['TZ'] = ENV['TZ'], new_tz
- yield
- ensure
- old_tz ? ENV['TZ'] = old_tz : ENV.delete('TZ')
- end
-
- def with_active_record_default_timezone(zone)
- old_zone, ActiveRecord::Base.default_timezone = ActiveRecord::Base.default_timezone, zone
- yield
- ensure
- ActiveRecord::Base.default_timezone = old_zone
- end
end