guard-tap 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Guard::Tap
1
+ # Guard::Tap [![Build Status](https://travis-ci.org/hitode909/guard-tap.png?branch=master)](https://travis-ci.org/hitode909/guard-tap)
2
2
 
3
3
  RSpec guard allows to automatically run TAP based test suites and print a report.
4
4
 
@@ -25,7 +25,7 @@ module Guard
25
25
  flush_error.call
26
26
  elsif line =~ /^not ok/
27
27
  flush_error.call
28
- now_error = true
28
+ now_error = (line =~ / # TODO/ ? false : true)
29
29
  end
30
30
  if now_error
31
31
  error_message << line
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module TapVersion
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -16,6 +16,21 @@ describe Guard::Tap::Runner do
16
16
  it 'returns false when failed' do
17
17
  runner.run('undefined_method').should == false
18
18
  end
19
+
20
+ it 'handles ok' do
21
+ runner.should_not_receive(:notify_error)
22
+ runner.run('echo ok 1')
23
+ end
24
+
25
+ it 'handles not ok' do
26
+ runner.should_receive(:notify_error).with(/^not ok 1/)
27
+ runner.run('echo not ok 1')
28
+ end
29
+
30
+ it 'handles not ok (TODO)' do
31
+ runner.should_not_receive(:notify_error)
32
+ runner.run('echo not ok 1 # TODO')
33
+ end
19
34
  end
20
35
 
21
36
  describe '#notify' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-tap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
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: 2013-05-11 00:00:00.000000000 Z
12
+ date: 2013-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -115,6 +115,7 @@ extensions: []
115
115
  extra_rdoc_files: []
116
116
  files:
117
117
  - .gitignore
118
+ - .travis.yml
118
119
  - Gemfile
119
120
  - Guardfile
120
121
  - LICENSE.txt
@@ -143,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
144
  version: '0'
144
145
  segments:
145
146
  - 0
146
- hash: 930200120556476862
147
+ hash: -2727751619342173521
147
148
  required_rubygems_version: !ruby/object:Gem::Requirement
148
149
  none: false
149
150
  requirements:
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  version: '0'
153
154
  segments:
154
155
  - 0
155
- hash: 930200120556476862
156
+ hash: -2727751619342173521
156
157
  requirements: []
157
158
  rubyforge_project:
158
159
  rubygems_version: 1.8.25