Sha256: b4aead8f9896274878471b09bc1f7e4cc4e1fc1b933969c8ecfb1aab52796e45

Contents?: true

Size: 389 Bytes

Versions: 10

Compression:

Stored size: 389 Bytes

Contents

begin
  require "wisper/testing"
rescue LoadError
  puts "Railjet::Bus::Testing will only work in test environment"
end

module Railjet
  class Bus
    module Testing
      class << self
        delegate :adapter, to: Bus
        delegate :clear,   to: :adapter
        delegate :inline,  to: :testing

        def testing
          adapter::Testing
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
railjet-bus-2.1.3 lib/railjet/bus/testing.rb
railjet-bus-2.1.2 lib/railjet/bus/testing.rb
railjet-bus-2.1.1 lib/railjet/bus/testing.rb
railjet-bus-2.1.0 lib/railjet/bus/testing.rb
railjet-bus-2.0.0 lib/railjet/bus/testing.rb
railjet-bus-1.1.0 lib/railjet/bus/testing.rb
railjet-bus-1.0 lib/railjet/bus/testing.rb
railjet-bus-1.0.pre2 lib/railjet/bus/testing.rb
railjet-bus-1.0.pre1 lib/railjet/bus/testing.rb
railjet-bus-1.0.pre lib/railjet/bus/testing.rb