Class: Spec::Matchers::RaiseError
- Inherits:
-
Object
- Object
- Spec::Matchers::RaiseError
- Defined in:
- lib/rasta/extensions/rspec_extensions.rb
Instance Method Summary collapse
Instance Method Details
#matches?(*args) ⇒ Boolean
107 108 109 110 111 112 113 114 115 |
# File 'lib/rasta/extensions/rspec_extensions.rb', line 107 def matches?(*args) result = old_matches?(*args) if @actual_error ::Spec::Matchers.rasta_error = @actual_error else ::Spec::Matchers.rasta_error = nil end result end |
#old_matches? ⇒ Object
106 |
# File 'lib/rasta/extensions/rspec_extensions.rb', line 106 alias :old_matches? :matches? |