Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmartin committed Jul 14, 2014
1 parent 00b703a commit 61855cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/unit/attributes/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
let(:chef_run) { ChefSpec::Runner.new(platform: 'ubuntu', version: '12.04').converge(described_recipe) }

context 'sets default attributes' do
it { expect(default_cookbook_attribute('base_url').to eq('https://dl.bintray.com/mitchellh/consul/'))}
it { expect(chef_run.node.consul.base_url).to eq('https://dl.bintray.com/mitchellh/consul/') }
end
end
4 changes: 2 additions & 2 deletions spec/unit/recipes/install_source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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('https://github.com/hashicorp/consul.git') }
it { expect(chef_run.link('/usr/bin/local/consul')).to link_to('/opt/go/bin') }
it { expect(chef_run).to checkout_git('/opt/go/src/github.com/hashicorp/consul') }
it { expect(chef_run.link('/usr/local/bin/consul')).to link_to('/opt/go/bin/consul') }
it { expect(chef_run).to include_recipe('consul::_service') }
end

0 comments on commit 61855cd

Please sign in to comment.