diff options
author | John Hawthorn <john@hawthorn.email> | 2019-03-18 16:35:41 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-03-18 16:35:50 -0700 |
commit | 15b315ca9c8888a7a025b61bb56049fb8fea424f (patch) | |
tree | 43df7db3a4104ffb8d1c2419bf74e0acae9bae2c /actionview/test/template | |
parent | c80b33a46123f54339dbc94c78e1bbed222cd9af (diff) | |
download | rails-15b315ca9c8888a7a025b61bb56049fb8fea424f.tar.gz rails-15b315ca9c8888a7a025b61bb56049fb8fea424f.tar.bz2 rails-15b315ca9c8888a7a025b61bb56049fb8fea424f.zip |
Improve "raises on invalid format assignment" test
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/lookup_context_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/lookup_context_test.rb b/actionview/test/template/lookup_context_test.rb index 02a9948e38..6457e45920 100644 --- a/actionview/test/template/lookup_context_test.rb +++ b/actionview/test/template/lookup_context_test.rb @@ -82,10 +82,10 @@ class LookupContextTest < ActiveSupport::TestCase test "raises on invalid format assignment" do ex = assert_raises ArgumentError do - @lookup_context.formats = [:html, :javascript] + @lookup_context.formats = [:html, :invalid, "also bad"] end - assert_equal "Invalid formats: :javascript", ex.message + assert_equal 'Invalid formats: :invalid, "also bad"', ex.message end test "provides getters and setters for locale" do |