spec/gush/workflow_spec.rb in gush-1.0.0 vs spec/gush/workflow_spec.rb in gush-1.1.0

- old
+ new

@@ -11,12 +11,11 @@ run PersistFirstJob, after: FetchFirstJob end end expect_any_instance_of(klass).to receive(:configure).with("arg1", "arg2") - flow = klass.new("arg1", "arg2") - + klass.new("arg1", "arg2") end end describe "#status" do context "when failed" do @@ -100,38 +99,10 @@ "total" => 2, "finished" => 0, "started_at" => nil, "finished_at" => nil, "stopped" => false, - "arguments" => ["arg1", "arg2"], - "jobs" => [ - { - "name"=>a_string_starting_with('FetchFirstJob'), - "klass"=>"FetchFirstJob", - "incoming"=>[], - "outgoing"=>[a_string_starting_with('PersistFirstJob')], - "finished_at"=>nil, - "started_at"=>nil, - "enqueued_at"=>nil, - "failed_at"=>nil, - "params" => {}, - "output_payload" => nil, - "workflow_id" => an_instance_of(String) - }, - { - "name"=>a_string_starting_with('PersistFirstJob'), - "klass"=>"PersistFirstJob", - "incoming"=>["FetchFirstJob"], - "outgoing"=>[], - "finished_at"=>nil, - "started_at"=>nil, - "enqueued_at"=>nil, - "failed_at"=>nil, - "params" => {}, - "output_payload" => nil, - "workflow_id" => an_instance_of(String) - } - ] + "arguments" => ["arg1", "arg2"] } expect(result).to match(expected) end end