diff options
author | Colleen Murphy <cmurphy@users.noreply.github.com> | 2015-01-14 08:56:50 -0800 |
---|---|---|
committer | Colleen Murphy <cmurphy@users.noreply.github.com> | 2015-01-14 08:56:50 -0800 |
commit | de7bf159c721a1461b7d8a61e98fd024344c7eb5 (patch) | |
tree | 5d3b3e205e772b82f2d155c5663bb5f8239afcd7 | |
parent | 762071224dad242eec7ca8c16f5dce850abc0c79 (diff) | |
parent | 68fc802b937334eda195f28c645e43b23d3ff061 (diff) | |
download | puppet-vcsrepo-de7bf159c721a1461b7d8a61e98fd024344c7eb5.tar.gz puppet-vcsrepo-de7bf159c721a1461b7d8a61e98fd024344c7eb5.tar.bz2 |
Merge pull request #229 from hunner/update_before
Update let to use instance variable instead.
-rw-r--r-- | spec/acceptance/clone_repo_spec.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/spec/acceptance/clone_repo_spec.rb b/spec/acceptance/clone_repo_spec.rb index 4e9293b..2cca061 100644 --- a/spec/acceptance/clone_repo_spec.rb +++ b/spec/acceptance/clone_repo_spec.rb @@ -327,21 +327,18 @@ describe 'clones a remote repo' do end context 'and noop' do - let(:repo_name) do - 'testrepo_already_exists' - end before(:all) do - shell("mkdir #{tmpdir}/#{repo_name}") - shell("cd #{tmpdir}/#{repo_name} && git init") - shell("cd #{tmpdir}/#{repo_name} && touch a && git add a && git commit -m 'a'") + shell("mkdir #{tmpdir}/testrepo_already_exists") + shell("cd #{tmpdir}/testrepo_already_exists && git init") + shell("cd #{tmpdir}/testrepo_already_exists && touch a && git add a && git commit -m 'a'") end after(:all) do - shell("rm -rf #{tmpdir}/#{repo_name}") + shell("rm -rf #{tmpdir}/testrepo_already_exists") end it 'applies the manifest' do pp = <<-EOS - vcsrepo { "#{tmpdir}/#{repo_name}": + vcsrepo { "#{tmpdir}/testrepo_already_exists": ensure => present, source => "file://#{tmpdir}/testrepo.git", provider => git, |