summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2015-01-14 08:47:57 -0800
committerHunter Haugen <hunter@puppetlabs.com>2015-01-14 08:53:31 -0800
commit68fc802b937334eda195f28c645e43b23d3ff061 (patch)
tree5d3b3e205e772b82f2d155c5663bb5f8239afcd7 /spec
parent762071224dad242eec7ca8c16f5dce850abc0c79 (diff)
Remove let use as variable.
Since lets can't be used in before :all any more.
Diffstat (limited to 'spec')
-rw-r--r--spec/acceptance/clone_repo_spec.rb13
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,