From 52351bcfeb833b00366f91e965c057f431b5a8aa Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Tue, 29 Mar 2011 09:40:42 -0300 Subject: Remove 'warning: ambiguous first argument' when running ActionPack tests Signed-off-by: Santiago Pastorino --- actionpack/test/template/date_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/test/template/date_helper_test.rb') diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb index aca2fef170..fd1f824a39 100644 --- a/actionpack/test/template/date_helper_test.rb +++ b/actionpack/test/template/date_helper_test.rb @@ -2720,11 +2720,11 @@ class DateHelperTest < ActionView::TestCase end def test_time_tag_pubdate_option - assert_match /.*<\/time>/, time_tag(Time.now, :pubdate => true) + assert_match(/.*<\/time>/, time_tag(Time.now, :pubdate => true)) end def test_time_tag_with_given_text - assert_match /Right now<\/time>/, time_tag(Time.now, 'Right now') + assert_match(/Right now<\/time>/, time_tag(Time.now, 'Right now')) end def test_time_tag_with_different_format -- cgit v1.2.3