From f1e25b23a4e290946a9ed42fa527fb1f0a42a38e Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Tue, 14 Jul 2015 14:23:41 +0200 Subject: [PATCH] Only use expect syntax when it adds value --- spec/includes/pages_controller_include_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/includes/pages_controller_include_spec.rb b/spec/includes/pages_controller_include_spec.rb index b35958c..c590553 100644 --- a/spec/includes/pages_controller_include_spec.rb +++ b/spec/includes/pages_controller_include_spec.rb @@ -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 "http://test.host/en/child2.2" + response.body.should include "http://test.host/en/child2.2" end end end