diff options
author | Gary Larizza <gary@puppetlabs.com> | 2012-10-30 17:40:13 -0700 |
---|---|---|
committer | Gary Larizza <gary@puppetlabs.com> | 2012-10-30 17:40:13 -0700 |
commit | 8b0df4beccdb62a87e82ba2f25b8060882c07b93 (patch) | |
tree | a699ee9774122c4912c686dc041707a063e69a6d /spec/unit/puppet/provider/vcsrepo/hg_spec.rb | |
parent | 109d181b8ec6130151b2e8144cdaecf986a96075 (diff) | |
parent | b0f655163696aea40813db54fd830387bfc7e499 (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.rb | 8 |
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 |