diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-16 11:05:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-16 11:05:34 +0000 |
commit | 91517ec67caa006e1b50d15cf93afecc61fdef3f (patch) | |
tree | a5e8211b16588664954a84fad856d013447c5088 | |
parent | e1a2f3078731d29d7a52f947b05a623a440e4d26 (diff) | |
download | redmine-91517ec67caa006e1b50d15cf93afecc61fdef3f.tar.gz redmine-91517ec67caa006e1b50d15cf93afecc61fdef3f.zip |
Passing arguments to assert_nothing_raised is deprecated in Rails 5.
git-svn-id: http://svn.redmine.org/redmine/trunk@15680 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/lib/redmine/i18n_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/lib/redmine/i18n_test.rb b/test/unit/lib/redmine/i18n_test.rb index 1b2ad78f9..63febffd9 100644 --- a/test/unit/lib/redmine/i18n_test.rb +++ b/test/unit/lib/redmine/i18n_test.rb @@ -57,7 +57,7 @@ class Redmine::I18nTest < ActiveSupport::TestCase with_settings :date_format => '' do valid_languages.each do |lang| set_language_if_valid lang - assert_nothing_raised "#{lang} failure" do + assert_nothing_raised do format_date(Date.today) format_time(Time.now) format_time(Time.now, false) @@ -78,7 +78,7 @@ class Redmine::I18nTest < ActiveSupport::TestCase def test_time_for_each_zone ActiveSupport::TimeZone.all.each do |zone| User.current.stubs(:time_zone).returns(zone.name) - assert_nothing_raised "#{zone} failure" do + assert_nothing_raised do format_time(Time.now) end end @@ -126,7 +126,7 @@ class Redmine::I18nTest < ActiveSupport::TestCase def test_number_to_human_size_for_each_language valid_languages.each do |lang| set_language_if_valid lang - assert_nothing_raised "#{lang} failure" do + assert_nothing_raised do size = number_to_human_size(257024) assert_match /251/, size, "#{lang} failure" end @@ -148,7 +148,7 @@ class Redmine::I18nTest < ActiveSupport::TestCase def test_number_to_currency_for_each_language valid_languages.each do |lang| set_language_if_valid lang - assert_nothing_raised "#{lang} failure" do + assert_nothing_raised do number_to_currency(-1000.2) end end |