Sha256: faa482e386e4ef1dbac4afb8a6c1b267e4b190bfeb8f76309df1c82279ae07ec

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

require 'forwardable'

module Rype
  class FakeApi < Api
    class << self
      extend Forwardable

      def_delegator :instance, :recorded_messages
    end

    def attach
    end

    def invoke(message)
      recorded_messages << message
    end

    def recorded_messages
      @recorded_messages ||= []
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rype-0.0.4 features/support/lib/fake_api.rb
rype-0.0.3 features/support/lib/fake_api.rb
rype-0.0.2 features/support/lib/fake_api.rb
rype-0.0.1 features/support/lib/fake_api.rb