File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 describe '#save_job_record_and_get_job_id' do
2525 let ( :start_time ) { Time . now }
2626 let ( :command_and_option ) { 'bucky run -t e2e' }
27+ let ( :fqdn ) { 'https://example.com' }
2728 before do
2829 allow ( con_double ) . to receive ( :[] ) . and_return ( sequel_instance_double )
2930 allow ( db_connector_double ) . to receive ( :con ) . and_return ( con_double )
3031 end
3132 it 'call Sequel#insert' do
3233 expect ( sequel_instance_double ) . to receive ( :insert )
33- subject . save_job_record_and_get_job_id ( start_time , command_and_option )
34+ subject . save_job_record_and_get_job_id ( start_time , command_and_option , fqdn )
3435 end
3536 it 'return job_id' do
3637 allow ( sequel_instance_double ) . to receive ( :insert ) . and_return ( 1 )
37- expect ( subject . save_job_record_and_get_job_id ( start_time , command_and_option ) ) . to eq 1
38+ expect ( subject . save_job_record_and_get_job_id ( start_time , command_and_option , fqdn ) ) . to eq 1
3839 end
3940 it 'disconnect database' do
4041 allow ( sequel_instance_double ) . to receive ( :insert )
4142 expect ( db_connector_double ) . to receive ( :disconnect )
42- subject . save_job_record_and_get_job_id ( start_time , command_and_option )
43+ subject . save_job_record_and_get_job_id ( start_time , command_and_option , fqdn )
4344 end
4445 end
4546
You can’t perform that action at this time.
0 commit comments