Sha256: 69329aba754bde15c6a2465c5c3cd19ab42e356f7b3898e14d23a76d47fb91d6
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 Bytes
Contents
# frozen_string_literal: true module CapybaraMock module Interceptor # Base interceptor class class Base attr_reader :stubs, :unstubbed_requests def initialize @stubs = [] @unstubbed_requests = [] end private def stub_for(request) @stubs.find do |stub| stub.match?(request) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capybara_mock-0.1.0 | lib/capybara_mock/interceptor/base.rb |