From ba27d83bfd037bc5000aaf808e9accaa4c294c7b Mon Sep 17 00:00:00 2001 From: Radek Wierzbicki Date: Mon, 15 Dec 2014 17:30:03 -0500 Subject: [PATCH] making it work with golang cookbook 1.4.0 --- metadata.rb | 2 +- spec/unit/recipes/default_spec.rb | 2 +- spec/unit/recipes/install_source_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/metadata.rb b/metadata.rb index 7fbcfc29..fb06b2c9 100644 --- a/metadata.rb +++ b/metadata.rb @@ -24,6 +24,6 @@ suggests 'chef-provisioning' depends 'ark' -depends 'golang', '~> 1.3.0' +depends 'golang', '~> 1.4.0' depends 'runit' depends 'yum-repoforge' diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb index 89cece7b..ae58e797 100644 --- a/spec/unit/recipes/default_spec.rb +++ b/spec/unit/recipes/default_spec.rb @@ -16,7 +16,7 @@ end before do - stub_command("/usr/local/go/bin/go version | grep \"go1.2 \"").and_return(false) + stub_command("/usr/local/go/bin/go version | grep \"go1.2.2 \"").and_return(false) end it { expect(chef_run).not_to include_recipe('consul::install_binary') } diff --git a/spec/unit/recipes/install_source_spec.rb b/spec/unit/recipes/install_source_spec.rb index 3bc34bd7..aa31cda3 100644 --- a/spec/unit/recipes/install_source_spec.rb +++ b/spec/unit/recipes/install_source_spec.rb @@ -2,7 +2,7 @@ describe_recipe 'consul::install_source' do before do - stub_command("/usr/local/go/bin/go version | grep \"go1.2 \"").and_return(false) + stub_command("/usr/local/go/bin/go version | grep \"go1.2.2 \"").and_return(false) end it { expect(chef_run).to include_recipe('golang::default') }