diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-12-11 14:07:54 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-12-11 14:23:16 +0000 |
commit | e898190fe61a4369ee83e94a24327ff437435b07 (patch) | |
tree | 42f1fe6ee90dfe0bf3f9c7d36a80490b63056978 /spec/lib/timezone_fixes_spec.rb | |
parent | 7cfa3956fd373db35948ef33cde652b30229f9ad (diff) |
Wrap specs on the extraction of RFC-822 headers in code that sets the ENV timezone. TMail renders headers using localtime, which is not ideal, but we're migrating away from it anyway, so I'm not sure it's worth delving into the internals of TMail to fix it.
Diffstat (limited to 'spec/lib/timezone_fixes_spec.rb')
-rw-r--r-- | spec/lib/timezone_fixes_spec.rb | 16 |
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 |