Sha256: c709572a8cd9a28ecee46dc4e9f5999c9eae81c2bb0af31d317cf7f91354c206
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
require 'nc_fail' describe NcFail do let(:formatter) { NcFail.new(StringIO.new) } it 'returns a failing notification' do TerminalNotifier.should_receive(:notify) formatter.instance_variable_set('@failed_examples', [1]) formatter.say('title', 'body') end it 'does not return a success notification when tests are passing' do TerminalNotifier.should_not_receive(:notify) formatter.say('title', 'body') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-nc-0.0.6 | spec/nc_fail_spec.rb |
rspec-nc-0.0.5 | spec/nc_fail_spec.rb |