Skip to content

Commit

Permalink
Merge pull request rails#19856 from sikachu/silence-mathn-warning
Browse files Browse the repository at this point in the history
Silence warning from requiring mathn
  • Loading branch information
rafaelfranca committed Apr 22, 2015
2 parents 01dad52 + 5efd823 commit 9a034bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionview/test/template/date_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def test_distance_in_words

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
Expand Down

0 comments on commit 9a034bc

Please sign in to comment.