From ae16011eb2b3e3af425a70a3e612aea573566f2c Mon Sep 17 00:00:00 2001 From: Gael Chamoulaud Date: Mon, 20 Jul 2015 16:11:31 +0200 Subject: [PATCH] Fix rspec 3.x syntax - Convert 'should' keyword to 'is_expected.to' Change-Id: I21f861c8b14a44283e2ae0a3d53af6ecc032dcce Signed-off-by: Gael Chamoulaud --- spec/acceptance/horizon_with_apache_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/horizon_with_apache_spec.rb b/spec/acceptance/horizon_with_apache_spec.rb index 69808cec..783ef3a5 100644 --- a/spec/acceptance/horizon_with_apache_spec.rb +++ b/spec/acceptance/horizon_with_apache_spec.rb @@ -44,11 +44,11 @@ describe 'horizon class' do # basic test for now, to make sure Apache serve /horizon dashboard if os[:family] == 'Debian' describe command('curl --connect-timeout 5 -sL -w "%{http_code} %{url_effective}\n" http://localhost/horizon/ -o /dev/null') do - it { should return_exit_status 0 } + it { is_expected.to return_exit_status 0 } end elsif os[:family] == 'RedHat' describe command('curl --connect-timeout 5 -sL -w "%{http_code} %{url_effective}\n" http://localhost/dashboard/ -o /dev/null') do - it { should return_exit_status 0 } + it { is_expected.to return_exit_status 0 } end end