Skip to content

Commit 173514e

Browse files
committed
add a test for passing the :async option
1 parent 8847f82 commit 173514e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/rubydoop/job_definition_spec.rb

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ module Rubydoop
3030
described_class.new(context, job)
3131
end
3232

33+
describe '#initialize' do
34+
it 'should set rubydoop.submit_async on the configuration if :async is passed' do
35+
async_definition = described_class.new(context, job, :async => true)
36+
configuration.get_boolean('rubydoop.submit_async', false).should == true
37+
end
38+
end
39+
3340
describe '#input' do
3441
it 'should take a single path' do
3542
job_definition.input('secret_rubydoop_path')

0 commit comments

Comments
 (0)