test/fast_track_test.rb in trailblazer-operation-0.2.0 vs test/fast_track_test.rb in trailblazer-operation-0.2.1
- old
+ new
@@ -181,10 +181,10 @@
fail :f
end
end
# it { puts Trailblazer::Activity::Introspect.Cct(update.instance_variable_get(:@process)) }
- it { update.decompose[0] }
+ it { update.to_h }
# Edit returns End.success
it { update.(edit_return: true).inspect("a", "b", "f").must_equal %{<Result:true [1, 2, nil] >} }
# Edit returns End.failure
it { update.(edit_return: false).inspect("a", "b", "f").must_equal %{<Result:false [1, nil, 3] >} }
# Edit returns End.pass_fast, but behaves like :success.