summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-11-07 17:24:53 -0800
committerSerdar Sutay <serdar@opscode.com>2014-11-07 17:24:53 -0800
commit66a502039dd4213de42691c2d37b8fea93bb14bc (patch)
tree522b36b15c03cb5c771e7fe727033c380e4eab4a
parent3630b9bae02b5ef882e90e43626e6ab39899642d (diff)
downloadchef-ryan/follow_symlinks.tar.gz
Fix rspec 3 specs.ryan/follow_symlinks
-rw-r--r--spec/unit/api_client/registration_spec.rb4
1 files 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