aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/atom_feed_helper_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-08-17 22:51:13 -0300
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-08-17 22:51:13 -0300
commitcdc00aba62ffb0f0af452f5152aafeb5e490962e (patch)
tree071ca4766dd07b9af34bbebf902c50a27c5c2b4d /actionview/test/template/atom_feed_helper_test.rb
parentcc9091c3e719facd0f73c8ab425a5bb9a7d0a65b (diff)
parentc78da4d5c472f7254ed609ef753d7b1719732802 (diff)
downloadrails-cdc00aba62ffb0f0af452f5152aafeb5e490962e.tar.gz
rails-cdc00aba62ffb0f0af452f5152aafeb5e490962e.tar.bz2
rails-cdc00aba62ffb0f0af452f5152aafeb5e490962e.zip
Merge branch 'loofah'
Conflicts: Gemfile
Diffstat (limited to 'actionview/test/template/atom_feed_helper_test.rb')
-rw-r--r--actionview/test/template/atom_feed_helper_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionview/test/template/atom_feed_helper_test.rb b/actionview/test/template/atom_feed_helper_test.rb
index 63b5ac0fab..68b44c4f0d 100644
--- a/actionview/test/template/atom_feed_helper_test.rb
+++ b/actionview/test/template/atom_feed_helper_test.rb
@@ -254,7 +254,7 @@ class AtomFeedTest < ActionController::TestCase
def test_self_url_should_default_to_current_request_url
with_restful_routing(:scrolls) do
get :index, :id => "defaults"
- assert_select "link[rel=self][href=http://www.nextangle.com/scrolls?id=defaults]"
+ assert_select "link[rel=self][href=\"http://www.nextangle.com/scrolls?id=defaults\"]"
end
end
@@ -318,22 +318,22 @@ class AtomFeedTest < ActionController::TestCase
with_restful_routing(:scrolls) do
get :index, :id => "feed_with_xhtml_content"
assert_match %r{xmlns="http://www.w3.org/1999/xhtml"}, @response.body
- assert_select "summary div p", :text => "Something Boring"
- assert_select "summary div p", :text => "after 2"
+ assert_select "summary", :text => /Something Boring/
+ assert_select "summary", :text => /after 2/
end
end
def test_feed_entry_type_option_default_to_text_html
with_restful_routing(:scrolls) do
get :index, :id => 'defaults'
- assert_select "entry link[rel=alternate][type=text/html]"
+ assert_select "entry link[rel=alternate][type=\"text/html\"]"
end
end
def test_feed_entry_type_option_specified
with_restful_routing(:scrolls) do
get :index, :id => 'entry_type_options'
- assert_select "entry link[rel=alternate][type=text/xml]"
+ assert_select "entry link[rel=alternate][type=\"text/xml\"]"
end
end