Commit 339596b2 authored by Marius Bobin's avatar Marius Bobin

Replace private methods with public ones

parent fb0ec381
......@@ -98,8 +98,8 @@ RSpec.describe Ci::UpdateBuildStateService do
it 'updates the allow_failure flag' do
expect(build)
.to receive(:conditionally_allow_failure!)
.with(42)
.to receive(:drop_with_exit_code!)
.with('script_failure', 42)
.and_call_original
subject.execute
......@@ -127,8 +127,8 @@ RSpec.describe Ci::UpdateBuildStateService do
it 'updates the allow_failure flag' do
expect(build)
.to receive(:conditionally_allow_failure!)
.with(42)
.to receive(:drop_with_exit_code!)
.with('script_failure', 42)
.and_call_original
subject.execute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment