spec/facade_spec.rb in asynchronic-3.0.3 vs spec/facade_spec.rb in asynchronic-4.0.0

- old
+ new

@@ -4,11 +4,11 @@ after do Asynchronic.environment.data_store.clear Asynchronic.environment.queue_engine.clear end - + it 'Default queue' do Asynchronic.default_queue.must_equal :asynchronic_test end it 'Default queue_engine' do @@ -38,21 +38,21 @@ p.created_at.must_equal process.created_at end end it 'List processes' do - ids = 3.times.map do + ids = 3.times.map do process = Asynchronic.environment.create_process SequentialJob process.id end Asynchronic.processes.count.must_equal 3 3.times { |i| Asynchronic.processes[i].id == ids[i] } end it 'Enqueue' do id = BasicJob.enqueue input: 100 - + Asynchronic.environment.tap do |env| process = env.load_process id process.type.must_equal BasicJob process.params[:input].must_equal 100 env.default_queue.must_enqueued process \ No newline at end of file