Sha256: 03fa63c1bcdedb7a30664e92af48860af9ee89add603d16b34e5af5f5770fef8

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

require 'active_support/concern'
require 'support/mocks/pusher'

module Support
  module Pusher
    extend ActiveSupport::Concern

    attr_reader :pusher

    included do
      before :each do
        @pusher = Support::Mocks::Pusher.new
        Travis::Notifications::Pusher.any_instance.stubs(:channel).returns(pusher)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
travis-core-0.0.1 spec/support/pusher.rb