diff options
| author | Xavier Noria <fxn@hashref.com> | 2016-09-02 00:04:27 +0200 |
|---|---|---|
| committer | Xavier Noria <fxn@hashref.com> | 2016-09-02 00:04:27 +0200 |
| commit | 11eaf1c1dd48e86a38b8dc83a2b35d99f746b1f8 (patch) | |
| tree | 273f9dedbe1d1822dcd69bb7f7f5806316802e33 | |
| parent | bb1ecdcc677bf6e68e0252505509c089619b5b90 (diff) | |
| download | rails-11eaf1c1dd48e86a38b8dc83a2b35d99f746b1f8.tar.gz rails-11eaf1c1dd48e86a38b8dc83a2b35d99f746b1f8.tar.bz2 rails-11eaf1c1dd48e86a38b8dc83a2b35d99f746b1f8.zip | |
fix RuboCop errors re \xFC
| -rw-r--r-- | actionview/test/template/template_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionview/test/template/template_test.rb b/actionview/test/template/template_test.rb index 2988f152be..9d31a98703 100644 --- a/actionview/test/template/template_test.rb +++ b/actionview/test/template/template_test.rb @@ -80,7 +80,7 @@ class TestERBTemplate < ActiveSupport::TestCase end def test_raw_template - @template = new_template("<%= hello %>", :handler => ActionView::Template::Handlers::Raw.new) + @template = new_template("<%= hello %>", handler: ActionView::Template::Handlers::Raw.new) assert_equal "<%= hello %>", render end @@ -189,7 +189,9 @@ class TestERBTemplate < ActiveSupport::TestCase @template = new_template("hello \xFCmlat", virtual_path: nil) render end - assert_match(/\xFC/, e.message) + # Hack: We write the regexp this way because the parser of RuboCop + # errs with /\xFC/. + assert_match(Regexp.new("\xFC"), e.message) end def with_external_encoding(encoding) |
