Sha256: 5659316e27fc7e191b77dfbdeed85f68ff3c95d56d129af26ba414578fbe2361

Contents?: true

Size: 673 Bytes

Versions: 43

Compression:

Stored size: 673 Bytes

Contents

require 'spec_helper'

describe TestFlow, :redis => true do
  it "should persist and retrieve" do
    processA = TestFlow.create_process(:arg1, :arg2)

    processB = Taskinator::Process.fetch(processA.uuid)

    expect(processB.uuid).to eq(processA.uuid)
    expect(processB.definition).to eq(processA.definition)
    expect(processB.options).to eq(processA.options)

    expect(processB.tasks.count).to eq(processA.tasks.count)

    tasks = processA.tasks.zip(processB.tasks)

    tasks.each do |(taskB, taskA)|
      expect(taskA.process).to eq(taskB.process)
      expect(taskA.uuid).to eq(taskB.uuid)
      expect(taskA.options).to eq(taskB.options)
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
taskinator-0.5.2 spec/taskinator/complex_process_spec.rb
taskinator-0.5.1 spec/taskinator/complex_process_spec.rb
taskinator-0.5.0 spec/taskinator/complex_process_spec.rb
taskinator-0.4.7 spec/taskinator/complex_process_spec.rb
taskinator-0.4.6 spec/taskinator/complex_process_spec.rb
taskinator-0.4.5 spec/taskinator/complex_process_spec.rb
taskinator-0.4.4 spec/taskinator/complex_process_spec.rb
taskinator-0.4.3 spec/taskinator/complex_process_spec.rb
taskinator-0.4.2 spec/taskinator/complex_process_spec.rb
taskinator-0.4.1 spec/taskinator/complex_process_spec.rb
taskinator-0.4.0 spec/taskinator/complex_process_spec.rb
taskinator-0.3.16 spec/taskinator/complex_process_spec.rb
taskinator-0.3.15 spec/taskinator/complex_process_spec.rb
taskinator-0.3.14 spec/taskinator/complex_process_spec.rb
taskinator-0.3.13 spec/taskinator/complex_process_spec.rb
taskinator-0.3.12 spec/taskinator/complex_process_spec.rb
taskinator-0.3.11 spec/taskinator/complex_process_spec.rb
taskinator-0.3.10 spec/taskinator/complex_process_spec.rb
taskinator-0.3.9 spec/taskinator/complex_process_spec.rb
taskinator-0.3.7 spec/taskinator/complex_process_spec.rb