aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2013-09-17 16:10:22 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2013-09-17 16:12:15 -0300
commit949c4291a4bffae582dc3987e8f4980ea13a2cff (patch)
tree6315b9a7f69b33e88e1a0d834085d3e609d75c8b /actionview
parente69cc355c3ac83538ce347f34147696d442b2ea5 (diff)
downloadrails-949c4291a4bffae582dc3987e8f4980ea13a2cff.tar.gz
rails-949c4291a4bffae582dc3987e8f4980ea13a2cff.tar.bz2
rails-949c4291a4bffae582dc3987e8f4980ea13a2cff.zip
There's no need to do this
AS does the following inside Time.find_zone! ... `ActiveSupport::TimeZone[time_zone] || TZInfo::Timezone.get(time_zone)` and given that the test is stubbing AS::TZ[] we don't need the removed code.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/template/form_options_helper_test.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/actionview/test/template/form_options_helper_test.rb b/actionview/test/template/form_options_helper_test.rb
index 3ec138b639..a6977766d1 100644
--- a/actionview/test/template/form_options_helper_test.rb
+++ b/actionview/test/template/form_options_helper_test.rb
@@ -1,5 +1,4 @@
require 'abstract_unit'
-require 'tzinfo'
class Map < Hash
def category
@@ -7,8 +6,6 @@ class Map < Hash
end
end
-TZInfo::Timezone.cattr_reader :loaded_zones
-
class FormOptionsHelperTest < ActionView::TestCase
tests ActionView::Helpers::FormOptionsHelper
@@ -22,7 +19,7 @@ class FormOptionsHelperTest < ActionView::TestCase
def setup
@fake_timezones = %w(A B C D E).map do |id|
- tz = TZInfo::Timezone.loaded_zones[id] = stub(:name => id, :to_s => id)
+ tz = stub(:name => id, :to_s => id)
ActiveSupport::TimeZone.stubs(:[]).with(id).returns(tz)
tz
end