summaryrefslogtreecommitdiff
path: root/spec/unit/api_client
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/api_client')
-rw-r--r--spec/unit/api_client/registration_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/api_client/registration_spec.rb b/spec/unit/api_client/registration_spec.rb
index 513fa43a98..471c7149d7 100644
--- a/spec/unit/api_client/registration_spec.rb
+++ b/spec/unit/api_client/registration_spec.rb
@@ -31,7 +31,7 @@ describe Chef::ApiClient::Registration do
let(:registration) { Chef::ApiClient::Registration.new("silent-bob", key_location) }
let :private_key_data do
- File.open(Chef::Config[:validation_key], "rb") {|f| f.read.chomp }
+ File.open(Chef::Config[:validation_key], "r") {|f| f.read.chomp }
end
before do