Sha256: fb160f8346c7ebd65058db17fca7472eec260d69d970a608daa0347b21152322
Contents?: true
Size: 661 Bytes
Versions: 5
Compression:
Stored size: 661 Bytes
Contents
require 'spec_helper' class AirbrakeDummy extend ResqueMods::AirbrakeNotifyJob class << self def perform(a, b, c) end end end describe ResqueMods::AirbrakeNotifyJob do before do Airbrake.stub(:notify).and_return(true) end def do_job Resque::Job.new(:jobs, {'class' => "AirbrakeDummy", 'args' => [1, 2, 3]}).perform end it "should call the nested perform method" do AirbrakeDummy.should_receive(:perform).with(1, 2, 3) do_job end it "should not notify airbrake" do Airbrake.should_not_receive(:notify) do_job end context "when an error occurs" do # See always_fail_spec.rb end end
Version data entries
5 entries across 5 versions & 1 rubygems