guard-rspec 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -1,7 +1,7 @@
1
1
  Guard::RSpec
2
2
  =============
3
3
 
4
- ![travis-ci](http://travis-ci.org/guard/guard-livereload.png)
4
+ ![travis-ci](http://travis-ci.org/guard/guard-rspec.png)
5
5
 
6
6
  RSpec guard allows to automatically & intelligently launch specs when files are modified.
7
7
 
@@ -114,13 +114,20 @@ The <tt>:formatter</tt> option has been removed since CLI arguments can be passe
114
114
  gem 'rspec-instafail'
115
115
 
116
116
  # in your Guardfile
117
- guard 'rspec, :cli => "-r rspec/instafail -f RSpec::Instafail" do
117
+ guard 'rspec', :cli => '-r rspec/instafail -f RSpec::Instafail' do
118
118
  # ...
119
119
  end
120
120
  ```
121
121
 
122
122
  Default formatter is the <tt>progress</tt> formatter (same as RSpec default).
123
123
 
124
+ Running a subset of all specs
125
+ -----------
126
+
127
+ The `:all_on_start` and `:all_after_pass` options cause all specs to be run. If there
128
+ are some specs you want to skip, you can tag them with RSpec metadata (such as `:slow => true`)
129
+ and skip them with the cli `--tag` option (i.e. `--tag ~slow`).
130
+
124
131
  Development
125
132
  -----------
126
133
 
data/lib/guard/rspec.rb CHANGED
@@ -32,10 +32,14 @@ module Guard
32
32
  @last_failed = !passed
33
33
  end
34
34
 
35
+ def reload
36
+ @failed_paths = []
37
+ end
38
+
35
39
  def run_on_change(paths)
36
- paths = Inspector.clean(paths)
37
40
  paths += @failed_paths if @options[:keep_failed]
38
- passed = Runner.run(paths.uniq, options)
41
+ paths = Inspector.clean(paths)
42
+ passed = Runner.run(paths, options)
39
43
 
40
44
  if passed
41
45
  # clean failed paths memory
@@ -13,7 +13,7 @@ module Formatter
13
13
 
14
14
  # failed | pending | success
15
15
  def guard_image(failure_count, pending_count)
16
- icon = if failure_count > 0
16
+ if failure_count > 0
17
17
  :failed
18
18
  elsif pending_count > 0
19
19
  :pending
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RSpecVersion
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: guard-rspec
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thibaud Guillaume-Gentil
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-23 00:00:00 +02:00
13
+ date: 2011-05-04 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency