Permalink
Browse files

remove deprication warning: ambiguous first argument; put parentheses…

… or even spaces
  • Loading branch information...
1 parent 64807b9 commit 1e69f0b84a17fffdcb9aa2cba156117ae47fa92f @vatrai vatrai committed Jul 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/base_test.rb
View
2 activerecord/test/cases/base_test.rb
@@ -1867,6 +1867,6 @@ def test_cache_key_format_for_existing_record_with_updated_at
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

0 comments on commit 1e69f0b

Please sign in to comment.