Skip to content

Commit

Permalink
feat(webhooks): do not show backtrace in webhook test execution response
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed May 24, 2019
1 parent d90c455 commit c8a8194
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module Decorators
class WebhookExecutionResultDecorator < BaseDecorator
class ErrorDecorator < BaseDecorator
property :message
property :backtrace
end

class HTTPRequestDecorator < BaseDecorator
Expand Down
4 changes: 2 additions & 2 deletions spec/features/execute_webhook_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@

subject { post path; last_response }

it "returns a 500 response" do
expect(subject.status).to be 500
it "returns a 200 response" do
expect(subject.status).to be 200
end

it "does not save a TriggeredWebhook" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ module Decorators
it "includes the message" do
expect(subject[:error][:message]).to eq 'message'
end

it "includes the backtrace" do
expect(subject[:error][:backtrace]).to eq ['blah','blah']
end
end

context "when there is a request" do
Expand Down

0 comments on commit c8a8194

Please sign in to comment.