rspec-nc 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -0
- data/Rakefile +7 -1
- data/lib/nc_fail.rb +8 -0
- data/rspec-nc.gemspec +1 -1
- data/spec/nc_fail_spec.rb +18 -0
- data/spec/nc_spec.rb +0 -6
- metadata +7 -4
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
RSpec Notification Center
|
2
2
|
=========================
|
3
3
|
|
4
|
+
[![Build Status](https://secure.travis-ci.org/twe4ked/rspec-nc.png?branch=master)](http://travis-ci.org/twe4ked/rspec-nc)
|
5
|
+
[![Dependency status](https://gemnasium.com/twe4ked/rspec-nc.png)](https://gemnasium.com/twe4ked/rspec-nc)
|
6
|
+
|
4
7
|
rspec-nc is an RSpec formatter for Mountain Lion's Notification Center.
|
5
8
|
|
6
9
|
![Screenshot](http://twe4ked.github.com/rspec-nc/rspec-nc.jpg)
|
data/Rakefile
CHANGED
data/lib/nc_fail.rb
ADDED
data/rspec-nc.gemspec
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'nc_fail'
|
2
|
+
|
3
|
+
describe NcFail do
|
4
|
+
let(:formatter) { NcFail.new(StringIO.new) }
|
5
|
+
|
6
|
+
it 'returns a failing notification' do
|
7
|
+
TerminalNotifier.should_receive(:notify)
|
8
|
+
|
9
|
+
formatter.instance_variable_set('@failed_examples', [1])
|
10
|
+
formatter.say('title', 'body')
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'does not return a success notification when tests are passing' do
|
14
|
+
TerminalNotifier.should_not_receive(:notify)
|
15
|
+
|
16
|
+
formatter.say('title', 'body')
|
17
|
+
end
|
18
|
+
end
|
data/spec/nc_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-nc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: terminal-notifier
|
@@ -56,7 +56,9 @@ files:
|
|
56
56
|
- README.md
|
57
57
|
- Rakefile
|
58
58
|
- lib/nc.rb
|
59
|
+
- lib/nc_fail.rb
|
59
60
|
- rspec-nc.gemspec
|
61
|
+
- spec/nc_fail_spec.rb
|
60
62
|
- spec/nc_spec.rb
|
61
63
|
homepage: https://github.com/twe4ked/rspec-nc
|
62
64
|
licenses: []
|
@@ -72,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
74
|
version: '0'
|
73
75
|
segments:
|
74
76
|
- 0
|
75
|
-
hash: -
|
77
|
+
hash: -2829950422095626050
|
76
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
79
|
none: false
|
78
80
|
requirements:
|
@@ -81,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
83
|
version: '0'
|
82
84
|
segments:
|
83
85
|
- 0
|
84
|
-
hash: -
|
86
|
+
hash: -2829950422095626050
|
85
87
|
requirements: []
|
86
88
|
rubyforge_project:
|
87
89
|
rubygems_version: 1.8.23
|
@@ -89,4 +91,5 @@ signing_key:
|
|
89
91
|
specification_version: 3
|
90
92
|
summary: RSpec formatter for Mountain Lion's Notification Center
|
91
93
|
test_files:
|
94
|
+
- spec/nc_fail_spec.rb
|
92
95
|
- spec/nc_spec.rb
|