Only use expect syntax when it adds value

This commit is contained in:
2015-07-14 14:23:41 +02:00
parent d1173a94ff
commit f1e25b23a4
@@ -5,7 +5,7 @@ describe PagesController, type: :controller do
it 'returns a proper sitemap' do it 'returns a proper sitemap' do
create_pages_tree create_pages_tree
get :sitemap, format: 'xml' get :sitemap, format: 'xml'
expect( response.body ).to include "<loc>http://test.host/en/child2.2</loc>" response.body.should include "<loc>http://test.host/en/child2.2</loc>"
end end
end end
end end