guard-rspec 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guard/rspec/inspector.rb +1 -1
- data/lib/guard/rspec/version.rb +1 -1
- data/spec/lib/guard/rspec/inspector_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55d22c3f3dbd1ae773b6e47fd104e5cc8f687e2c
|
4
|
+
data.tar.gz: 7eb21c7b37b4de43724d1f9d1e98e5381158040b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/guard/rspec/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|