Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionPack test fix for RBX #3416

Merged
merged 1 commit into from
Oct 24, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion actionpack/test/controller/mime_responds_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ def test_using_hash_resource
@request.accept = "application/json"
get :using_hash_resource
assert_equal "application/json", @response.content_type
assert_equal %Q[{"result":{"name":"david","id":13}}], @response.body
assert @response.body.include?("result")
assert @response.body.include?('"name":"david"')
assert @response.body.include?('"id":13')
end

def test_using_hash_resource_with_post
Expand Down
7 changes: 6 additions & 1 deletion actionpack/test/template/html-scanner/tag_node_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ def test_attributes_with_escaped_quotes

def test_to_s
node = tag("<a b=c d='f' g=\"h 'i'\" />")
assert_equal %(<a b="c" d="f" g="h 'i'" />), node.to_s
node = node.to_s
assert node.include?('a')
assert node.include?('b="c"')
assert node.include?('d="f"')
assert node.include?('g="h')
assert node.include?('i')
end

def test_tag
Expand Down