Exception: StubRequests::InvalidType
- Defined in:
- lib/stub_requests/stub_requests.rb
Overview
InvalidType is raised when an argument is invalid
Instance Method Summary collapse
-
#initialize(actual:, expected:) ⇒ InvalidType
constructor
A new instance of InvalidType.
Constructor Details
#initialize(actual:, expected:) ⇒ InvalidType
Returns a new instance of InvalidType
28 29 30 |
# File 'lib/stub_requests/stub_requests.rb', line 28 def initialize(actual:, expected:) super("Expected `#{actual}` to be any of [#{expected}]") end |