diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2015-01-13 17:16:05 -0800 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2015-01-13 17:16:05 -0800 |
commit | 762071224dad242eec7ca8c16f5dce850abc0c79 (patch) | |
tree | f50d163838b908fb8fe15281d46effd5061bd63c /spec | |
parent | 4fb88bb65d00dcf573ec873519fc6b78c40d2b56 (diff) | |
parent | 2d4abcd7b92971dba9f00e6422c4f5250a15f716 (diff) | |
download | puppet-vcsrepo-762071224dad242eec7ca8c16f5dce850abc0c79.tar.gz puppet-vcsrepo-762071224dad242eec7ca8c16f5dce850abc0c79.tar.bz2 |
Merge pull request #228 from tphoney/removing_private_tests
removing private tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/puppet/provider/vcsrepo/git_spec.rb | 35 |
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 |