Class Expectations::Recorder
In: lib/expectations/recorder.rb
Parent: Expectations::BlankSlate

Methods

be   delegate   have   new   not!   receive   subject!   verify!  

Attributes

subject  [R] 

Public Class methods

[Source]

   # File lib/expectations/recorder.rb, line 4
4:   def initialize(subject)
5:     @subject = subject
6:   end

Public Instance methods

[Source]

    # File lib/expectations/recorder.rb, line 20
20:   def be
21:     extend Expectations::StateBasedRecorder
22:     message_parts << "to be"
23:     self
24:   end

[Source]

    # File lib/expectations/recorder.rb, line 26
26:   def delegate(method)
27:     extend Expectations::DelegateRecorder
28:     delegate!(method)
29:     self
30:   end

[Source]

    # File lib/expectations/recorder.rb, line 14
14:   def have
15:     extend Expectations::StateBasedRecorder
16:     message_parts << "to have"
17:     self
18:   end

[Source]

    # File lib/expectations/recorder.rb, line 36
36:   def not!
37:     extend Expectations::ReverseResult
38:   end

[Source]

    # File lib/expectations/recorder.rb, line 8
 8:   def receive(meth)
 9:     extend Expectations::MockRecorder
10:     receive!(meth)
11:     self
12:   end

[Source]

    # File lib/expectations/recorder.rb, line 32
32:   def subject!
33:     subject
34:   end

[Source]

    # File lib/expectations/recorder.rb, line 40
40:   def verify!
41:     verify
42:   end

[Validate]