method
expected_error
1.2.8 -
Show latest stable
-
0 notes -
Class: Spec::Matchers::RaiseError
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0
- 1.3.1
- What's this?
expected_error()
private
Hide source
# File lib/spec/matchers/raise_error.rb, line 72 def expected_error case @expected_message when nil @expected_error when Regexp "#{@expected_error} with message matching #{@expected_message.inspect}" else "#{@expected_error} with #{@expected_message.inspect}" end end