Skip to content

Commit 7449556

Browse files
committed
Improve naming for other_action mock (PR comment)
1 parent 8953126 commit 7449556

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/ios_bump_version_release_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
describe Fastlane::Actions::IosBumpVersionReleaseAction do
44
let(:default_branch) { 'my_new_branch' }
5-
let(:ensure_git_action_instance) { double() }
65
let(:versions) { ['6.30'] }
76
let(:next_version) { '6.31.0.0' }
87
let(:next_version_short) { '6.31' }
98

109
describe 'creates the release branch, bumps the app version and commits the changes' do
1110
before do
12-
allow(Fastlane::Action).to receive(:other_action).and_return(ensure_git_action_instance)
13-
allow(ensure_git_action_instance).to receive(:ensure_git_branch).with(branch: default_branch)
11+
other_action_mock = double()
12+
allow(Fastlane::Action).to receive(:other_action).and_return(other_action_mock)
13+
allow(other_action_mock).to receive(:ensure_git_branch).with(branch: default_branch)
1414

1515
allow(Fastlane::Helper::GitHelper).to receive(:checkout_and_pull).with(default_branch)
1616
allow(Fastlane::Helper::GitHelper).to receive(:create_branch).with("release/#{next_version_short}", from: default_branch)

0 commit comments

Comments
 (0)