Class: Expectations::Recorder
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from BlankSlate
find_hidden_method, hide, reveal
Constructor Details
#initialize(subject) ⇒ Recorder
Returns a new instance of Recorder.
4
5
6
|
# File 'lib/expectations/recorder.rb', line 4
def initialize(subject)
@subject = subject
end
|
Instance Attribute Details
Returns the value of attribute subject.
3
4
5
|
# File 'lib/expectations/recorder.rb', line 3
def subject
@subject
end
|
Instance Method Details
#delegate(method) ⇒ Object
26
27
28
29
30
|
# File 'lib/expectations/recorder.rb', line 26
def delegate(method)
extend Expectations::DelegateRecorder
delegate!(method)
self
end
|
#receive(meth) ⇒ Object
8
9
10
11
12
|
# File 'lib/expectations/recorder.rb', line 8
def receive(meth)
extend Expectations::MockRecorder
receive!(meth)
self
end
|
32
33
34
|
# File 'lib/expectations/recorder.rb', line 32
def subject!
subject
end
|
40
41
42
|
# File 'lib/expectations/recorder.rb', line 40
def verify!
verify
end
|