lib/watchdocs/rails/recordings/recorder.rb in watchdocs-rails-0.3.3 vs lib/watchdocs/rails/recordings/recorder.rb in watchdocs-rails-0.3.4
- old
+ new
@@ -7,17 +7,17 @@
def initialize(from_specs: true)
set_store(from_specs)
end
def call(new_call)
- record_new
+ record_new(new_call)
save_recordings
send_recordings if buffer_full?
end
private
- def record_new
+ def record_new(new_call)
@output = if current_recordings
current_recordings << new_call
else
[new_call]
end