Skip to content

Commit

Permalink
test for ChoiceRule abstract implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed May 22, 2024
1 parent 8983ddc commit 204b7e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/workflow/choice_rule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
let(:subject) { described_class.build(payload).true?(context, input) }
let(:context) { {} }

context "Abstract Interface" do
let(:input) { {} }
let(:subject) { described_class.new({}).true?(context, input) }
it "is not implemented" do
expect { subject }.to raise_exception(NotImplementedError)
end
end

context "Boolean Expression" do
context "Not" do
let(:payload) { {"Not" => {"Variable" => "$.foo", "StringEquals" => "bar"}, "Next" => "FirstMatchState"} }
Expand Down

0 comments on commit 204b7e7

Please sign in to comment.