Class Expectations::StandardError
In: lib/expectations/standard_error.rb
Parent: Object

Methods

Attributes

outlet  [RW] 

Public Class methods

[Source]

    # File lib/expectations/standard_error.rb, line 12
12:   def self.print(string)
13:     print_suggestion
14:     outlet.print string
15:   end

[Source]

    # File lib/expectations/standard_error.rb, line 17
17:   def self.print_suggestion
18:     return if @suggestion_printed
19:     @suggestion_printed = true
20:     outlet.print "Expectations allows you to to create multiple mock expectations, but suggests that you write another test instead.\n"
21:   end

[Source]

    # File lib/expectations/standard_error.rb, line 8
 8:   def self.silence
 9:     self.outlet = Silent
10:   end

[Validate]