spec/lib/appsignal/hooks/sidekiq_spec.rb in appsignal-1.4.0.alpha.2 vs spec/lib/appsignal/hooks/sidekiq_spec.rb in appsignal-1.4.0.beta.1
- old
+ new
@@ -1,7 +1,5 @@
-require 'spec_helper'
-
describe Appsignal::Hooks::SidekiqPlugin do
let(:worker) { double }
let(:queue) { double }
let(:current_transaction) { background_job_transaction }
let(:item) {{
@@ -77,10 +75,11 @@
end
end
end
context "with an erroring call" do
- let(:error) { VerySpecificError.new('the roof') }
+ let(:error) { VerySpecificError.new }
+
it "should add the exception to appsignal" do
Appsignal::Transaction.any_instance.should_receive(:set_error).with(error)
end
after do