Skip to content

Commit 6eeb448

Browse files
committed
[GBA-9] Allow multiple plans
Updating unit tests
1 parent 291f52b commit 6eeb448

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

spec/workers/create_execution_by_command_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# Network Device Education Foundation, Inc. ("NetDEF")
88
#
99
# frozen_string_literal: true
10-
#
1110

1211
describe CreateExecutionByCommand do
1312
let(:plan) { create(:plan) }
@@ -19,7 +18,6 @@
1918
}
2019
end
2120

22-
2321
before do
2422
allow(Plan).to receive(:find).with(plan.id).and_return(plan)
2523
allow(GithubLogger).to receive_message_chain(:instance, :create).and_return(Logger.new($stdout))

spec/workers/create_execution_by_comment_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# Network Device Education Foundation, Inc. ("NetDEF")
88
#
99
# frozen_string_literal: true
10-
#
1110

1211
describe CreateExecutionByComment do
1312
let(:pull_request) { create(:pull_request) }
@@ -54,7 +53,8 @@
5453
allow(GithubLogger).to receive_message_chain(:instance, :create).and_return(Logger.new($stdout))
5554
allow(Logger).to receive(:new).and_return(Logger.new($stdout))
5655
allow(PullRequest).to receive(:find).and_return(pull_request)
57-
allow_any_instance_of(CreateExecutionByComment).to receive(:run_by_plan).and_return([201, 'Starting re-run (comment)'])
56+
allow_any_instance_of(CreateExecutionByComment).to receive(:run_by_plan).and_return([201,
57+
'Starting re-run (comment)'])
5858
end
5959

6060
describe '.create' do

0 commit comments

Comments
 (0)