summaryrefslogtreecommitdiff
path: root/spec/integration/core/git_spec.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-11-19 15:43:39 -0700
committermo khan <mo.khan@gmail.com>2020-11-19 15:43:39 -0700
commitea05833387dbe655f933cc8de1391e43bce5bd81 (patch)
treea671ad7500d20dcb8a48cb4b18d553279827f919 /spec/integration/core/git_spec.rb
parentda848f7ecd69af21a5bb7b6c519d6ead76102753 (diff)
fix: exception true is not available in 2.5 and 2.6
Diffstat (limited to 'spec/integration/core/git_spec.rb')
-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 f20020b..d431dbd 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', 'main', url, expected_path, exception: true) }
+ specify { expect(shell).to have_received(:system).with('git', 'clone', '--quiet', '--depth=1', '--single-branch', '--branch', 'main', url, expected_path) }
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', 'fetch', '--quiet', '--depth=1', '--prune', '--no-tags', 'origin', exception: true) }
+ it { expect(shell).to have_received(:system).with('git', 'fetch', '--quiet', '--depth=1', '--prune', '--no-tags', 'origin') }
end
end
end