Class: Mocha::UnexpectedInvocation
- Inherits:
-
Object
- Object
- Mocha::UnexpectedInvocation
- Defined in:
- lib/mocha-color/unexpected_invocation.rb
Instance Method Summary collapse
Instance Method Details
#original_to_s ⇒ Object
3 |
# File 'lib/mocha-color/unexpected_invocation.rb', line 3 alias :original_to_s :to_s |
#to_s ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/mocha-color/unexpected_invocation.rb', line 5 def to_s color = Test::Unit::Color.new("yellow") reset_color = Mocha::Color::RESET_COLOR = "\n%s%s%s" % [ color.escape_sequence, "unexpected invocation", reset_color.escape_sequence ] original_to_s.gsub(/unexpected invocation/, ) end |