summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorwilkosz <joshua@wilkosz.com.au>2020-04-27 15:27:03 +1000
committerwilkosz <joshua@wilkosz.com.au>2020-04-27 15:49:18 +1000
commit946ed9f79aebba78df1c774346c796bf923d251c (patch)
tree0f35f445e64416e555c621777785152c727f3060 /spec
parent8699b6d1e8d9c3fdb859fbe8083fd4291ff8816d (diff)
downloadohai-946ed9f79aebba78df1c774346c796bf923d251c.tar.gz
run lint correction on files
Signed-off-by: wilkosz <joshua@wilkosz.com.au>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/plugins/ec2_spec.rb2
-rw-r--r--spec/unit/plugins/eucalyptus_spec.rb2
-rw-r--r--spec/unit/plugins/openstack_spec.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/plugins/ec2_spec.rb b/spec/unit/plugins/ec2_spec.rb
index 5c26f926..d586d94b 100644
--- a/spec/unit/plugins/ec2_spec.rb
+++ b/spec/unit/plugins/ec2_spec.rb
@@ -49,7 +49,7 @@ describe Ohai::System, "plugin ec2" do
allow(t).to receive(:connect_nonblock).and_raise(Errno::EINPROGRESS)
allow(Socket).to receive(:new).and_return(t)
token = "AQAEAE4UUd-3NE5EEeYYXKxicVfDOHsx0YSHFFSuCvo2GfCcxzJsvg=="
- @get_req_token_header = {:'X-aws-ec2-metadata-token' => token}
+ @get_req_token_header = { 'X-aws-ec2-metadata-token': token }
allow(@http_client).to receive(:put) { double("Net::HTTP::PUT Response", body: token, code: "200") }
expect(@http_client).to receive(:get)
.with("/", @get_req_token_header)
diff --git a/spec/unit/plugins/eucalyptus_spec.rb b/spec/unit/plugins/eucalyptus_spec.rb
index d27298a4..2f27d3b3 100644
--- a/spec/unit/plugins/eucalyptus_spec.rb
+++ b/spec/unit/plugins/eucalyptus_spec.rb
@@ -34,7 +34,7 @@ describe Ohai::System, "plugin eucalyptus" do
before do
@http_client = double("Net::HTTP client")
@token = "AQAEAE4UUd-3NE5EEeYYXKxicVfDOHsx0YSHFFSuCvo2GfCcxzJsvg=="
- @get_req_token_header = {:'X-aws-ec2-metadata-token' => @token}
+ @get_req_token_header = { 'X-aws-ec2-metadata-token': @token }
allow(plugin).to receive(:http_client).and_return(@http_client)
allow(@http_client).to receive(:put) { double("Net::HTTP::PUT Response", body: @token, code: "200") }
diff --git a/spec/unit/plugins/openstack_spec.rb b/spec/unit/plugins/openstack_spec.rb
index 8700957f..7964aee1 100644
--- a/spec/unit/plugins/openstack_spec.rb
+++ b/spec/unit/plugins/openstack_spec.rb
@@ -190,7 +190,7 @@ describe Ohai::System, "plugin openstack" do
token = "AQAEAE4UUd-3NE5EEeYYXKxicVfDOHsx0YSHFFSuCvo2GfCcxzJsvg=="
allow(http_client).to receive(:put) { double("Net::HTTP::PUT Response", body: token, code: "200") }
allow(http_client).to receive(:get)
- .with(url, {:'X-aws-ec2-metadata-token' =>token})
+ .with(url, { 'X-aws-ec2-metadata-token': token })
.and_return(double("HTTP Response", code: "200", body: response_body))
end