File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77# Network Device Education Foundation, Inc. ("NetDEF")
88#
99# frozen_string_literal: true
10- #
1110
1211describe CreateExecutionByCommand do
1312 let ( :plan ) { create ( :plan ) }
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) )
Original file line number Diff line number Diff line change 77# Network Device Education Foundation, Inc. ("NetDEF")
88#
99# frozen_string_literal: true
10- #
1110
1211describe CreateExecutionByComment do
1312 let ( :pull_request ) { create ( :pull_request ) }
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
You can’t perform that action at this time.
0 commit comments