Sha256: 151c82db65e5add7a888e2aef94a454bc1f1ef36cb8a46df402708f60fd5b9e9

Contents?: true

Size: 464 Bytes

Versions: 2

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'

describe 'at_exit() behaviour' do
  
  it 'prints the PP simpletext report to $stdout (when not in test mode)' do
    $private_please_tests_are_running = false
    PrivatePlease::Reporter::SimpleText.stub(:new => stub(:text => '<the-report-text>'))
    $stdout.
        should_receive(:puts).
        with('<the-report-text>')
    begin
      PrivatePlease.at_exit
    ensure
      $private_please_tests_are_running = true
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
private_please-0.0.5 spec/06_at_exit_spec.rb
private_please-0.0.4 spec/06_at_exit_spec.rb