We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f6db516 + b00d17b commit 526fbc7Copy full SHA for 526fbc7
2 files changed
lib/cloudconvert/webhook/processor.rb
@@ -11,7 +11,7 @@ module CloudConvert::Webhook::Processor
11
12
def create
13
method = event.name.gsub(".", "_")
14
- raise NoMethodError.new("#{name}##{method} not implemented") unless respond_to?(method, true)
+ raise NoMethodError.new("#{self.class.name}##{method} not implemented") unless respond_to?(method, true)
15
send(method, event)
16
head(:ok)
17
end
spec/webhook/processor_spec.rb
@@ -80,7 +80,7 @@ def webhook_secret(event)
80
let(:controller) { ControllerWithoutMethod.new(request) }
81
82
it "raises an error" do
83
- expect { controller.create }.to raise_error NoMethodError
+ expect { controller.create }.to raise_error(NoMethodError, "ControllerWithoutMethod#job_finished not implemented")
84
85
86
0 commit comments