From f2f4586d1e91ef55fddfbf74fd227ef7c0f685c8 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 19 Nov 2020 13:42:46 -0700 Subject: test: update assertions --- spec/integration/core/git_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/integration/core/git_spec.rb') diff --git a/spec/integration/core/git_spec.rb b/spec/integration/core/git_spec.rb index 63bb4d8..f20020b 100644 --- a/spec/integration/core/git_spec.rb +++ b/spec/integration/core/git_spec.rb @@ -32,7 +32,7 @@ RSpec.describe Spandx::Core::Git do subject.update! end - specify { expect(shell).to have_received(:system).with('git', 'clone', '--quiet', '--depth=1', '--single-branch', '--branch', 'master', url, expected_path) } + specify { expect(shell).to have_received(:system).with('git', 'clone', '--quiet', '--depth=1', '--single-branch', '--branch', 'main', url, expected_path, exception: true) } end context 'when the repository has already been cloned' do @@ -45,7 +45,7 @@ RSpec.describe Spandx::Core::Git do subject.update! end - it { expect(shell).to have_received(:system).with('git', 'pull', '--no-rebase', '--quiet', 'origin', 'master') } + it { expect(shell).to have_received(:system).with('git', 'fetch', '--quiet', '--depth=1', '--prune', '--no-tags', 'origin', exception: true) } end end end -- cgit v1.2.3