summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider/vcsrepo/hg_spec.rb
diff options
context:
space:
mode:
authorGary Larizza <gary@puppetlabs.com>2012-10-30 17:40:13 -0700
committerGary Larizza <gary@puppetlabs.com>2012-10-30 17:40:13 -0700
commit8b0df4beccdb62a87e82ba2f25b8060882c07b93 (patch)
treea699ee9774122c4912c686dc041707a063e69a6d /spec/unit/puppet/provider/vcsrepo/hg_spec.rb
parent109d181b8ec6130151b2e8144cdaecf986a96075 (diff)
parentb0f655163696aea40813db54fd830387bfc7e499 (diff)
Merge pull request #35 from sodabrew/dummy-provider
Add a dummy provider, remove 'defaultfor' from all other providers.
Diffstat (limited to 'spec/unit/puppet/provider/vcsrepo/hg_spec.rb')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/hg_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/hg_spec.rb b/spec/unit/puppet/provider/vcsrepo/hg_spec.rb
index e1287cf..f17aa2f 100644
--- a/spec/unit/puppet/provider/vcsrepo/hg_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/hg_spec.rb
@@ -1,4 +1,4 @@
-require 'pathname'; Pathname.new(__FILE__).realpath.ascend { |x| begin; require (x + 'spec_helper.rb'); break; rescue LoadError; end }
+require 'spec_helper'
describe_provider :vcsrepo, :hg, :resource => {:path => '/tmp/vcsrepo'} do
@@ -94,9 +94,9 @@ describe_provider :vcsrepo, :hg, :resource => {:path => '/tmp/vcsrepo'} do
end
it "should use 'hg update ---clean -r'" do
expects_chdir
- provider.expects('hg').with('pull')
- provider.expects('hg').with('merge')
- provider.expects('hg').with('update', '--clean', '-r', @revision)
+ provider.expects(:hg).with('pull')
+ provider.expects(:hg).with('merge')
+ provider.expects(:hg).with('update', '--clean', '-r', @revision)
provider.revision = @revision
end
end