Skip to content

Commit f4730e5

Browse files
committed
Fix spec argment
1 parent 56ed3c5 commit f4730e5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

spec/core/database/test_data_operetor_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,23 @@
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

0 commit comments

Comments
 (0)