Skip to content

Commit 526fbc7

Browse files
authored
Merge pull request #5 from mackermedia/main
Fix CloudConvert::Webhook::Processor method `name` not implemented
2 parents f6db516 + b00d17b commit 526fbc7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/cloudconvert/webhook/processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module CloudConvert::Webhook::Processor
1111

1212
def create
1313
method = event.name.gsub(".", "_")
14-
raise NoMethodError.new("#{name}##{method} not implemented") unless respond_to?(method, true)
14+
raise NoMethodError.new("#{self.class.name}##{method} not implemented") unless respond_to?(method, true)
1515
send(method, event)
1616
head(:ok)
1717
end

spec/webhook/processor_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def webhook_secret(event)
8080
let(:controller) { ControllerWithoutMethod.new(request) }
8181

8282
it "raises an error" do
83-
expect { controller.create }.to raise_error NoMethodError
83+
expect { controller.create }.to raise_error(NoMethodError, "ControllerWithoutMethod#job_finished not implemented")
8484
end
8585
end
8686

0 commit comments

Comments
 (0)