aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-07 12:07:56 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-07 12:07:56 -0300
commitfbfc4ac298fe96ee8f57291143f0308f4b37b941 (patch)
treea972026d0570c5f32be86881a45b8726f1082307 /actionview
parent3dc9c52ca9738b5c582e9aab6fb459d77d7dec2c (diff)
parent8764ef95dce3cbd0a58186e3cc1da90cc07862eb (diff)
downloadrails-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.rb2
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