Class: RSpec::Matchers::BuiltIn::RaiseError
- Inherits:
-
Object
- Object
- RSpec::Matchers::BuiltIn::RaiseError
- Defined in:
- lib/chefspec/expect_exception.rb
Class Attribute Summary collapse
-
.last_run ⇒ Object
Returns the value of attribute last_run.
Instance Attribute Summary collapse
-
#expected_error ⇒ Object
readonly
Returns the value of attribute expected_error.
-
#expected_message ⇒ Object
readonly
Returns the value of attribute expected_message.
Instance Method Summary collapse
Class Attribute Details
.last_run ⇒ Object
Returns the value of attribute last_run.
3 4 5 |
# File 'lib/chefspec/expect_exception.rb', line 3 def last_run @last_run end |
Instance Attribute Details
#expected_error ⇒ Object (readonly)
Returns the value of attribute expected_error.
6 7 8 |
# File 'lib/chefspec/expect_exception.rb', line 6 def expected_error @expected_error end |
#expected_message ⇒ Object (readonly)
Returns the value of attribute expected_message.
6 7 8 |
# File 'lib/chefspec/expect_exception.rb', line 6 def @expected_message end |
Instance Method Details
#matches?(*args) ⇒ Boolean
9 10 11 12 |
# File 'lib/chefspec/expect_exception.rb', line 9 def matches?(*args) self.class.last_run = self old_matches?(*args) end |
#old_matches? ⇒ Object
8 |
# File 'lib/chefspec/expect_exception.rb', line 8 alias_method :old_matches?, :matches? |