Skip to content

Commit

Permalink
test workflow invalid payload
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed May 23, 2024
1 parent 69a0a96 commit 2f504f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/workflow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@

expect { described_class.new(payload) }.to raise_error(Floe::InvalidWorkflowError, /must be less than or equal to 80 characters/)
end

it "raises an exception for invalid context" do
expect { described_class.new(make_payload({"Start" => {"Type" => "Success"}}), "abc") }.to raise_error(Floe::InvalidWorkflowError, /unexpected token/)
end
end

describe "#run_nonblock" do
Expand Down

0 comments on commit 2f504f1

Please sign in to comment.