summaryrefslogtreecommitdiff
path: root/spec/integration/knife/cookbook_api_ipv6_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration/knife/cookbook_api_ipv6_spec.rb')
-rw-r--r--spec/integration/knife/cookbook_api_ipv6_spec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/integration/knife/cookbook_api_ipv6_spec.rb b/spec/integration/knife/cookbook_api_ipv6_spec.rb
index 3126c93a1c..ed6a92c73c 100644
--- a/spec/integration/knife/cookbook_api_ipv6_spec.rb
+++ b/spec/integration/knife/cookbook_api_ipv6_spec.rb
@@ -23,7 +23,7 @@ describe "Knife cookbook API integration with IPv6", :workstation, :not_supporte
include Chef::Mixin::ShellOut
when_the_chef_server "is bound to IPv6" do
- let(:chef_zero_opts) { {:host => "::1"} }
+ let(:chef_zero_opts) { { :host => "::1" } }
let(:client_key) do
<<-END_VALIDATION_PEM
@@ -69,10 +69,8 @@ END_VALIDATION_PEM
# Some Solaris test platforms are too old for IPv6. These tests should not
# otherwise be platform dependent, so exclude solaris
context "and the chef_server_url contains an IPv6 literal", :not_supported_on_solaris do
-
# This provides helper functions we need such as #path_to()
when_the_repository "has the cookbook to be uploaded" do
-
let(:knife_rb_content) do
<<-END_CLIENT_RB
chef_server_url "http://[::1]:8900"
@@ -102,10 +100,9 @@ END_CLIENT_RB
it "downloads the cookbook" do
shell_out!("knife cookbook download apache2 #{knife_config_flag} -d #{cache_path}", :cwd => chef_dir)
- expect(Dir["#{cache_path}/*"].map {|entry| File.basename(entry)}).to include("apache2-0.0.1")
+ expect(Dir["#{cache_path}/*"].map { |entry| File.basename(entry) }).to include("apache2-0.0.1")
end
end
-
end
end
end