Exception: RubyCheck::PropertyFailure
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RubyCheck::PropertyFailure
- Defined in:
- lib/rubycheck.rb
Overview
Defines an error class to capture test case input when reporting errors observed by for_all.
Instance Attribute Summary collapse
-
#test_case ⇒ Object
Input values that caused a test property to fail.
Instance Method Summary collapse
-
#initialize(test_case) ⇒ PropertyFailure
constructor
Construct a PropertyFailure error, collecting test_case input data.
Constructor Details
#initialize(test_case) ⇒ PropertyFailure
Construct a PropertyFailure error, collecting test_case input data.
Example:
RubyCheck::PropertyFailure.new([9])
=> #<RubyCheck::PropertyFailure: RubyCheck::PropertyFailure>
161 162 163 |
# File 'lib/rubycheck.rb', line 161 def initialize(test_case) @test_case = test_case end |
Instance Attribute Details
#test_case ⇒ Object
Input values that caused a test property to fail
150 151 152 |
# File 'lib/rubycheck.rb', line 150 def test_case @test_case end |