Module: RubyReactor::RSpec::Helpers

Defined in:
lib/ruby_reactor/rspec/helpers.rb

Instance Method Summary collapse

Instance Method Details

#test_reactor(reactor_class, inputs, context: {}, async: nil, process_jobs: true) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/ruby_reactor/rspec/helpers.rb', line 6

def test_reactor(reactor_class, inputs, context: {}, async: nil, process_jobs: true)
  TestSubject.new(
    reactor_class: reactor_class,
    inputs: inputs,
    context: context,
    async: async,
    process_jobs: process_jobs
  )
end