diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2014-09-29 21:41:52 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2014-09-29 21:41:52 +0200 |
commit | f939904f23a792f5923b5ed683cbbc54a05ad1fe (patch) | |
tree | 6d0f10e21b42b7dc012017dfb5ad4f5b57c19192 /actionpack/test | |
parent | 035cc69c48d9d538bded70fc88976cd7f23966f5 (diff) | |
download | rails-f939904f23a792f5923b5ed683cbbc54a05ad1fe.tar.gz rails-f939904f23a792f5923b5ed683cbbc54a05ad1fe.tar.bz2 rails-f939904f23a792f5923b5ed683cbbc54a05ad1fe.zip |
Parse HTML as document fragment.
This is to match the changes in Rails Dom Testing rails/rails-dom-testing#20.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/integration_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb index 99b53e6fd2..c6380c7ffd 100644 --- a/actionpack/test/controller/integration_test.rb +++ b/actionpack/test/controller/integration_test.rb @@ -292,7 +292,7 @@ class IntegrationProcessTest < ActionDispatch::IntegrationTest assert_equal({}, cookies.to_hash) assert_equal "OK", body assert_equal "OK", response.body - assert_kind_of Nokogiri::HTML::Document, html_document + assert_kind_of Nokogiri::HTML::DocumentFragment, html_document assert_equal 1, request_count end end @@ -308,7 +308,7 @@ class IntegrationProcessTest < ActionDispatch::IntegrationTest assert_equal({}, cookies.to_hash) assert_equal "Created", body assert_equal "Created", response.body - assert_kind_of Nokogiri::HTML::Document, html_document + assert_kind_of Nokogiri::HTML::DocumentFragment, html_document assert_equal 1, request_count end end @@ -368,7 +368,7 @@ class IntegrationProcessTest < ActionDispatch::IntegrationTest assert_response :redirect assert_response :found assert_equal "<html><body>You are being <a href=\"http://www.example.com/get\">redirected</a>.</body></html>", response.body - assert_kind_of Nokogiri::HTML::Document, html_document + assert_kind_of Nokogiri::HTML::DocumentFragment, html_document assert_equal 1, request_count follow_redirect! |