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 ...@@ -98,8 +98,8 @@ RSpec.describe Ci::UpdateBuildStateService do
it 'updates the allow_failure flag' do it 'updates the allow_failure flag' do
expect(build) expect(build)
.to receive(:conditionally_allow_failure!) .to receive(:drop_with_exit_code!)
.with(42) .with('script_failure', 42)
.and_call_original .and_call_original
subject.execute subject.execute
...@@ -127,8 +127,8 @@ RSpec.describe Ci::UpdateBuildStateService do ...@@ -127,8 +127,8 @@ RSpec.describe Ci::UpdateBuildStateService do
it 'updates the allow_failure flag' do it 'updates the allow_failure flag' do
expect(build) expect(build)
.to receive(:conditionally_allow_failure!) .to receive(:drop_with_exit_code!)
.with(42) .with('script_failure', 42)
.and_call_original .and_call_original
subject.execute 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