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>
102 103 104 |
# File 'lib/rubycheck.rb', line 102 def initialize(test_case) @test_case = test_case end |
Instance Attribute Details
#test_case ⇒ Object
Input values that caused a test property to fail
91 92 93 |
# File 'lib/rubycheck.rb', line 91 def test_case @test_case end |