diff options
author | Tim Smith <tsmith@chef.io> | 2020-04-27 13:55:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 13:55:03 -0700 |
commit | f32b2b69a7cd63ae60537529d6a7e4c883c6f993 (patch) | |
tree | fecfc342857f41181bd6125bd3b4d25d7cc884e8 | |
parent | fc1ffb52793526d6cf22bc3c1a86526a9ea64a8c (diff) | |
parent | 5c06ba5a9800c01ddeeffe527fb95feba2a5081a (diff) | |
download | chef-f32b2b69a7cd63ae60537529d6a7e4c883c6f993.tar.gz |
Merge pull request #9757 from chef/lcg/git-func-test-fix
Remove git func test for upstream
-rw-r--r-- | spec/functional/resource/git_spec.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/functional/resource/git_spec.rb b/spec/functional/resource/git_spec.rb index 0355b59233..ca1bd30893 100644 --- a/spec/functional/resource/git_spec.rb +++ b/spec/functional/resource/git_spec.rb @@ -74,11 +74,6 @@ describe Chef::Resource::Git, requires_git: true do expect(rev_ver).to eq(version) end - def expect_branch_upstream_to_be(branch, upstream) - branch_upstream = shell_out("git", "rev-parse", "--abbrev-ref", "#{branch}@{upstream}", cwd: deploy_directory).stdout.strip - expect(branch_upstream).to eq(upstream) - end - def expect_branch_to_be(branch) head_branch = shell_out!("git name-rev --name-only HEAD", cwd: deploy_directory).stdout.strip expect(head_branch).to eq(branch) @@ -219,7 +214,6 @@ describe Chef::Resource::Git, requires_git: true do git deploy_directory do repository origin_repo end.should_be_updated - expect_branch_upstream_to_be("master", "origin/master") expect_revision_to_be("HEAD", rev_head) expect_branch_to_be("master") end |