diff options
author | Prem Sichanugrist <s@sikac.hu> | 2015-04-22 11:49:35 -0400 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2015-04-22 11:49:35 -0400 |
commit | 5efd823d9b2da3fff0baf095a92c76e5bb99a074 (patch) | |
tree | 73744015f0867ee5f28477ebc866ec2b430e6356 /actionview/test/template | |
parent | cdbf68599416e6b248d1d0e5bcbbbf73b90f1f42 (diff) | |
download | rails-5efd823d9b2da3fff0baf095a92c76e5bb99a074.tar.gz rails-5efd823d9b2da3fff0baf095a92c76e5bb99a074.tar.bz2 rails-5efd823d9b2da3fff0baf095a92c76e5bb99a074.zip |
Silence warning from requiring mathn
Running Action View test case currently printing out this warning:
lib/mathn.rb is deprecated
This should silence the warning since we really want to require this
file in this test.
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/date_helper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/template/date_helper_test.rb b/actionview/test/template/date_helper_test.rb index bfb073680e..a0e1f5f3bb 100644 --- a/actionview/test/template/date_helper_test.rb +++ b/actionview/test/template/date_helper_test.rb @@ -130,7 +130,7 @@ class DateHelperTest < ActionView::TestCase def test_distance_in_words_with_mathn_required # test we avoid Integer#/ (redefined by mathn) - require 'mathn' + silence_warnings { require "mathn" } from = Time.utc(2004, 6, 6, 21, 45, 0) assert_distance_of_time_in_words(from) end |