Silence TimeZone warning
This commit is contained in:
parent
23df8befcd
commit
65bc8f33de
|
@ -20,8 +20,6 @@ class MockTimeZone
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ActiveSupport::TimeZone = MockTimeZone
|
|
||||||
|
|
||||||
class FormOptionsHelperTest < ActionView::TestCase
|
class FormOptionsHelperTest < ActionView::TestCase
|
||||||
tests ActionView::Helpers::FormOptionsHelper
|
tests ActionView::Helpers::FormOptionsHelper
|
||||||
|
|
||||||
|
@ -31,6 +29,8 @@ class FormOptionsHelperTest < ActionView::TestCase
|
||||||
Country = Struct.new('Country', :country_id, :country_name)
|
Country = Struct.new('Country', :country_id, :country_name)
|
||||||
Firm = Struct.new('Firm', :time_zone)
|
Firm = Struct.new('Firm', :time_zone)
|
||||||
Album = Struct.new('Album', :id, :title, :genre)
|
Album = Struct.new('Album', :id, :title, :genre)
|
||||||
|
|
||||||
|
ActiveSupport::TimeZone = MockTimeZone
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_collection_options
|
def test_collection_options
|
||||||
|
|
Loading…
Reference in New Issue