Remove 'warning: ambiguous first argument' when running ActionPack tests
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
parent
b155fdadf3
commit
52351bcfeb
@ -56,7 +56,7 @@ def test_map_wildcard
|
||||
mapper = Mapper.new fakeset
|
||||
mapper.match '/*path', :to => 'pages#show'
|
||||
assert_equal '/*path(.:format)', fakeset.conditions.first[:path_info]
|
||||
assert_equal /.+?/, fakeset.requirements.first[:path]
|
||||
assert_equal(/.+?/, fakeset.requirements.first[:path])
|
||||
end
|
||||
|
||||
def test_map_wildcard_with_other_element
|
||||
@ -73,7 +73,7 @@ def test_map_wildcard_with_multiple_wildcard
|
||||
mapper.match '/*foo/*bar', :to => 'pages#show'
|
||||
assert_equal '/*foo/*bar(.:format)', fakeset.conditions.first[:path_info]
|
||||
assert_nil fakeset.requirements.first[:foo]
|
||||
assert_equal /.+?/, fakeset.requirements.first[:bar]
|
||||
assert_equal(/.+?/, fakeset.requirements.first[:bar])
|
||||
end
|
||||
|
||||
def test_map_wildcard_with_format_false
|
||||
|
@ -2720,11 +2720,11 @@ def test_time_tag_with_time
|
||||
end
|
||||
|
||||
def test_time_tag_pubdate_option
|
||||
assert_match /<time.*pubdate="pubdate">.*<\/time>/, time_tag(Time.now, :pubdate => true)
|
||||
assert_match(/<time.*pubdate="pubdate">.*<\/time>/, time_tag(Time.now, :pubdate => true))
|
||||
end
|
||||
|
||||
def test_time_tag_with_given_text
|
||||
assert_match /<time.*>Right now<\/time>/, time_tag(Time.now, 'Right now')
|
||||
assert_match(/<time.*>Right now<\/time>/, time_tag(Time.now, 'Right now'))
|
||||
end
|
||||
|
||||
def test_time_tag_with_different_format
|
||||
|
Loading…
Reference in New Issue
Block a user