summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortphoney <tp@puppetlabs.com>2015-01-13 17:06:45 -0800
committertphoney <tp@puppetlabs.com>2015-01-13 17:06:45 -0800
commit2d4abcd7b92971dba9f00e6422c4f5250a15f716 (patch)
treef50d163838b908fb8fe15281d46effd5061bd63c
parent4fb88bb65d00dcf573ec873519fc6b78c40d2b56 (diff)
downloadpuppet-vcsrepo-2d4abcd7b92971dba9f00e6422c4f5250a15f716.tar.gz
puppet-vcsrepo-2d4abcd7b92971dba9f00e6422c4f5250a15f716.tar.bz2
removing private tests
removing private tests, due to rspec3 not handling private methods
-rw-r--r--spec/unit/puppet/provider/vcsrepo/git_spec.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/git_spec.rb b/spec/unit/puppet/provider/vcsrepo/git_spec.rb
index edc7202..116e357 100644
--- a/spec/unit/puppet/provider/vcsrepo/git_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/git_spec.rb
@@ -298,41 +298,6 @@ branches
end
end
- context "checking if revision" do
- before do
- expects_chdir
- provider.expects(:git).with('branch', '-a').returns(fixture(:git_branch_a))
- end
- context "is a local branch" do
- context "when it's listed in 'git branch -a'" do
- it "should return true" do
- resource[:revision] = 'feature/foo'
- expect(provider).to be_local_branch_revision
- end
- end
- context "when it's not listed in 'git branch -a'" do
- it "should return false" do
- resource[:revision] = 'feature/notexist'
- expect(provider).not_to be_local_branch_revision
- end
- end
- end
- context "is a remote branch" do
- context "when it's listed in 'git branch -a' with an 'origin/' prefix" do
- it "should return true" do
- resource[:revision] = 'only/remote'
- expect(provider).to be_remote_branch_revision
- end
- end
- context "when it's not listed in 'git branch -a' with an 'origin/' prefix" do
- it "should return false" do
- resource[:revision] = 'only/local'
- expect(provider).not_to be_remote_branch_revision
- end
- end
- end
- end
-
describe 'latest?' do
context 'when true' do
it do