Skip to content

Commit

Permalink
eliminiate ambiguous argument warning (parenthesize args)
Browse files Browse the repository at this point in the history
  • Loading branch information
zapnap committed Jan 2, 2009
1 parent b354cd1 commit 2eb4a69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/simplepay/test_service.rb
Expand Up @@ -64,12 +64,12 @@ class Simplepay::TestService < Test::Unit::TestCase

should 'generate an HTML FORM' do
@service.required = 'set'
assert_match /\A<form/i, @service.form
assert_match /<\/form>\Z/i, @service.form
assert_match(/\A<form/i, @service.form)
assert_match(/<\/form>\Z/i, @service.form)
end

should 'post the form to the endpoint' do
assert_match /<form action="#{Regexp.escape('http://test.host.url/sandbox')}" method="post"/, @service.form({:required => 'set'})
assert_match(/<form action="#{Regexp.escape('http://test.host.url/sandbox')}" method="post"/, @service.form({:required => 'set'}))
end

should 'generate HIDDEN HTML INPUTs for each non-empty field' do
Expand Down Expand Up @@ -115,4 +115,4 @@ class Simplepay::TestService < Test::Unit::TestCase

end

end
end

0 comments on commit 2eb4a69

Please sign in to comment.