Sha256: 30025943a532ef285715afc5782ff226fd431c094833082ee1c6d2f495aeb41f

Contents?: true

Size: 478 Bytes

Versions: 22

Compression:

Stored size: 478 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 asynchronously the task" do
      Rollbar.should_receive(:process_payload)

      subject.call payload
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rollbar-0.13.1 spec/delay/sucker_punch_spec.rb
rollbar-0.13.0 spec/delay/sucker_punch_spec.rb
rollbar-0.12.20 spec/delay/sucker_punch_spec.rb
rollbar-0.12.19 spec/delay/sucker_punch_spec.rb
rollbar-0.12.18 spec/delay/sucker_punch_spec.rb
rollbar-0.12.17 spec/delay/sucker_punch_spec.rb
rollbar-0.12.16 spec/delay/sucker_punch_spec.rb
rollbar-0.12.15 spec/delay/sucker_punch_spec.rb
rollbar-0.12.14 spec/delay/sucker_punch_spec.rb
rollbar-0.12.13 spec/delay/sucker_punch_spec.rb
rollbar-0.12.12 spec/delay/sucker_punch_spec.rb
rollbar-0.12.11 spec/delay/sucker_punch_spec.rb
rollbar-0.12.10 spec/delay/sucker_punch_spec.rb
rollbar-0.12.9 spec/delay/sucker_punch_spec.rb
rollbar-0.12.8 spec/delay/sucker_punch_spec.rb
rollbar-0.12.7 spec/delay/sucker_punch_spec.rb
rollbar-0.12.6 spec/delay/sucker_punch_spec.rb
rollbar-0.12.5 spec/delay/sucker_punch_spec.rb
rollbar-0.12.3 spec/delay/sucker_punch_spec.rb
rollbar-0.12.2 spec/delay/sucker_punch_spec.rb