guard-rspec 4.7.2 → 4.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/guard/rspec/rspec_process.rb +2 -2
- data/lib/guard/rspec/version.rb +1 -1
- data/spec/lib/guard/rspec/rspec_process_spec.rb +9 -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: 9f60e3dd503909fe6029b421e95d895ab27acde8
|
4
|
+
data.tar.gz: 810b86b4f0dff2ad8e269877d4eef0e4c17effb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 593cf6747a4ef7e21d25f8bba6b27dc56dcb15cab6aca0bed634853cdeea0d18f9452e0a7aad84ea42bd364144138f426a107a83754242b09ebfa293055f4281
|
7
|
+
data.tar.gz: 5118ee63611b3af14955ec4481d528facbff713edeeec05229afefd3033b800ab839e274203c8b57424549ab248cdceb2408bba7920ae3f289127fa5fff6452b
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ Add the gem to your Gemfile (inside development group):
|
|
18
18
|
Add guard definition to your Guardfile by running this command:
|
19
19
|
|
20
20
|
```
|
21
|
-
$ guard init rspec
|
21
|
+
$ bundle exec guard init rspec
|
22
22
|
```
|
23
23
|
|
24
24
|
## Installing with beta versions of RSpec
|
@@ -32,11 +32,11 @@ gem 'rspec-expectations', '= 3.5.0.beta3'
|
|
32
32
|
gem 'rspec-mocks', '= 3.5.0.beta3'
|
33
33
|
gem 'rspec-support', '= 3.5.0.beta3'
|
34
34
|
|
35
|
-
gem 'guard-rspec, '~> 4.7
|
35
|
+
gem 'guard-rspec', '~> 4.7'
|
36
36
|
```
|
37
37
|
|
38
38
|
and for Rails projects this also means adding:
|
39
|
-
|
39
|
+
|
40
40
|
```ruby
|
41
41
|
gem 'rspec-rails', '= 3.5.0.beta3'
|
42
42
|
```
|
@@ -32,8 +32,8 @@ module Guard
|
|
32
32
|
Compat::UI.debug(format(msg, command, exit_code.inspect))
|
33
33
|
|
34
34
|
unless [0, Command::FAILURE_EXIT_CODE].include?(exit_code)
|
35
|
-
msg = "Failed: %s (exit code: %
|
36
|
-
raise Failure, format(msg, command.inspect, exit_code)
|
35
|
+
msg = "Failed: %s (exit code: %s)"
|
36
|
+
raise Failure, format(msg, command.inspect, exit_code.inspect)
|
37
37
|
end
|
38
38
|
exit_code
|
39
39
|
end
|
data/lib/guard/rspec/version.rb
CHANGED
@@ -52,6 +52,15 @@ RSpec.describe Guard::RSpec::RSpecProcess do
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
context "without any exit code" do
|
56
|
+
let(:exit_code) { nil }
|
57
|
+
|
58
|
+
it "fails" do
|
59
|
+
expect { subject }.
|
60
|
+
to raise_error(Guard::RSpec::RSpecProcess::Failure, /Failed: /)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
55
64
|
context "with the failure code for normal test failures" do
|
56
65
|
let(:exit_code) { Guard::RSpec::Command::FAILURE_EXIT_CODE }
|
57
66
|
|
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.7.
|
4
|
+
version: 4.7.3
|
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: 2016-
|
11
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|