guard-rspec 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40496bf6ef8ba84224968ebd298562605c0ad226
4
- data.tar.gz: 5747619172ea0927985b5cc998b6f7d7a8a39676
3
+ metadata.gz: 55d22c3f3dbd1ae773b6e47fd104e5cc8f687e2c
4
+ data.tar.gz: 7eb21c7b37b4de43724d1f9d1e98e5381158040b
5
5
  SHA512:
6
- metadata.gz: 79d69a9f9055cb91069312abcb69a9ee402b27063adf755a0a983f8b2135f562995290119611c48b7149601718c55ec7a6e4e5fc636e6d9cec702ade5bf87a3c
7
- data.tar.gz: e63d157b63303d124b0e7912e75314a25500fcb2d87e5624341a2540f1f27365405045b1a1305de365f3f26e2d0542746567b06edb9fea7f46310ceef266b91e
6
+ metadata.gz: 16c0c0564f7790eb16e5b30bd41be447117825683b85ef6ef95cea63ecce30a99e92e19ecd15d01c59406d5774ce71e9608cd4b86597b2289ae0a5cd1c9019fc
7
+ data.tar.gz: 999a73b68f433560da200ed36e845e8cd013a7e5a635e375928a695f5686475dbdc8bde5dd212c4d818712e8fdc9258717b6580531ac6c227b994d939f68eb85
@@ -62,7 +62,7 @@ module Guard
62
62
  spec_files = spec_paths.collect { |path| Dir[File.join(path, "**{,/*/**}", "*[_.]spec.rb")] }
63
63
  feature_files = spec_paths.collect { |path| Dir[File.join(path, "**{,/*/**}", "*.feature")] }
64
64
  files = (spec_files + feature_files).flatten
65
- paths.select { |p| files.include?(p) }
65
+ paths.select { |p| files.include?(p) || spec_paths.include?(p) }
66
66
  end
67
67
 
68
68
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RSpecVersion
3
- VERSION = '4.0.1'
3
+ VERSION = '4.0.2'
4
4
  end
5
5
  end
@@ -24,6 +24,10 @@ describe Guard::RSpec::Inspector do
24
24
  it "returns custom spec paths if no args" do
25
25
  expect(inspector.paths).to eq %w[custom_spec]
26
26
  end
27
+
28
+ it "returns spec path if given as argument" do
29
+ expect(inspector.paths(%w[custom_spec])).to eq %w[custom_spec]
30
+ end
27
31
  end
28
32
 
29
33
  it "returns new paths" do
@@ -42,6 +46,10 @@ describe Guard::RSpec::Inspector do
42
46
  expect(inspector.paths(paths + %w[foo])).to eq paths
43
47
  end
44
48
 
49
+ it "returns spec path if given as argument" do
50
+ expect(inspector.paths(%w[spec])).to eq %w[spec]
51
+ end
52
+
45
53
  context "with focused paths" do
46
54
  before {
47
55
  FileUtils.mkdir_p('tmp')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibaud Guillaume-Gentil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-14 00:00:00.000000000 Z
11
+ date: 2013-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard