summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/api_client/registration_spec.rb2
-rw-r--r--spec/unit/api_client_spec.rb2
2 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 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
diff --git a/spec/unit/api_client_spec.rb b/spec/unit/api_client_spec.rb
index d1097d81bf..50f22c7066 100644
--- a/spec/unit/api_client_spec.rb
+++ b/spec/unit/api_client_spec.rb
@@ -154,7 +154,7 @@ describe Chef::ApiClient do
end
let :private_key_data do
- File.open(Chef::Config[:client_key], "rb") {|f| f.read.chomp }
+ File.open(Chef::Config[:client_key], "r") {|f| f.read.chomp }
end
it "has an HTTP client configured with default credentials" do