Permalink
Browse files

we have `with_env_tz` as global test helper. Remove duplicate.

  • Loading branch information...
senny committed Jan 15, 2014
1 parent a713900 commit fca8b0318efb88a8fafe768443f05a99967a6489
Showing with 0 additions and 14 deletions.
  1. +0 −7 activerecord/test/cases/finder_test.rb
  2. +0 −7 activerecord/test/cases/migration_test.rb
@@ -891,11 +891,4 @@ def bind(statement, *vars)
ActiveRecord::Base.send(:replace_bind_variables, statement, vars)
end
end
-
- 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
end
@@ -534,13 +534,6 @@ def test_out_of_range_limit_should_raise
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
-
# This is needed to isolate class_attribute assignments like `table_name_prefix`
# for each test case.
def new_isolated_reminder_class

0 comments on commit fca8b03

Please sign in to comment.