diff options
author | danielsdeleo <dan@opscode.com> | 2012-12-19 11:21:06 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-12-19 11:21:06 -0800 |
commit | 6bd2a8145a38b452c7b23ead1890cfd80f261af7 (patch) | |
tree | 6dae8c306d2c7c2078308324549dcbdad609f07c | |
parent | ebe554b95186ec344988156e67cf8c196cce5270 (diff) | |
download | chef-6bd2a8145a38b452c7b23ead1890cfd80f261af7.tar.gz |
[CHEF-3689] binary mode lulz in test data
-rw-r--r-- | spec/unit/api_client/registration_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/api_client_spec.rb | 2 |
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 |