<commit_before>require 'spec_helper'

describe_recipe 'consul::install_source' do
  before do
    stub_command("/opt/go/bin/go version | grep \"go1.3 \"").and_return(false)
  end

  it { expect(chef_run).to include_recipe('golang::default') }
  it { expect(chef_run).to create_directory('/opt/go/src/github.com/hashicorp') }
  it { expect(chef_run).to checkout_git('/opt/go/src/github.com/hashicorp/consul') }
  it { expect(chef_run).to install_golang_package('github.com/hashicorp/consul') }
  it { expect(chef_run.link('/usr/local/bin/consul')).to link_to('/opt/go/bin/consul') }
end
<commit_msg>Fix test to revert back to using proper golang version.<commit_after>require 'spec_helper'

describe_recipe 'consul::install_source' do
  before do
    stub_command("/opt/go/bin/go version | grep \"go1.2 \"").and_return(false)
  end

  it { expect(chef_run).to include_recipe('golang::default') }
  it { expect(chef_run).to create_directory('/opt/go/src/github.com/hashicorp') }
  it { expect(chef_run).to checkout_git('/opt/go/src/github.com/hashicorp/consul') }
  it { expect(chef_run).to install_golang_package('github.com/hashicorp/consul') }
  it { expect(chef_run.link('/usr/local/bin/consul')).to link_to('/opt/go/bin/consul') }
end

{'fraction_non_alphanumeric': 0.16558966074313408, 'fraction_numerical': 0.0032310177705977385, 'mean_word_length': 4.9855072463768115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2752872', 'n_tokens_mistral': 474, 'n_tokens_neox': 458, 'n_words': 67}