Exception: Spectro::Exception::UnknownMockResponse
- Inherits:
-
Exception
- Object
- Exception
- Spectro::Exception::UnknownMockResponse
- Defined in:
- lib/spectro/exception/unknown_mock_response.rb
Instance Attribute Summary collapse
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
Instance Method Summary collapse
-
#initialize(file_path, method_name) ⇒ UnknownMockResponse
constructor
A new instance of UnknownMockResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(file_path, method_name) ⇒ UnknownMockResponse
Returns a new instance of UnknownMockResponse.
9 10 11 12 |
# File 'lib/spectro/exception/unknown_mock_response.rb', line 9 def initialize file_path, method_name self.file_path = file_path self.method_name = method_name end |
Instance Attribute Details
#file_path ⇒ Object
Returns the value of attribute file_path.
7 8 9 |
# File 'lib/spectro/exception/unknown_mock_response.rb', line 7 def file_path @file_path end |
#method_name ⇒ Object
Returns the value of attribute method_name.
7 8 9 |
# File 'lib/spectro/exception/unknown_mock_response.rb', line 7 def method_name @method_name end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/spectro/exception/unknown_mock_response.rb', line 14 def to_s "[##{self.method_name}] mock has not response defined for the given params. Verify the specs at \"#{self.file_path}\"." end |