diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-07 12:07:56 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-07 12:07:56 -0300 |
commit | fbfc4ac298fe96ee8f57291143f0308f4b37b941 (patch) | |
tree | a972026d0570c5f32be86881a45b8726f1082307 /actionview | |
parent | 3dc9c52ca9738b5c582e9aab6fb459d77d7dec2c (diff) | |
parent | 8764ef95dce3cbd0a58186e3cc1da90cc07862eb (diff) | |
download | rails-fbfc4ac298fe96ee8f57291143f0308f4b37b941.tar.gz rails-fbfc4ac298fe96ee8f57291143f0308f4b37b941.tar.bz2 rails-fbfc4ac298fe96ee8f57291143f0308f4b37b941.zip |
Merge pull request #17146 from divineforest/active-record-gsub-to-tr
Change `gsub` to `tr` where possible
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/template/test_case_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/template/test_case_test.rb b/actionview/test/template/test_case_test.rb index 5697ffa317..5ad1938b61 100644 --- a/actionview/test/template/test_case_test.rb +++ b/actionview/test/template/test_case_test.rb @@ -155,7 +155,7 @@ module ActionView test "view_assigns excludes internal ivars" do INTERNAL_IVARS.each do |ivar| assert defined?(ivar), "expected #{ivar} to be defined" - assert !view_assigns.keys.include?(ivar.to_s.sub('@', '').to_sym), "expected #{ivar} to be excluded from view_assigns" + assert !view_assigns.keys.include?(ivar.to_s.tr('@', '').to_sym), "expected #{ivar} to be excluded from view_assigns" end end end |