summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-11-19 13:42:46 -0700
committermo khan <mo.khan@gmail.com>2020-11-19 13:42:46 -0700
commitf2f4586d1e91ef55fddfbf74fd227ef7c0f685c8 (patch)
tree9f78c936a54b9715366c851d54d13e4610407aef
parentf605bdf2e65baa85a396a7327674f22f33f4241a (diff)
test: update assertions
-rw-r--r--spec/integration/core/git_spec.rb4
1 files changed, 2 insertions, 2 deletions
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