mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove helper methods that were moved to helper.rb
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
ae24ce52ae
commit
d64a09b443
1 changed files with 0 additions and 15 deletions
|
@ -1433,19 +1433,4 @@ class BasicsTest < ActiveRecord::TestCase
|
|||
ensure
|
||||
Object.class_eval{ remove_const :UnloadablePost } if defined?(UnloadablePost)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue