Only use expect syntax when it adds value
This commit is contained in:
@@ -5,7 +5,7 @@ describe PagesController, type: :controller do
|
||||
it 'returns a proper sitemap' do
|
||||
create_pages_tree
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user