lib/watchdocs/rails/recordings/recorder.rb in watchdocs-rails-0.3.5 vs lib/watchdocs/rails/recordings/recorder.rb in watchdocs-rails-0.3.6

- old
+ new

@@ -1,13 +1,14 @@ module Watchdocs module Rails module Recordings class Recorder - attr_reader :store, :output + attr_reader :store, :output, :from_specs def initialize(from_specs: true) - set_store(from_specs) + @from_specs = from_specs + set_store end def call(new_call) record_new(new_call) save_recordings @@ -31,13 +32,13 @@ def save_recordings store.write(output) end def send_recordings - Recordings.send(output) + Recordings.export(output, from_specs: from_specs) end - def set_store(from_specs) + def set_store @store = if from_specs Rails::Buffer::MemoryBuffer else Rails::Buffer::FileBuffer end