diff options
author | Tim Smith <tsmith84@gmail.com> | 2016-04-13 10:02:31 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2016-04-13 10:02:31 -0700 |
commit | f63fe5afa9d132ee24e451890c7c2ba2b4801760 (patch) | |
tree | 342807de34d30e4b6ea892380d95e91bf4a37920 | |
parent | 9c8ee08b5d89ff2df113c59e72dd14332b99ac30 (diff) | |
download | ohai-f63fe5afa9d132ee24e451890c7c2ba2b4801760.tar.gz |
Resolve chefstyle warnings
-rw-r--r-- | spec/unit/plugins/azure_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/plugins/digital_ocean_spec.rb | 20 | ||||
-rw-r--r-- | spec/unit/plugins/rackspace_spec.rb | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/spec/unit/plugins/azure_spec.rb b/spec/unit/plugins/azure_spec.rb index e0b72fb9..dfa4f728 100644 --- a/spec/unit/plugins/azure_spec.rb +++ b/spec/unit/plugins/azure_spec.rb @@ -27,7 +27,7 @@ describe Ohai::System, "plugin azure" do "vm_name" => "test-vm", "public_fqdn" => "service.cloudapp.net", "public_ssh_port" => "22", - "public_winrm_port" => "5985" + "public_winrm_port" => "5985", } } diff --git a/spec/unit/plugins/digital_ocean_spec.rb b/spec/unit/plugins/digital_ocean_spec.rb index 11c42644..d5050a07 100644 --- a/spec/unit/plugins/digital_ocean_spec.rb +++ b/spec/unit/plugins/digital_ocean_spec.rb @@ -30,8 +30,8 @@ describe Ohai::System, "plugin digital_ocean" do "region_id" => 4, "ip_addresses" => { "public" => "1.2.3.4", - "private" => "5.6.7.8" - } + "private" => "5.6.7.8", + }, } } @@ -72,11 +72,11 @@ describe Ohai::System, "plugin digital_ocean" do it "pulls ip addresses from the network interfaces" do expect(plugin[:digital_ocean][:networks][:v4]).to eq([{ "ip_address" => "1.2.3.4", - "type" => "public", - "netmask" => "255.255.255.0" }]) + "type" => "public", + "netmask" => "255.255.255.0" }]) expect(plugin[:digital_ocean][:networks][:v6]).to eq([{ "ip_address" => "2400:6180:0000:00d0:0000:0000:0009:7001", - "type" => "public", - "cidr" => 128 }]) + "type" => "public", + "cidr" => 128 }]) end end @@ -137,14 +137,14 @@ describe Ohai::System, "plugin digital_ocean" do it "extracts the private networking ips" do expect(plugin[:digital_ocean][:networks][:v4]).to eq([{ "ip_address" => "1.2.3.4", - "type" => "public", - "netmask" => "255.255.255.0" }, + "type" => "public", + "netmask" => "255.255.255.0" }, { "ip_address" => "10.128.142.89", "type" => "private", "netmask" => "255.255.255.0" }]) expect(plugin[:digital_ocean][:networks][:v6]).to eq([{ "ip_address" => "2400:6180:0000:00d0:0000:0000:0009:7001", - "type" => "public", - "cidr" => 128 }, + "type" => "public", + "cidr" => 128 }, { "ip_address" => "fdf8:f53b:82e4:0000:0000:0000:0000:0053", "type" => "private", "cidr" => 128 }]) diff --git a/spec/unit/plugins/rackspace_spec.rb b/spec/unit/plugins/rackspace_spec.rb index e3d76e50..76dc34bf 100644 --- a/spec/unit/plugins/rackspace_spec.rb +++ b/spec/unit/plugins/rackspace_spec.rb @@ -220,7 +220,7 @@ OUT it_behaves_like "!rackspace" before(:each) do - allow(plugin).to receive(:hint?).with('rackspace').and_return(false) + allow(plugin).to receive(:hint?).with("rackspace").and_return(false) end end |