Sha256: a0e36e0ab732246fc1fb1e5ab1ff18ec21fe99898985810710d947663d292a84

Contents?: true

Size: 498 Bytes

Versions: 19

Compression:

Stored size: 498 Bytes

Contents

require 'spec_helper'

begin
  require 'rollbar/delay/sucker_punch'
  require 'sucker_punch/testing/inline'
rescue LoadError
  module Rollbar
    module Delay
      class SuckerPunch
      end
    end
  end
end

describe Rollbar::Delay::SuckerPunch, :if => RUBY_VERSION != '1.8.7' do
  describe ".call" do
    let(:payload) { "anything" }

    it "performs the task asynchronously" do
      Rollbar.should_receive(:process_payload)

      Rollbar::Delay::SuckerPunch.call payload
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rollbar-1.3.0 spec/delay/sucker_punch_spec.rb
rollbar-1.2.13 spec/delay/sucker_punch_spec.rb
rollbar-1.2.12 spec/delay/sucker_punch_spec.rb
rollbar-1.2.11 spec/delay/sucker_punch_spec.rb
rollbar-1.2.10 spec/delay/sucker_punch_spec.rb
rollbar-1.2.9 spec/delay/sucker_punch_spec.rb
rollbar-1.2.8 spec/delay/sucker_punch_spec.rb
rollbar-1.2.7 spec/delay/sucker_punch_spec.rb
rollbar-1.2.6 spec/delay/sucker_punch_spec.rb
rollbar-1.2.5 spec/delay/sucker_punch_spec.rb
rollbar-1.2.4 spec/delay/sucker_punch_spec.rb
rollbar-1.2.3 spec/delay/sucker_punch_spec.rb
rollbar-1.2.2 spec/delay/sucker_punch_spec.rb
rollbar-1.2.1 spec/delay/sucker_punch_spec.rb
rollbar-1.2.0 spec/delay/sucker_punch_spec.rb
rollbar-1.1.0 spec/delay/sucker_punch_spec.rb
rollbar-1.0.1 spec/delay/sucker_punch_spec.rb
rollbar-1.0.0 spec/delay/sucker_punch_spec.rb
rollbar-0.13.2 spec/delay/sucker_punch_spec.rb