Skip to content

Commit 4587de4

Browse files
committed
tests
1 parent 5a78a55 commit 4587de4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

spec/acceptance/acceptance_tests.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ def expired_unix_timestamp(seconds_ago = 600)
505505
expect(body["message"]).to eq("the payload triggered a boomtown error")
506506
expect(body).to have_key("request_id")
507507
expect(body["request_id"]).to be_a(String)
508+
expect(body["foo"]).to eq("bar")
509+
expect(body["truthy"]).to eq(true)
508510
end
509511
end
510512
end

spec/acceptance/plugins/handlers/boomtown_with_error.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ def call(payload:, headers:, env:, config:)
1010
error!({
1111
error: "boomtown_with_error",
1212
message: "the payload triggered a boomtown error",
13+
foo: "bar",
14+
truthy: true,
15+
payload:,
16+
headers:,
1317
request_id: env["hooks.request_id"]
1418
}, 500)
1519
end

0 commit comments

Comments
 (0)