Skip to content

Commit

Permalink
really check that we're using the endpoint logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Dec 12, 2024
1 parent e7f2b3c commit 8b50cbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/assertion_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,10 @@ def __(activity, options, &block) # TODO: move this to endpoint.

require "trailblazer/endpoint"
it "Activity invoked via endpoint" do
assert_pass Create, {params: {title: "Roxanne"}},
ctx = assert_pass Create, {params: {title: "Roxanne"}},
title: "Roxanne"

assert_equal ctx[:object].title, "Roxanne"
end
end

0 comments on commit 8b50cbd

Please sign in to comment.