Exception: StubRequests::InvalidType

Inherits:
Error show all
Defined in:
lib/stub_requests/stub_requests.rb

Overview

InvalidType is raised when an argument is invalid

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initialize(actual:, expected:) ⇒ InvalidType

Returns a new instance of InvalidType

Since:

  • 0.1.0



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