Class: CapybaraMock::Interceptor::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/capybara_mock/interceptor/base.rb

Overview

Base interceptor class

Direct Known Subclasses

Cuprite

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



9
10
11
12
# File 'lib/capybara_mock/interceptor/base.rb', line 9

def initialize
  @stubs = []
  @unstubbed_requests = []
end

Instance Attribute Details

#stubsObject (readonly)

Returns the value of attribute stubs.



7
8
9
# File 'lib/capybara_mock/interceptor/base.rb', line 7

def stubs
  @stubs
end

#unstubbed_requestsObject (readonly)

Returns the value of attribute unstubbed_requests.



7
8
9
# File 'lib/capybara_mock/interceptor/base.rb', line 7

def unstubbed_requests
  @unstubbed_requests
end