aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2011-07-26 23:39:17 +0530
committerVishnu Atrai <me@vishnuatrai.com>2011-07-26 23:39:17 +0530
commit1e69f0b84a17fffdcb9aa2cba156117ae47fa92f (patch)
tree383ab22a800844dcf5817439e878715858392488 /activerecord/test
parent64807b964f6b4d58d550608b6de84ebd5ec846f3 (diff)
downloadrails-1e69f0b84a17fffdcb9aa2cba156117ae47fa92f.tar.gz
rails-1e69f0b84a17fffdcb9aa2cba156117ae47fa92f.tar.bz2
rails-1e69f0b84a17fffdcb9aa2cba156117ae47fa92f.zip
remove deprication warning: ambiguous first argument; put parentheses or even spaces
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/base_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index f2f5b73626..12101c1683 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -1867,6 +1867,6 @@ class BasicsTest < ActiveRecord::TestCase
def test_cache_key_format_for_existing_record_with_nil_updated_at
dev = Developer.first
dev.update_attribute(:updated_at, nil)
- assert_match /\/#{dev.id}$/, dev.cache_key
+ assert_match(/\/#{dev.id}$/, dev.cache_key)
end
end