Sha256: 5a99f75f8f2d6b993051292bec9a99025469297bf5fb8d57e671a0c120d8cbaa

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

module Workarea
  module FlowBogusClientSupport
    def self.included(test)
      super
      test.setup :reset_bogus_client_requests
      test.teardown :stop_storing_requests
    end

    def reset_bogus_client_requests
      Workarea::FlowIo::BogusClient.store_requests = true
      Workarea::FlowIo::BogusClient.reset_requests!
    end

    def stop_storing_requests
      Workarea::FlowIo::BogusClient.store_requests = false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-flow_io-1.2.1 test/support/workarea/flow_bogus_client_support.rb