diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-10 19:53:39 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-11 02:55:38 -0300 |
commit | 16c14f7465530df51e938d00f26141dd0ecf46bc (patch) | |
tree | 83b9d0b77549ed15edfe29a853e93971851dcc1a /activemodel/test/cases/mass_assignment_security | |
parent | f33ee69d59d2b06da3c3c1b24fc9bb640bf6ed25 (diff) | |
download | rails-16c14f7465530df51e938d00f26141dd0ecf46bc.tar.gz rails-16c14f7465530df51e938d00f26141dd0ecf46bc.tar.bz2 rails-16c14f7465530df51e938d00f26141dd0ecf46bc.zip |
Avoid interpreted as grouped expression warnings
Diffstat (limited to 'activemodel/test/cases/mass_assignment_security')
-rw-r--r-- | activemodel/test/cases/mass_assignment_security/sanitizer_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/mass_assignment_security/sanitizer_test.rb b/activemodel/test/cases/mass_assignment_security/sanitizer_test.rb index 367207aab3..015153ec7c 100644 --- a/activemodel/test/cases/mass_assignment_security/sanitizer_test.rb +++ b/activemodel/test/cases/mass_assignment_security/sanitizer_test.rb @@ -31,7 +31,7 @@ class SanitizerTest < ActiveModel::TestCase log = StringIO.new @sanitizer.logger = Logger.new(log) @sanitizer.sanitize(original_attributes) - assert (log.string =~ /admin/), "Should log removed attributes: #{log.string}" + assert_match(/admin/, log.string, "Should log removed attributes: #{log.string}") end end |