Module: Assert::View::Helpers::CaptureOutput

Defined in:
lib/assert/view/helpers/capture_output.rb

Instance Method Summary collapse

Instance Method Details

#captured_output(output) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/assert/view/helpers/capture_output.rb', line 5

def captured_output(output)
  if !output.empty?
    # TODO: move to the base view
    [ view.capture_output_start_msg,
      output + view.capture_output_end_msg
    ].join("\n")
  end
end