From 66a502039dd4213de42691c2d37b8fea93bb14bc Mon Sep 17 00:00:00 2001 From: Serdar Sutay Date: Fri, 7 Nov 2014 17:24:53 -0800 Subject: Fix rspec 3 specs. --- spec/unit/api_client/registration_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/api_client/registration_spec.rb b/spec/unit/api_client/registration_spec.rb index ae0ad96f71..2c7e1a854d 100644 --- a/spec/unit/api_client/registration_spec.rb +++ b/spec/unit/api_client/registration_spec.rb @@ -212,7 +212,7 @@ describe Chef::ApiClient::Registration do context 'when the client key location is a symlink' do it 'does not follow the symlink', :unix_only do - registration.file_flags.should == File::CREAT|File::TRUNC|File::RDWR|File::NOFOLLOW + expect(registration.file_flags).to eq(File::CREAT|File::TRUNC|File::RDWR|File::NOFOLLOW) end context 'with follow_client_key_symlink set to true' do @@ -221,7 +221,7 @@ describe Chef::ApiClient::Registration do end it 'follows the symlink', :unix_only do - registration.file_flags.should == File::CREAT|File::TRUNC|File::RDWR + expect(registration.file_flags).to eq(File::CREAT|File::TRUNC|File::RDWR) end end end -- cgit v1.2.1