rrrspec-client 0.4.5 → 0.4.6

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
  SHA256:
3
- metadata.gz: 9ba18bfefc9add5a18a98b30e84465c0bcc6692bc42ae0a83fba2c7b641461dd
4
- data.tar.gz: c86688fa83ca3a9ee95bf9312ca85a63c5801152dc0ecbd9b9901d32ca22a7c2
3
+ metadata.gz: 58e07dcdb2138cc5cd08d7c50b4afe86584e9a4e95f82def52896b08e5beb8b6
4
+ data.tar.gz: e4e752e02a2858f28bad6de18a106a386847b1e93891d7604bb9d4d9ccddcb5b
5
5
  SHA512:
6
- metadata.gz: 25d3b54ad0170f606eb8977a87ccec67cac9dd9df9c5c23b8e5ccc7ca9909b5dfa1d2d3e548cf4d9ae4a5b50fdc1a494b03a46f90034cc0e1c3ede5c703e7eeb
7
- data.tar.gz: 9f55a5af2f8ce46f7c8f8f85b13e8e8cbac7e9c8ee30793a6234e41f0350d5e6f1d5b034ff04cf7c5f778feab41397bd3db42881092d6076d0b767c6aad0ff35
6
+ metadata.gz: bf8f24ef07f23460f00ceb02e511499da27b02ed2b7fe7d8f066785e4d2a1d3ed54acf9848dd6b293361fd90cf7d50d53255bceff671a85293c0bd8d6846e807
7
+ data.tar.gz: 89bc0db44c53a3647496a4721d51d734e566d7b333187d891c19f8cebc99d5fbff5efc10774a925ddfe4dc9f1122e3151b5aed701911127cb42e280204e8ed91
@@ -77,6 +77,7 @@ module RRRSpec
77
77
 
78
78
  def reset
79
79
  @world.example_groups.clear
80
+ @world.wants_to_quit = false
80
81
  @configuration.reset
81
82
  end
82
83
 
@@ -92,7 +92,7 @@ module RRRSpec
92
92
  end
93
93
 
94
94
  class RedisReportingFormatter
95
- RSpec::Core::Formatters.register(self, :example_passed, :example_pending, :example_failed)
95
+ RSpec::Core::Formatters.register(self, :example_passed, :example_pending, :example_failed, :dump_summary)
96
96
 
97
97
  def initialize(_output)
98
98
  self.class.reset
@@ -110,13 +110,18 @@ module RRRSpec
110
110
  self.class.example_failed(notification)
111
111
  end
112
112
 
113
+ def dump_summary(notification)
114
+ self.class.dump_summary(notification)
115
+ end
116
+
113
117
  module ClassMethods
114
- attr_reader :passed, :pending, :failed
118
+ attr_reader :passed, :pending, :failed, :errors_outside_of_examples_count
115
119
 
116
120
  def reset
117
121
  @passed = 0
118
122
  @pending = 0
119
123
  @failed = 0
124
+ @errors_outside_of_examples_count = 0
120
125
  @timeout = false
121
126
  end
122
127
 
@@ -135,9 +140,15 @@ module RRRSpec
135
140
  end
136
141
  end
137
142
 
143
+ def dump_summary(notification)
144
+ @errors_outside_of_examples_count = notification.errors_outside_of_examples_count
145
+ end
146
+
138
147
  def status
139
148
  if @timeout
140
149
  'timeout'
150
+ elsif @errors_outside_of_examples_count != 0
151
+ 'error'
141
152
  elsif @failed != 0
142
153
  'failed'
143
154
  elsif @pending != 0
@@ -1,5 +1,5 @@
1
1
  module RRRSpec
2
2
  module Client
3
- VERSION = "0.4.5"
3
+ VERSION = "0.4.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rrrspec-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaya Suzuki