rspec-core 3.12.2 → 3.13.5
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Changelog.md +315 -251
- data/README.md +5 -0
- data/lib/rspec/core/bisect/example_minimizer.rb +1 -1
- data/lib/rspec/core/bisect/fork_runner.rb +2 -0
- data/lib/rspec/core/configuration.rb +39 -5
- data/lib/rspec/core/configuration_options.rb +8 -1
- data/lib/rspec/core/did_you_mean.rb +6 -0
- data/lib/rspec/core/drb.rb +1 -1
- data/lib/rspec/core/example.rb +1 -1
- data/lib/rspec/core/example_group.rb +7 -0
- data/lib/rspec/core/filter_manager.rb +2 -2
- data/lib/rspec/core/formatters/exception_presenter.rb +40 -12
- data/lib/rspec/core/formatters/html_snippet_extractor.rb +2 -0
- data/lib/rspec/core/formatters/json_formatter.rb +7 -6
- data/lib/rspec/core/hooks.rb +1 -1
- data/lib/rspec/core/metadata.rb +1 -1
- data/lib/rspec/core/notifications.rb +2 -0
- data/lib/rspec/core/option_parser.rb +2 -0
- data/lib/rspec/core/ordering.rb +40 -1
- data/lib/rspec/core/output_wrapper.rb +2 -2
- data/lib/rspec/core/pending.rb +1 -1
- data/lib/rspec/core/rake_task.rb +2 -0
- data/lib/rspec/core/reporter.rb +6 -5
- data/lib/rspec/core/runner.rb +5 -1
- data/lib/rspec/core/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +27 -142
- metadata.gz.sig +0 -0
data/Changelog.md
CHANGED
@@ -1,12 +1,76 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-core-v3.13.5...3-13-maintenance)
|
3
|
+
|
4
|
+
### 3.13.5 / 2025-06-25
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec/compare/rspec-core-v3.13.4...rspec-core-v3.13.5)
|
6
|
+
|
7
|
+
Bug Fixes:
|
8
|
+
|
9
|
+
* Fix finding failed lines from frozen backtrace arrays. (Jon Rowe, #225)
|
10
|
+
|
11
|
+
### 3.13.4 / 2025-05-27
|
12
|
+
[Full Changelog](http://github.com/rspec/rspec/compare/rspec-core-v3.13.3...rspec-core-v3.13.4)
|
13
|
+
|
14
|
+
Bug Fixes:
|
15
|
+
|
16
|
+
* Fix links in gemspec to point to the monorepo / homepage.
|
17
|
+
|
18
|
+
### 3.13.3 / 2025-02-06
|
19
|
+
[Full Changelog](http://github.com/rspec/rspec/compare/rspec-core-v3.13.4...rspec-core-v3.13.3)
|
20
|
+
|
21
|
+
Bug fixes:
|
22
|
+
|
23
|
+
* Fix reporter memorisation of `ExamplesNotification` used in `RSpec::Core::Reporter#finish`
|
24
|
+
by reusing an instance across notifcations. (Maxime Lapointe, rspec/rspec#172)
|
25
|
+
* Fix memorisation of `RSpec::Core::Example#location_rerun_argument`.
|
26
|
+
(Maxime Lapointe, rspec/rspec#173)
|
27
|
+
|
28
|
+
### 3.13.2 / 2024-10-18
|
29
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.13.1...v3.13.2)
|
30
|
+
|
31
|
+
Bug fixes:
|
32
|
+
|
33
|
+
* `RSpec::Configuration#requires` will reflect files already required, whilst requiring
|
34
|
+
them. (Jon Rowe, rspec/rspec-core#3117)
|
35
|
+
|
36
|
+
### 3.13.1 / 2024-09-02
|
37
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.13.0...v3.13.1)
|
38
|
+
|
39
|
+
Bug fixes:
|
40
|
+
|
41
|
+
* Sort ids to run as the original order to fix `--bisect`. (Maki Kawahara, rspec/rspec-core#3093)
|
42
|
+
|
43
|
+
### 3.13.0 / 2024-02-04
|
44
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.3...v3.13.0)
|
45
|
+
|
46
|
+
Enhancements:
|
47
|
+
|
48
|
+
* Support the `--backtrace` flag when using the JSON formatter. (Matt Larraz, rspec/rspec-core#2980)
|
49
|
+
* Ignore commented out lines in CLI config files (e.g. `.rspec`). (Junichi Ito, rspec/rspec-core#2984)
|
50
|
+
* Add `pending_failure_output` config option to allow skipping backtraces or
|
51
|
+
muting pending specs output. (Phil Pirozhkov, rspec/rspec-core#2957)
|
52
|
+
* Process `--dry-run` before configuration flags that read files so that introspecting
|
53
|
+
it returns the correct value. (Xenor Chang, rspec/rspec-core#3008)
|
54
|
+
* Allow specifying custom ordering strategies via `--order`. (Jon Rowe, rspec/rspec-core#3025)
|
55
|
+
* Use the improved `syntax_suggest` output for `SyntaxError` when available.
|
56
|
+
(Richard Schneeman, rspec/rspec-core#3015, rspec/rspec-core#3026)
|
57
|
+
* Add config option (`RSpec::Core::Configuration#full_cause_backtrace`) to print the
|
58
|
+
entire backtrace of an exception cause. (David Taylor, rspec/rspec-core#3046)
|
59
|
+
|
60
|
+
### 3.12.3 / 2024-02-04
|
61
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.2...v3.12.3)
|
62
|
+
|
63
|
+
Bug fixes:
|
64
|
+
|
65
|
+
* Use `__send__` in output wrapper to avoid issues with IO objects that implement `send`
|
66
|
+
like `Socket`. (Richard Platel, rspec/rspec-core#3045)
|
3
67
|
|
4
68
|
### 3.12.2 / 2023-04-18
|
5
69
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.1...v3.12.2)
|
6
70
|
|
7
71
|
Bug fixes:
|
8
72
|
|
9
|
-
* Remove link to outdated documentation in generated output. (Jon Rowe, #3035)
|
73
|
+
* Remove link to outdated documentation in generated output. (Jon Rowe, rspec/rspec-core#3035)
|
10
74
|
|
11
75
|
### 3.12.1 / 2023-02-03
|
12
76
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.0...v3.12.1)
|
@@ -14,7 +78,7 @@ Bug fixes:
|
|
14
78
|
Bug fixes:
|
15
79
|
|
16
80
|
* Prevent multiple calls to `extra_failure_lines` from adding additional whitespace
|
17
|
-
around them when the lines already contain whitespace. (Jon Rowe, #3006)
|
81
|
+
around them when the lines already contain whitespace. (Jon Rowe, rspec/rspec-core#3006)
|
18
82
|
|
19
83
|
### 3.12.0 / 2022-10-26
|
20
84
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.11.0...v3.12.0)
|
@@ -26,26 +90,26 @@ Bug fixes:
|
|
26
90
|
|
27
91
|
Enhancements:
|
28
92
|
|
29
|
-
* Improve pluralisation of words ending with `s` (like process). (Joshua Pinter, #2779)
|
30
|
-
* Add ordering by file modification time (most recent first). (Matheus Richard, #2778)
|
31
|
-
* Add `to_s` to reserved names for #let and #subject. (Nick Flückiger, #2886)
|
93
|
+
* Improve pluralisation of words ending with `s` (like process). (Joshua Pinter, rspec/rspec-core#2779)
|
94
|
+
* Add ordering by file modification time (most recent first). (Matheus Richard, rspec/rspec-core#2778)
|
95
|
+
* Add `to_s` to reserved names for #let and #subject. (Nick Flückiger, rspec/rspec-core#2886)
|
32
96
|
* Introduce `RSpec.current_scope` to expose the current scope in which
|
33
|
-
RSpec is executing. e.g. `:before_example_hook`, `:example` etc. (@odinhb, #2895)
|
34
|
-
* Add named bold colours as options for custom colours. (#2913, #2914)
|
35
|
-
* Warn when (but not prevent) a `SystemExit` occurs. (Jared Beck, #2926)
|
97
|
+
RSpec is executing. e.g. `:before_example_hook`, `:example` etc. (@odinhb, rspec/rspec-core#2895)
|
98
|
+
* Add named bold colours as options for custom colours. (rspec/rspec-core#2913, rspec/rspec-core#2914)
|
99
|
+
* Warn when (but not prevent) a `SystemExit` occurs. (Jared Beck, rspec/rspec-core#2926)
|
36
100
|
|
37
101
|
### 3.10.2 / 2022-01-27
|
38
102
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.10.1...v3.10.2)
|
39
103
|
|
40
104
|
Bug fixes:
|
41
105
|
|
42
|
-
* Ensure bisect communication uses consistent encoding. (Mike Jarema, #2852)
|
106
|
+
* Ensure bisect communication uses consistent encoding. (Mike Jarema, rspec/rspec-core#2852)
|
43
107
|
* Fix exception presenter when the root cause exception has nil backtrace.
|
44
|
-
(Zinovyev Ivan, #2903)
|
108
|
+
(Zinovyev Ivan, rspec/rspec-core#2903)
|
45
109
|
* Fix `inspect` output of `RSpec::Core::Example::Procsy` to namespace correctly.
|
46
|
-
(Keiko Kaneko, #2915)
|
110
|
+
(Keiko Kaneko, rspec/rspec-core#2915)
|
47
111
|
* Ensure formatters not exposing `#output` will not crash duplicate check.
|
48
|
-
(@niceking, #2916)
|
112
|
+
(@niceking, rspec/rspec-core#2916)
|
49
113
|
|
50
114
|
### 3.10.1 / 2020-12-27
|
51
115
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.10.0...v3.10.1)
|
@@ -53,7 +117,7 @@ Bug fixes:
|
|
53
117
|
Bug fixes:
|
54
118
|
|
55
119
|
* RSpec warning output was missing deprecations from Ruby, these are now included.
|
56
|
-
(Jon Rowe, #2811)
|
120
|
+
(Jon Rowe, rspec/rspec-core#2811)
|
57
121
|
|
58
122
|
### 3.10.0 / 2020-10-30
|
59
123
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.9.3...v3.10.0)
|
@@ -61,26 +125,26 @@ Bug fixes:
|
|
61
125
|
Enhancements:
|
62
126
|
|
63
127
|
* Memoize `RSpec::Core::Formatters::ExceptionPresenter#exception_lines` to improve performance
|
64
|
-
with slow exception messages. (Maxime Lapointe, #2743)
|
128
|
+
with slow exception messages. (Maxime Lapointe, rspec/rspec-core#2743)
|
65
129
|
* Add configuration for an error exit code (to disambiguate errored builds from failed builds
|
66
|
-
by exit status). (Dana Sherson, #2749)
|
130
|
+
by exit status). (Dana Sherson, rspec/rspec-core#2749)
|
67
131
|
|
68
132
|
### 3.9.3 / 2020-09-30
|
69
133
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.9.2...v3.9.3)
|
70
134
|
|
71
135
|
Bug Fixes:
|
72
136
|
|
73
|
-
* Declare `ruby2_keywords` on `method_missing` for other gems. (Jon Rowe, #2731)
|
74
|
-
* Ensure custom error codes are returned from bisect runs. (Jon Rowe, #2732)
|
137
|
+
* Declare `ruby2_keywords` on `method_missing` for other gems. (Jon Rowe, rspec/rspec-core#2731)
|
138
|
+
* Ensure custom error codes are returned from bisect runs. (Jon Rowe, rspec/rspec-core#2732)
|
75
139
|
* Ensure `RSpec::Core::Configuration` predicate config methods return booleans.
|
76
|
-
(Marc-André Lafortune, #2736)
|
140
|
+
(Marc-André Lafortune, rspec/rspec-core#2736)
|
77
141
|
* Prevent `rspec --bisect` from generating zombie processes while executing
|
78
|
-
bisect runs. (Benoit Tigeot, Jon Rowe, #2739)
|
142
|
+
bisect runs. (Benoit Tigeot, Jon Rowe, rspec/rspec-core#2739)
|
79
143
|
* Predicates for pending examples, (in `RSpec::Core::Example`, `#pending?`, `#skipped?` and
|
80
144
|
`#pending_fixed?`) now return boolean values rather than truthy values.
|
81
|
-
(Marc-André Lafortune, #2756, #2758)
|
145
|
+
(Marc-André Lafortune, rspec/rspec-core#2756, rspec/rspec-core#2758)
|
82
146
|
* Exceptions which have a message which cannot be cast to a string will no longer
|
83
|
-
cause a crash. (Jon Rowe, #2761)
|
147
|
+
cause a crash. (Jon Rowe, rspec/rspec-core#2761)
|
84
148
|
|
85
149
|
### 3.9.2 / 2020-05-02
|
86
150
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.9.1...v3.9.2)
|
@@ -88,14 +152,14 @@ Bug Fixes:
|
|
88
152
|
Bug Fixes:
|
89
153
|
|
90
154
|
* Emit a warning when `around` hook is used with `:context` scope
|
91
|
-
(Phil Pirozhkov, #2687)
|
155
|
+
(Phil Pirozhkov, rspec/rspec-core#2687)
|
92
156
|
* Prevent invalid implementations of `Exception#cause` from being treated as a
|
93
157
|
valid cause (and causing strange errors) in `RSpec::Core::Formatters::ExceptionPresenter`.
|
94
|
-
(Jon Rowe, #2703)
|
158
|
+
(Jon Rowe, rspec/rspec-core#2703)
|
95
159
|
* Correctly detect patterns when `rspec_opts` is an array in `RSpec::Core::RakeTask`.
|
96
|
-
(Marc-André Lafortune, #2704)
|
160
|
+
(Marc-André Lafortune, rspec/rspec-core#2704)
|
97
161
|
* Make `RSpec.clear_examples` reset example counts for example groups. This fixes
|
98
|
-
an issue with re-running specs not matching ids. (Agis Anastasopoulos, #2723)
|
162
|
+
an issue with re-running specs not matching ids. (Agis Anastasopoulos, rspec/rspec-core#2723)
|
99
163
|
|
100
164
|
### 3.9.1 / 2019-12-28
|
101
165
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.9.0...v3.9.1)
|
@@ -103,8 +167,8 @@ Bug Fixes:
|
|
103
167
|
Bug Fixes:
|
104
168
|
|
105
169
|
* Prevent bisect command from blocking when number of specs exceeds file
|
106
|
-
descriptor limit on OSX or Linux. (Benoit Tigeot, #2669)
|
107
|
-
* Prevent warnings being issued on Ruby 2.7.0. (Jon Rowe, #2680)
|
170
|
+
descriptor limit on OSX or Linux. (Benoit Tigeot, rspec/rspec-core#2669)
|
171
|
+
* Prevent warnings being issued on Ruby 2.7.0. (Jon Rowe, rspec/rspec-core#2680)
|
108
172
|
|
109
173
|
### 3.9.0 / 2019-10-07
|
110
174
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.8.2...v3.9.0)
|
@@ -113,21 +177,21 @@ Enhancements:
|
|
113
177
|
|
114
178
|
* Improve the handling of errors during loading support files, if a file
|
115
179
|
errors before loading specs, RSpec will now skip loading the specs.
|
116
|
-
(David Rodríguez, #2568)
|
180
|
+
(David Rodríguez, rspec/rspec-core#2568)
|
117
181
|
* Add support for --example-matches to run examples by regular expression.
|
118
|
-
(Sam Joseph, Matt Rider, @okothkongo1, #2586)
|
182
|
+
(Sam Joseph, Matt Rider, @okothkongo1, rspec/rspec-core#2586)
|
119
183
|
* Add `did_you_mean` suggestions for file names encountering a `LoadError`
|
120
|
-
outside of examples. (@obromios, #2601)
|
184
|
+
outside of examples. (@obromios, rspec/rspec-core#2601)
|
121
185
|
* Add a minimalist quick fix style formatter, only outputs failures as
|
122
|
-
`file:line:message`. (Romain Tartière, #2614)
|
186
|
+
`file:line:message`. (Romain Tartière, rspec/rspec-core#2614)
|
123
187
|
* Convert string number values to integer when used for `RSpec::Configuration#fail_fast`
|
124
|
-
(Viktor Fonic, #2634)
|
188
|
+
(Viktor Fonic, rspec/rspec-core#2634)
|
125
189
|
* Issue warning when invalid values are used for `RSpec::Configuration#fail_fast`
|
126
|
-
(Viktor Fonic, #2634)
|
190
|
+
(Viktor Fonic, rspec/rspec-core#2634)
|
127
191
|
* Add support for running the Rake task in a clean environment.
|
128
|
-
(Jon Rowe, #2632)
|
192
|
+
(Jon Rowe, rspec/rspec-core#2632)
|
129
193
|
* Indent messages by there example group / example in the documentation formatter.
|
130
|
-
(Samuel Williams, #2649)
|
194
|
+
(Samuel Williams, rspec/rspec-core#2649)
|
131
195
|
|
132
196
|
### 3.8.2 / 2019-06-29
|
133
197
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.8.1...v3.8.2)
|
@@ -136,7 +200,7 @@ Bug Fixes:
|
|
136
200
|
|
137
201
|
* Fix `config.define_derived_metadata` so that cascades are not triggered
|
138
202
|
until metadata has been assigned to the example or example group
|
139
|
-
(Myron Marston, #2635).
|
203
|
+
(Myron Marston, rspec/rspec-core#2635).
|
140
204
|
|
141
205
|
### 3.8.1 / 2019-06-13
|
142
206
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.8.0...v3.8.1)
|
@@ -144,12 +208,12 @@ Bug Fixes:
|
|
144
208
|
Bug Fixes:
|
145
209
|
|
146
210
|
* Handle RSpec description(s) with japanese chars in CP932 encoded files.
|
147
|
-
(Benoit Tigeot, #2575)
|
211
|
+
(Benoit Tigeot, rspec/rspec-core#2575)
|
148
212
|
* When defining `let` methods that overwrite an existing method, prevent
|
149
|
-
a warning being issued by removing the old definition. (Jon Rowe, #2593)
|
150
|
-
* Prevent warning on Ruby 2.6.0-rc1 (Keiji Yoshimi, #2582)
|
213
|
+
a warning being issued by removing the old definition. (Jon Rowe, rspec/rspec-core#2593)
|
214
|
+
* Prevent warning on Ruby 2.6.0-rc1 (Keiji Yoshimi, rspec/rspec-core#2582)
|
151
215
|
* Fix `config.define_derived_metadata` so that it supports cascades.
|
152
|
-
(Myron Marston, #2630).
|
216
|
+
(Myron Marston, rspec/rspec-core#2630).
|
153
217
|
|
154
218
|
### 3.8.0 / 2018-08-04
|
155
219
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.7.1...v3.8.0)
|
@@ -157,28 +221,28 @@ Bug Fixes:
|
|
157
221
|
Enhancements:
|
158
222
|
|
159
223
|
* Improve shell escaping used by `RSpec::Core::RakeTask` and `--bisect` so
|
160
|
-
that it works on `Pathname` objects. (Andrew Vit, #2479)
|
224
|
+
that it works on `Pathname` objects. (Andrew Vit, rspec/rspec-core#2479)
|
161
225
|
* Nicely format errors encountered while loading files specified
|
162
|
-
by `--require` option. (Myron Marston, #2504)
|
226
|
+
by `--require` option. (Myron Marston, rspec/rspec-core#2504)
|
163
227
|
* Significantly improve the performance of `--bisect` on platforms that
|
164
228
|
support forking by replacing the shell-based runner with one that uses
|
165
229
|
forking so that RSpec and the application environment can be booted only
|
166
|
-
once, instead of once per spec run. (Myron Marston, #2511)
|
230
|
+
once, instead of once per spec run. (Myron Marston, rspec/rspec-core#2511)
|
167
231
|
* Provide a configuration API to pick which bisect runner is used for
|
168
232
|
`--bisect`. Pick a runner via `config.bisect_runner = :shell` or
|
169
233
|
`config.bisect_runner = :fork` in a file loaded by a `--require`
|
170
|
-
option passed at the command line or set in `.rspec`. (Myron Marston, #2511)
|
234
|
+
option passed at the command line or set in `.rspec`. (Myron Marston, rspec/rspec-core#2511)
|
171
235
|
* Support the [XDG Base Directory
|
172
236
|
Specification](https://specifications.freedesktop.org/basedir-spec/latest/)
|
173
237
|
for the global options file. `~/.rspec` is still supported when no
|
174
|
-
options file is found in `$XDG_CONFIG_HOME/rspec/options` (Magnus Bergmark, #2538)
|
238
|
+
options file is found in `$XDG_CONFIG_HOME/rspec/options` (Magnus Bergmark, rspec/rspec-core#2538)
|
175
239
|
* Extract `RSpec.world.prepare_example_filtering` that sets up the
|
176
|
-
example filtering for custom RSpec runners. (Oleg Pudeyev, #2552)
|
240
|
+
example filtering for custom RSpec runners. (Oleg Pudeyev, rspec/rspec-core#2552)
|
177
241
|
|
178
242
|
Bug Fixes:
|
179
243
|
|
180
244
|
* Prevent an `ArgumentError` when truncating backtraces with two identical
|
181
|
-
backtraces. (Systho, #2515, Benoit Tigeot, #2539)
|
245
|
+
backtraces. (Systho, rspec/rspec-core#2515, Benoit Tigeot, rspec/rspec-core#2539)
|
182
246
|
|
183
247
|
### 3.7.1 / 2018-01-02
|
184
248
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.7.0...v3.7.1)
|
@@ -186,52 +250,52 @@ Bug Fixes:
|
|
186
250
|
Bug Fixes:
|
187
251
|
|
188
252
|
* Work around duplicate config hook regression introduced
|
189
|
-
by Ruby 2.5's lazy proc allocation. (Myron Marston, #2497)
|
253
|
+
by Ruby 2.5's lazy proc allocation. (Myron Marston, rspec/rspec-core#2497)
|
190
254
|
|
191
255
|
### 3.7.0 / 2017-10-17
|
192
256
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0...v3.7.0)
|
193
257
|
|
194
258
|
Enhancements:
|
195
259
|
|
196
|
-
* Add `-n` alias for `--next-failure`. (Ian Ker-Seymer, #2434)
|
260
|
+
* Add `-n` alias for `--next-failure`. (Ian Ker-Seymer, rspec/rspec-core#2434)
|
197
261
|
* Improve compatibility with `--enable-frozen-string-literal` option
|
198
|
-
on Ruby 2.3+. (Pat Allan, #2425, #2427, #2437)
|
262
|
+
on Ruby 2.3+. (Pat Allan, rspec/rspec-core#2425, rspec/rspec-core#2427, rspec/rspec-core#2437)
|
199
263
|
* Do not run `:context` hooks for example groups that have been skipped.
|
200
|
-
(Devon Estes, #2442)
|
264
|
+
(Devon Estes, rspec/rspec-core#2442)
|
201
265
|
* Add `errors_outside_of_examples_count` to the JSON formatter.
|
202
|
-
(Takeshi Arabiki, #2448)
|
266
|
+
(Takeshi Arabiki, rspec/rspec-core#2448)
|
203
267
|
|
204
268
|
Bug Fixes:
|
205
269
|
|
206
|
-
* Improve compatibility with frozen string literal flag. (#2425, Pat Allan)
|
270
|
+
* Improve compatibility with frozen string literal flag. (rspec/rspec-core#2425, Pat Allan)
|
207
271
|
|
208
272
|
### 3.6.0 / 2017-05-04
|
209
273
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0.beta2...v3.6.0)
|
210
274
|
|
211
275
|
Enhancements:
|
212
276
|
|
213
|
-
* Add seed information to JSON formatter output. (#2388, Mitsutaka Mimura)
|
214
|
-
* Include example id in the JSON formatter output. (#2369, Xavier Shay)
|
277
|
+
* Add seed information to JSON formatter output. (rspec/rspec-core#2388, Mitsutaka Mimura)
|
278
|
+
* Include example id in the JSON formatter output. (rspec/rspec-core#2369, Xavier Shay)
|
215
279
|
* Respect changes to `config.output_stream` after formatters have been
|
216
|
-
setup. (#2401, #2419, Ilya Lavrov)
|
280
|
+
setup. (rspec/rspec-core#2401, rspec/rspec-core#2419, Ilya Lavrov)
|
217
281
|
|
218
282
|
Bug Fixes:
|
219
283
|
|
220
284
|
* Delay formatter loading until the last minute to allow accessing the reporter
|
221
|
-
without triggering formatter setup. (Jon Rowe, #2243)
|
285
|
+
without triggering formatter setup. (Jon Rowe, rspec/rspec-core#2243)
|
222
286
|
* Ensure context hook failures running before an example can access the
|
223
|
-
reporter. (Jon Jensen, #2387)
|
287
|
+
reporter. (Jon Jensen, rspec/rspec-core#2387)
|
224
288
|
* Multiple fixes to allow using the runner multiple times within the same
|
225
289
|
process: `RSpec.clear_examples` resets the formatter and no longer clears
|
226
290
|
shared examples, and streams can be used across multiple runs rather than
|
227
|
-
being closed after the first. (#2368, Xavier Shay)
|
291
|
+
being closed after the first. (rspec/rspec-core#2368, Xavier Shay)
|
228
292
|
* Prevent unexpected `example_group_finished` notifications causing an error.
|
229
|
-
(#2396, VTJamie)
|
293
|
+
(rspec/rspec-core#2396, VTJamie)
|
230
294
|
* Fix bugs where `config.when_first_matching_example_defined` hooks would fire
|
231
|
-
multiple times in some cases. (Yuji Nakayama, #2400)
|
295
|
+
multiple times in some cases. (Yuji Nakayama, rspec/rspec-core#2400)
|
232
296
|
* Default `last_run_status` to "unknown" when the `status` field in the
|
233
|
-
persistence file contains an unrecognized value. (#2360, matrinox)
|
234
|
-
* Prevent `let` from defining an `initialize` method. (#2414, Jon Rowe)
|
297
|
+
persistence file contains an unrecognized value. (rspec/rspec-core#2360, matrinox)
|
298
|
+
* Prevent `let` from defining an `initialize` method. (rspec/rspec-core#2414, Jon Rowe)
|
235
299
|
|
236
300
|
### 3.6.0.beta2 / 2016-12-12
|
237
301
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0.beta1...v3.6.0.beta2)
|
@@ -239,10 +303,10 @@ Bug Fixes:
|
|
239
303
|
Enhancements:
|
240
304
|
|
241
305
|
* Include count of errors occurring outside examples in default summaries.
|
242
|
-
(#2351, Jon Rowe)
|
243
|
-
* Warn when including shared example groups recursively. (#2356, Jon Rowe)
|
306
|
+
(rspec/rspec-core#2351, Jon Rowe)
|
307
|
+
* Warn when including shared example groups recursively. (rspec/rspec-core#2356, Jon Rowe)
|
244
308
|
* Improve failure snippet syntax highlighting with CodeRay to highlight
|
245
|
-
RSpec "keywords" like `expect`. (#2358, Myron Marston)
|
309
|
+
RSpec "keywords" like `expect`. (rspec/rspec-core#2358, Myron Marston)
|
246
310
|
|
247
311
|
### 3.6.0.beta1 / 2016-10-09
|
248
312
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.4...v3.6.0.beta1)
|
@@ -250,18 +314,18 @@ Enhancements:
|
|
250
314
|
Enhancements:
|
251
315
|
|
252
316
|
* Warn when duplicate shared examples definitions are loaded due to being
|
253
|
-
defined in files matching the spec pattern (e.g. `_spec.rb`) (#2278, Devon Estes)
|
317
|
+
defined in files matching the spec pattern (e.g. `_spec.rb`) (rspec/rspec-core#2278, Devon Estes)
|
254
318
|
* Improve metadata filtering so that it can match against any object
|
255
319
|
that implements `===` instead of treating regular expressions as
|
256
|
-
special. (Myron Marston, #2294)
|
320
|
+
special. (Myron Marston, rspec/rspec-core#2294)
|
257
321
|
* Improve `rspec -v` so that it prints out the versions of each part of
|
258
|
-
RSpec to prevent confusion. (Myron Marston, #2304)
|
322
|
+
RSpec to prevent confusion. (Myron Marston, rspec/rspec-core#2304)
|
259
323
|
* Add `config.fail_if_no_examples` option which causes RSpec to fail if
|
260
|
-
no examples are found. (Ewa Czechowska, #2302)
|
324
|
+
no examples are found. (Ewa Czechowska, rspec/rspec-core#2302)
|
261
325
|
* Nicely format errors encountered while loading spec files.
|
262
|
-
(Myron Marston, #2323)
|
326
|
+
(Myron Marston, rspec/rspec-core#2323)
|
263
327
|
* Improve the API for enabling and disabling color output (Josh
|
264
|
-
Justice, #2321):
|
328
|
+
Justice, rspec/rspec-core#2321):
|
265
329
|
* Automatically enable color if the output is a TTY, since color is
|
266
330
|
nearly always desirable if the output can handle it.
|
267
331
|
* Introduce new CLI flag to force color on (`--force-color`), even
|
@@ -276,7 +340,7 @@ Enhancements:
|
|
276
340
|
Bug Fixes:
|
277
341
|
|
278
342
|
* Remove accumulated `ExampleGroup` constants when reseting RSpec,
|
279
|
-
preventing a memory leak. (TravisSpangle, #2328)
|
343
|
+
preventing a memory leak. (TravisSpangle, rspec/rspec-core#2328)
|
280
344
|
|
281
345
|
### 3.5.3 / 2016-09-02
|
282
346
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.2...v3.5.3)
|
@@ -286,11 +350,11 @@ Bug Fixes:
|
|
286
350
|
* When applying shared group metadata to a host group, overwrite
|
287
351
|
conflicting keys if the value in the host group was inherited from
|
288
352
|
a parent group instead of being specified at that level.
|
289
|
-
(Myron Marston, #2307)
|
353
|
+
(Myron Marston, rspec/rspec-core#2307)
|
290
354
|
* Handle errors in `:suite` hooks and provide the same nicely formatted
|
291
|
-
output as errors that happen in examples. (Myron Marston, #2316)
|
355
|
+
output as errors that happen in examples. (Myron Marston, rspec/rspec-core#2316)
|
292
356
|
* Set the exit status to non-zero when an error occurs in an
|
293
|
-
`after(:context)` hook. (Myron Marston, #2320)
|
357
|
+
`after(:context)` hook. (Myron Marston, rspec/rspec-core#2320)
|
294
358
|
|
295
359
|
### 3.5.2 / 2016-07-28
|
296
360
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.1...v3.5.2)
|
@@ -298,11 +362,11 @@ Bug Fixes:
|
|
298
362
|
Bug Fixes:
|
299
363
|
|
300
364
|
* Wait to report `example_finished` until the example's `execution_result`
|
301
|
-
has been completely filled in. (Myron Marston, #2291)
|
365
|
+
has been completely filled in. (Myron Marston, rspec/rspec-core#2291)
|
302
366
|
* Make sure example block is still available when using `duplicate_with`
|
303
|
-
to clone examples. (bootstraponline, #2298)
|
367
|
+
to clone examples. (bootstraponline, rspec/rspec-core#2298)
|
304
368
|
* Don't include the default `--pattern` in the Rake task when
|
305
|
-
`rspec_opts` specifies its own. (Jon Rowe, #2305)
|
369
|
+
`rspec_opts` specifies its own. (Jon Rowe, rspec/rspec-core#2305)
|
306
370
|
|
307
371
|
### 3.5.1 / 2016-07-06
|
308
372
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0...v3.5.1)
|
@@ -310,7 +374,7 @@ Bug Fixes:
|
|
310
374
|
Bug Fixes:
|
311
375
|
|
312
376
|
* Ensure that config hooks that are added to existing example groups are
|
313
|
-
added only once. (Eugene Kenny, #2280)
|
377
|
+
added only once. (Eugene Kenny, rspec/rspec-core#2280)
|
314
378
|
|
315
379
|
### 3.5.0 / 2016-07-01
|
316
380
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0.beta4...v3.5.0)
|
@@ -318,12 +382,12 @@ Bug Fixes:
|
|
318
382
|
Enhancements:
|
319
383
|
|
320
384
|
* Include any `SPEC_OPTS` in reproduction command printed at the end of
|
321
|
-
a bisect run. (Simon Coffey, #2274)
|
385
|
+
a bisect run. (Simon Coffey, rspec/rspec-core#2274)
|
322
386
|
|
323
387
|
Bug Fixes:
|
324
388
|
|
325
389
|
* Handle `--bisect` in `SPEC_OPTS` environment variable correctly so as
|
326
|
-
to avoid infinite recursion. (Simon Coffey, #2271)
|
390
|
+
to avoid infinite recursion. (Simon Coffey, rspec/rspec-core#2271)
|
327
391
|
|
328
392
|
### 3.5.0.beta4 / 2016-06-05
|
329
393
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0.beta3...v3.5.0.beta4)
|
@@ -332,30 +396,30 @@ Enhancements:
|
|
332
396
|
|
333
397
|
* Filter out bundler stackframes from backtraces by default, since
|
334
398
|
Bundler 1.12 now includes its own frames in stack traces produced
|
335
|
-
by using `bundle exec`. (Myron Marston, #2240)
|
399
|
+
by using `bundle exec`. (Myron Marston, rspec/rspec-core#2240)
|
336
400
|
* HTML Formatter uses exception presenter to get failure message
|
337
|
-
for consistency with other formatters. (@mrageh, #2222)
|
401
|
+
for consistency with other formatters. (@mrageh, rspec/rspec-core#2222)
|
338
402
|
* Load spec files in the order of the directories or files passed
|
339
403
|
at the command line, making it easy to make some specs run before
|
340
404
|
others in a one-off manner. For example, `rspec spec/unit
|
341
405
|
spec/acceptance --order defined` will run unit specs before acceptance
|
342
|
-
specs. (Myron Marston, #2253)
|
406
|
+
specs. (Myron Marston, rspec/rspec-core#2253)
|
343
407
|
* Add new `config.include_context` API for configuring global or
|
344
408
|
filtered inclusion of shared contexts in example groups.
|
345
|
-
(Myron Marston, #2256)
|
409
|
+
(Myron Marston, rspec/rspec-core#2256)
|
346
410
|
* Add new `config.shared_context_metadata_behavior = :apply_to_host_groups`
|
347
411
|
option, which causes shared context metadata to be inherited by the
|
348
412
|
metadata hash of all host groups and examples instead of configuring
|
349
|
-
implicit auto-inclusion based on the passed metadata. (Myron Marston, #2256)
|
413
|
+
implicit auto-inclusion based on the passed metadata. (Myron Marston, rspec/rspec-core#2256)
|
350
414
|
|
351
415
|
Bug Fixes:
|
352
416
|
|
353
417
|
* Fix `--bisect` so it works on large spec suites that were previously triggering
|
354
418
|
"Argument list too long errors" due to all the spec locations being passed as
|
355
|
-
CLI args. (Matt Jones, #2223).
|
419
|
+
CLI args. (Matt Jones, rspec/rspec-core#2223).
|
356
420
|
* Fix deprecated `:example_group`-based filtering so that it properly
|
357
|
-
applies to matching example groups. (Myron Marston, #2234)
|
358
|
-
* Fix `NoMethodError` caused by Java backtraces on JRuby. (Michele Piccirillo, #2244)
|
421
|
+
applies to matching example groups. (Myron Marston, rspec/rspec-core#2234)
|
422
|
+
* Fix `NoMethodError` caused by Java backtraces on JRuby. (Michele Piccirillo, rspec/rspec-core#2244)
|
359
423
|
|
360
424
|
### 3.5.0.beta3 / 2016-04-02
|
361
425
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0.beta2...v3.5.0.beta3)
|
@@ -364,15 +428,15 @@ Enhancements:
|
|
364
428
|
|
365
429
|
* Add new `config.filter_run_when_matching` API, intended to replace
|
366
430
|
the combination of `config.filter_run` and
|
367
|
-
`config.run_all_when_everything_filtered` (Myron Marston, #2206)
|
431
|
+
`config.run_all_when_everything_filtered` (Myron Marston, rspec/rspec-core#2206)
|
368
432
|
|
369
433
|
Bug Fixes:
|
370
434
|
|
371
|
-
* Use the encoded string logic for source extraction. (Jon Rowe, #2183)
|
372
|
-
* Fix rounding issue in duration formatting helper. (Fabersky, Jon Rowe, #2208)
|
435
|
+
* Use the encoded string logic for source extraction. (Jon Rowe, rspec/rspec-core#2183)
|
436
|
+
* Fix rounding issue in duration formatting helper. (Fabersky, Jon Rowe, rspec/rspec-core#2208)
|
373
437
|
* Fix failure snippet extraction so that `def-end` snippets
|
374
438
|
ending with `end`-only line can be extracted properly.
|
375
|
-
(Yuji Nakayama, #2215)
|
439
|
+
(Yuji Nakayama, rspec/rspec-core#2215)
|
376
440
|
|
377
441
|
### 3.5.0.beta2 / 2016-03-10
|
378
442
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0.beta1...v3.5.0.beta2)
|
@@ -380,13 +444,13 @@ Bug Fixes:
|
|
380
444
|
Enhancements:
|
381
445
|
|
382
446
|
* Remove unneeded `:execution_result` example group metadata, saving a
|
383
|
-
bit of memory. (Myron Marston, #2172)
|
447
|
+
bit of memory. (Myron Marston, rspec/rspec-core#2172)
|
384
448
|
* Apply hooks registered with `config` to previously defined groups.
|
385
|
-
(Myron Marston, #2189)
|
449
|
+
(Myron Marston, rspec/rspec-core#2189)
|
386
450
|
* `RSpec::Core::Configuration#reporter` is now public API under SemVer.
|
387
|
-
(Jon Rowe, #2193)
|
451
|
+
(Jon Rowe, rspec/rspec-core#2193)
|
388
452
|
* Add new `config.when_first_matching_example_defined` hook. (Myron
|
389
|
-
Marston, #2175)
|
453
|
+
Marston, rspec/rspec-core#2175)
|
390
454
|
|
391
455
|
### 3.5.0.beta1 / 2016-02-06
|
392
456
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.4...v3.5.0.beta1)
|
@@ -394,12 +458,12 @@ Enhancements:
|
|
394
458
|
Enhancements:
|
395
459
|
|
396
460
|
* Add `RSpec::Core::ExampleGroup.currently_executing_a_context_hook?`,
|
397
|
-
primarily for use by rspec-rails. (Sam Phippen, #2131)
|
461
|
+
primarily for use by rspec-rails. (Sam Phippen, rspec/rspec-core#2131)
|
398
462
|
|
399
463
|
Bug Fixes:
|
400
464
|
|
401
465
|
* Ensure `MultipleExceptionError` does not contain a recursive reference
|
402
|
-
to itself. (Sam Phippen, #2133)
|
466
|
+
to itself. (Sam Phippen, rspec/rspec-core#2133)
|
403
467
|
|
404
468
|
### 3.4.4 / 2016-03-09
|
405
469
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.3...v3.4.4)
|
@@ -407,7 +471,7 @@ Bug Fixes:
|
|
407
471
|
Bug Fixes:
|
408
472
|
|
409
473
|
* Fix `RSpec::Core::RakeTask` so that it works with Rake 11.
|
410
|
-
(Travis Grathwell, #2197)
|
474
|
+
(Travis Grathwell, rspec/rspec-core#2197)
|
411
475
|
|
412
476
|
### 3.4.3 / 2016-02-19
|
413
477
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.2...v3.4.3)
|
@@ -415,15 +479,15 @@ Bug Fixes:
|
|
415
479
|
Bug Fixes:
|
416
480
|
|
417
481
|
* Prevent a `TypeError` from occurring when running via the rake task when
|
418
|
-
Ruby crashes. (Patrik Wenger, #2161)
|
482
|
+
Ruby crashes. (Patrik Wenger, rspec/rspec-core#2161)
|
419
483
|
* Only consider example and group declaration lines from a specific file
|
420
484
|
when applying line number filtering, instead of considering all
|
421
|
-
declaration lines from all spec files. (Myron Marston, #2170)
|
485
|
+
declaration lines from all spec files. (Myron Marston, rspec/rspec-core#2170)
|
422
486
|
* Fix failure snippet extraction so that snippets that contain `do-end` style
|
423
487
|
block and end with `end`-only line can be extracted properly.
|
424
|
-
(Yuji Nakayama, #2173)
|
488
|
+
(Yuji Nakayama, rspec/rspec-core#2173)
|
425
489
|
* Prevent infinite recursion when an exception is caused by itself.
|
426
|
-
(Jon Rowe, #2128)
|
490
|
+
(Jon Rowe, rspec/rspec-core#2128)
|
427
491
|
|
428
492
|
### 3.4.2 / 2016-01-26
|
429
493
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.1...v3.4.2)
|
@@ -431,13 +495,13 @@ Bug Fixes:
|
|
431
495
|
Bug Fixes:
|
432
496
|
|
433
497
|
* Fix `rspec --profile` when an example calls `abort` or `exit`.
|
434
|
-
(Bradley Schaefer, #2144)
|
498
|
+
(Bradley Schaefer, rspec/rspec-core#2144)
|
435
499
|
* Fix `--drb` so that when no DRb server is running, it prevents
|
436
500
|
the DRb connection error from being listed as the cause of all
|
437
|
-
expectation failures. (Myron Marston, #2156)
|
501
|
+
expectation failures. (Myron Marston, rspec/rspec-core#2156)
|
438
502
|
* Fix syntax highlighter so that it works when the `coderay` gem is
|
439
503
|
installed as a rubygem but not already available on your load path
|
440
|
-
(as happens when you use bundler). (Myron Marston, #2159)
|
504
|
+
(as happens when you use bundler). (Myron Marston, rspec/rspec-core#2159)
|
441
505
|
|
442
506
|
### 3.4.1 / 2015-11-18
|
443
507
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.0...v3.4.1)
|
@@ -445,7 +509,7 @@ Bug Fixes:
|
|
445
509
|
Bug Fixes:
|
446
510
|
|
447
511
|
* Fix backtrace formatter to handle backtraces that are `nil`.
|
448
|
-
(Myron Marston, #2118)
|
512
|
+
(Myron Marston, rspec/rspec-core#2118)
|
449
513
|
|
450
514
|
### 3.4.0 / 2015-11-11
|
451
515
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.2...v3.4.0)
|
@@ -453,68 +517,68 @@ Bug Fixes:
|
|
453
517
|
Enhancements:
|
454
518
|
|
455
519
|
* Combine multiple `--pattern` arguments making them equivalent to
|
456
|
-
`--pattern=1,2,...,n`. (Jon Rowe, #2002)
|
520
|
+
`--pattern=1,2,...,n`. (Jon Rowe, rspec/rspec-core#2002)
|
457
521
|
* Improve `inspect` and `to_s` output for `RSpec::Core::Example`
|
458
|
-
objects, replacing Ruby's excessively verbose output. (Gavin Miller, #1922)
|
522
|
+
objects, replacing Ruby's excessively verbose output. (Gavin Miller, rspec/rspec-core#1922)
|
459
523
|
* Add `silence_filter_announcements` configuration option.
|
460
|
-
(David Raffensperger, #2007)
|
524
|
+
(David Raffensperger, rspec/rspec-core#2007)
|
461
525
|
* Add optional `example_finished` notification to the reporter protocol for
|
462
|
-
when you don't care about the example outcome. (Jon Rowe, #2013)
|
526
|
+
when you don't care about the example outcome. (Jon Rowe, rspec/rspec-core#2013)
|
463
527
|
* Switch `--bisect` to a recursion-based bisection algorithm rather than
|
464
528
|
a permutation-based one. This better handles cases where an example
|
465
529
|
depends upon multiple other examples instead of just one and minimizes
|
466
530
|
the number of runs necessary to determine that an example set cannot be
|
467
|
-
minimized further. (Simon Coffey, #1997)
|
531
|
+
minimized further. (Simon Coffey, rspec/rspec-core#1997)
|
468
532
|
* Allow simple filters (e.g. `:symbol` key only) to be triggered by truthey
|
469
|
-
values. (Tim Mertens, #2035)
|
533
|
+
values. (Tim Mertens, rspec/rspec-core#2035)
|
470
534
|
* Remove unneeded warning about need for `ansicon` on Windows when using
|
471
|
-
RSpec's `--color` option. (Ashley Engelund, #2038)
|
535
|
+
RSpec's `--color` option. (Ashley Engelund, rspec/rspec-core#2038)
|
472
536
|
* Add option to configure RSpec to raise errors when issuing warnings.
|
473
|
-
(Jon Rowe, #2052)
|
537
|
+
(Jon Rowe, rspec/rspec-core#2052)
|
474
538
|
* Append the root `cause` of a failure or error to the printed failure
|
475
539
|
output when a `cause` is available. (Adam Magan)
|
476
540
|
* Stop rescuing `NoMemoryError`, `SignalExcepetion`, `Interrupt` and
|
477
|
-
`SystemExit`. It is dangerous to interfere with these. (Myron Marston, #2063)
|
541
|
+
`SystemExit`. It is dangerous to interfere with these. (Myron Marston, rspec/rspec-core#2063)
|
478
542
|
* Add `config.project_source_dirs` setting which RSpec uses to determine
|
479
543
|
if a backtrace line comes from your project source or from some
|
480
544
|
external library. It defaults to `spec`, `lib` and `app` but can be
|
481
|
-
configured differently. (Myron Marston, #2088)
|
545
|
+
configured differently. (Myron Marston, rspec/rspec-core#2088)
|
482
546
|
* Improve failure line detection so that it looks for the failure line
|
483
547
|
in any project source directory instead of just in the spec file.
|
484
548
|
In addition, if no backtrace lines can be found from a project source
|
485
549
|
file, we fall back to displaying the source of the first backtrace
|
486
550
|
line. This should virtually eliminate the "Unable to find matching
|
487
|
-
line from backtrace" messages. (Myron Marston, #2088)
|
551
|
+
line from backtrace" messages. (Myron Marston, rspec/rspec-core#2088)
|
488
552
|
* Add support for `:extra_failure_lines` example metadata that will
|
489
|
-
be appended to the failure output. (bootstraponline, #2092).
|
553
|
+
be appended to the failure output. (bootstraponline, rspec/rspec-core#2092).
|
490
554
|
* Add `RSpec::Core::Example#duplicate_with` to produce new examples
|
491
|
-
with cloned metadata. (bootstraponline, #2098)
|
555
|
+
with cloned metadata. (bootstraponline, rspec/rspec-core#2098)
|
492
556
|
* Add `RSpec::Core::Configuration#on_example_group_definition` to register
|
493
|
-
hooks to be invoked when example groups are created. (bootstraponline, #2094)
|
557
|
+
hooks to be invoked when example groups are created. (bootstraponline, rspec/rspec-core#2094)
|
494
558
|
* Add `add_example` and `remove_example` to `RSpec::Core::ExampleGroup` to
|
495
|
-
allow manipulating an example groups examples. (bootstraponline, #2095)
|
559
|
+
allow manipulating an example groups examples. (bootstraponline, rspec/rspec-core#2095)
|
496
560
|
* Display multiline failure source lines in failure output when Ripper is
|
497
561
|
available (MRI >= 1.9.2, and JRuby >= 1.7.5 && < 9.0.0.0.rc1).
|
498
|
-
(Yuji Nakayama, #2083)
|
562
|
+
(Yuji Nakayama, rspec/rspec-core#2083)
|
499
563
|
* Add `max_displayed_failure_line_count` configuration option
|
500
|
-
(defaults to 10). (Yuji Nakayama, #2083)
|
564
|
+
(defaults to 10). (Yuji Nakayama, rspec/rspec-core#2083)
|
501
565
|
* Enhance `fail_fast` option so it can take a number (e.g. `--fail-fast=3`)
|
502
566
|
to force the run to abort after the specified number of failures.
|
503
|
-
(Jack Scotti, #2065)
|
567
|
+
(Jack Scotti, rspec/rspec-core#2065)
|
504
568
|
* Syntax highlight the failure snippets in text formatters when `color`
|
505
569
|
is enabled and the `coderay` gem is installed on a POSIX system.
|
506
|
-
(Myron Marston, #2109)
|
570
|
+
(Myron Marston, rspec/rspec-core#2109)
|
507
571
|
|
508
572
|
Bug Fixes:
|
509
573
|
|
510
574
|
* Lock `example_status_persistence_file` when reading from and writing
|
511
575
|
to it to prevent race conditions when multiple processes try to use
|
512
|
-
it. (Ben Woosley, #2029)
|
576
|
+
it. (Ben Woosley, rspec/rspec-core#2029)
|
513
577
|
* Fix regression in 3.3 that caused spec file names with square brackets in
|
514
|
-
them (such as `1[]_spec.rb`) to not be loaded properly. (Myron Marston, #2041)
|
515
|
-
* Fix output encoding issue caused by ASCII literal on 1.9.3 (Jon Rowe, #2072)
|
578
|
+
them (such as `1[]_spec.rb`) to not be loaded properly. (Myron Marston, rspec/rspec-core#2041)
|
579
|
+
* Fix output encoding issue caused by ASCII literal on 1.9.3 (Jon Rowe, rspec/rspec-core#2072)
|
516
580
|
* Fix requires in `rspec/core/rake_task.rb` to avoid double requires
|
517
|
-
seen by some users. (Myron Marston, #2101)
|
581
|
+
seen by some users. (Myron Marston, rspec/rspec-core#2101)
|
518
582
|
|
519
583
|
### 3.3.2 / 2015-07-15
|
520
584
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.1...v3.3.2)
|
@@ -522,9 +586,9 @@ Bug Fixes:
|
|
522
586
|
Bug Fixes:
|
523
587
|
|
524
588
|
* Fix formatters to handle exceptions for which `backtrace` returns `nil`.
|
525
|
-
(Myron Marston, #2023)
|
589
|
+
(Myron Marston, rspec/rspec-core#2023)
|
526
590
|
* Fix duplicate formatter detection so that it allows subclasses of formatters
|
527
|
-
to be added. (Sebastián Tello, #2019)
|
591
|
+
to be added. (Sebastián Tello, rspec/rspec-core#2019)
|
528
592
|
|
529
593
|
### 3.3.1 / 2015-06-18
|
530
594
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.0...v3.3.1)
|
@@ -533,7 +597,7 @@ Bug Fixes:
|
|
533
597
|
|
534
598
|
* Correctly run `before(:suite)` (and friends) in the context of an example
|
535
599
|
group instance, thus making the expected RSpec environment available.
|
536
|
-
(Jon Rowe, #1986)
|
600
|
+
(Jon Rowe, rspec/rspec-core#1986)
|
537
601
|
|
538
602
|
### 3.3.0 / 2015-06-12
|
539
603
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.3...v3.3.0)
|
@@ -541,74 +605,74 @@ Bug Fixes:
|
|
541
605
|
Enhancements:
|
542
606
|
|
543
607
|
* Expose the reporter used to run examples via `RSpec::Core::Example#reporter`.
|
544
|
-
(Jon Rowe, #1866)
|
545
|
-
* Make `RSpec::Core::Reporter#message` a public supported API. (Jon Rowe, #1866)
|
608
|
+
(Jon Rowe, rspec/rspec-core#1866)
|
609
|
+
* Make `RSpec::Core::Reporter#message` a public supported API. (Jon Rowe, rspec/rspec-core#1866)
|
546
610
|
* Allow custom formatter events to be published via
|
547
|
-
`RSpec::Core::Reporter#publish(event_name, hash_of_attributes)`. (Jon Rowe, #1869)
|
611
|
+
`RSpec::Core::Reporter#publish(event_name, hash_of_attributes)`. (Jon Rowe, rspec/rspec-core#1869)
|
548
612
|
* Remove dependency on the standard library `Set` and replace with `RSpec::Core::Set`.
|
549
|
-
(Jon Rowe, #1870)
|
613
|
+
(Jon Rowe, rspec/rspec-core#1870)
|
550
614
|
* Assign a unique id to each example and group so that they can be
|
551
615
|
uniquely identified, even for shared examples (and similar situations)
|
552
|
-
where the location isn't unique. (Myron Marston, #1884)
|
616
|
+
where the location isn't unique. (Myron Marston, rspec/rspec-core#1884)
|
553
617
|
* Use the example id in the rerun command printed for failed examples
|
554
|
-
when the location is not unique. (Myron Marston, #1884)
|
618
|
+
when the location is not unique. (Myron Marston, rspec/rspec-core#1884)
|
555
619
|
* Add `config.example_status_persistence_file_path` option, which is
|
556
|
-
used to persist the last run status of each example. (Myron Marston, #1888)
|
620
|
+
used to persist the last run status of each example. (Myron Marston, rspec/rspec-core#1888)
|
557
621
|
* Add `:last_run_status` metadata to each example, which indicates what
|
558
|
-
happened the last time an example ran. (Myron Marston, #1888)
|
622
|
+
happened the last time an example ran. (Myron Marston, rspec/rspec-core#1888)
|
559
623
|
* Add `--only-failures` CLI option which filters to only the examples
|
560
|
-
that failed the last time they ran. (Myron Marston, #1888)
|
624
|
+
that failed the last time they ran. (Myron Marston, rspec/rspec-core#1888)
|
561
625
|
* Add `--next-failure` CLI option which allows you to repeatedly focus
|
562
626
|
on just one of the currently failing examples, then move on to the
|
563
|
-
next failure, etc. (Myron Marston, #1888)
|
627
|
+
next failure, etc. (Myron Marston, rspec/rspec-core#1888)
|
564
628
|
* Make `--order random` ordering stable, so that when you rerun a
|
565
629
|
subset with a given seed, the examples will be order consistently
|
566
|
-
relative to each other. (Myron Marston, #1908)
|
630
|
+
relative to each other. (Myron Marston, rspec/rspec-core#1908)
|
567
631
|
* Set example group constant earlier so errors when evaluating the context
|
568
|
-
include the example group name (Myron Marson, #1911)
|
569
|
-
* Make `let` and `subject` threadsafe. (Josh Cheek, #1858)
|
570
|
-
* Add version information into the JSON formatter. (Mark Swinson, #1883)
|
632
|
+
include the example group name (Myron Marson, rspec/rspec-core#1911)
|
633
|
+
* Make `let` and `subject` threadsafe. (Josh Cheek, rspec/rspec-core#1858)
|
634
|
+
* Add version information into the JSON formatter. (Mark Swinson, rspec/rspec-core#1883)
|
571
635
|
* Add `--bisect` CLI option, which will repeatedly run your suite in
|
572
636
|
order to isolate the failures to the smallest reproducible case.
|
573
|
-
(Myron Marston, #1917)
|
637
|
+
(Myron Marston, rspec/rspec-core#1917)
|
574
638
|
* For `config.include`, `config.extend` and `config.prepend`, apply the
|
575
|
-
module to previously defined matching example groups. (Eugene Kenny, #1935)
|
639
|
+
module to previously defined matching example groups. (Eugene Kenny, rspec/rspec-core#1935)
|
576
640
|
* When invalid options are parsed, notify users where they came from
|
577
641
|
(e.g. `.rspec` or `~/.rspec` or `ENV['SPEC_OPTS']`) so they can
|
578
|
-
easily find the source of the problem. (Myron Marston, #1940)
|
579
|
-
* Add pending message contents to the json formatter output. (Jon Rowe, #1949)
|
642
|
+
easily find the source of the problem. (Myron Marston, rspec/rspec-core#1940)
|
643
|
+
* Add pending message contents to the json formatter output. (Jon Rowe, rspec/rspec-core#1949)
|
580
644
|
* Add shared group backtrace to the output displayed by the built-in
|
581
|
-
formatters for pending examples that have been fixed. (Myron Marston, #1946)
|
645
|
+
formatters for pending examples that have been fixed. (Myron Marston, rspec/rspec-core#1946)
|
582
646
|
* Add support for `:aggregate_failures` metadata. Tag an example or
|
583
647
|
group with this metadata and it'll use rspec-expectations'
|
584
648
|
`aggregate_failures` feature to allow multiple failures in an example
|
585
649
|
and list them all, rather than aborting on the first failure. (Myron
|
586
|
-
Marston, #1946)
|
650
|
+
Marston, rspec/rspec-core#1946)
|
587
651
|
* When no formatter implements #message add a fallback to prevent those
|
588
|
-
messages being lost. (Jon Rowe, #1980)
|
652
|
+
messages being lost. (Jon Rowe, rspec/rspec-core#1980)
|
589
653
|
* Profiling examples now takes into account time spent in `before(:context)`
|
590
|
-
hooks. (Denis Laliberté, Jon Rowe, #1971)
|
654
|
+
hooks. (Denis Laliberté, Jon Rowe, rspec/rspec-core#1971)
|
591
655
|
* Improve failure output when an example has multiple exceptions, such
|
592
|
-
as one from an `it` block and one from an `after` block. (Myron Marston, #1985)
|
656
|
+
as one from an `it` block and one from an `after` block. (Myron Marston, rspec/rspec-core#1985)
|
593
657
|
|
594
658
|
Bug Fixes:
|
595
659
|
|
596
|
-
* Handle invalid UTF-8 strings within exception methods. (Benjamin Fleischer, #1760)
|
660
|
+
* Handle invalid UTF-8 strings within exception methods. (Benjamin Fleischer, rspec/rspec-core#1760)
|
597
661
|
* Fix Rake Task quoting of file names with quotes to work properly on
|
598
|
-
Windows. (Myron Marston, #1887)
|
662
|
+
Windows. (Myron Marston, rspec/rspec-core#1887)
|
599
663
|
* Fix `RSpec::Core::RakeTask#failure_message` so that it gets printed
|
600
|
-
when the task failed. (Myron Marston, #1905)
|
664
|
+
when the task failed. (Myron Marston, rspec/rspec-core#1905)
|
601
665
|
* Make `let` work properly when defined in a shared context that is applied
|
602
|
-
to an individual example via metadata. (Myron Marston, #1912)
|
603
|
-
* Ensure `rspec/autorun` respects configuration defaults. (Jon Rowe, #1933)
|
666
|
+
to an individual example via metadata. (Myron Marston, rspec/rspec-core#1912)
|
667
|
+
* Ensure `rspec/autorun` respects configuration defaults. (Jon Rowe, rspec/rspec-core#1933)
|
604
668
|
* Prevent modules overriding example group defined methods when included,
|
605
|
-
prepended or extended by config defined after an example group. (Eugene Kenny, #1935)
|
669
|
+
prepended or extended by config defined after an example group. (Eugene Kenny, rspec/rspec-core#1935)
|
606
670
|
* Fix regression which caused shared examples to be mistakenly run when specs
|
607
|
-
where filtered to a particular location. (Ben Axnick, #1963)
|
671
|
+
where filtered to a particular location. (Ben Axnick, rspec/rspec-core#1963)
|
608
672
|
* Fix time formatting logic so that it displays 70 seconds as "1 minute,
|
609
|
-
10 seconds" rather than "1 minute, 1 second". (Paul Brennan, #1984)
|
673
|
+
10 seconds" rather than "1 minute, 1 second". (Paul Brennan, rspec/rspec-core#1984)
|
610
674
|
* Fix regression where the formatter loader would allow duplicate formatters.
|
611
|
-
(Jon Rowe, #1990)
|
675
|
+
(Jon Rowe, rspec/rspec-core#1990)
|
612
676
|
|
613
677
|
### 3.2.3 / 2015-04-06
|
614
678
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.2...v3.2.3)
|
@@ -617,10 +681,10 @@ Bug Fixes:
|
|
617
681
|
|
618
682
|
* Fix how the DSL methods are defined so that RSpec is compatible with
|
619
683
|
gems that define methods of the same name on `Kernel` (such as
|
620
|
-
the `its-it` gem). (Alex Kwiatkowski, Ryan Ong, #1907)
|
684
|
+
the `its-it` gem). (Alex Kwiatkowski, Ryan Ong, rspec/rspec-core#1907)
|
621
685
|
* Fix `before(:context) { skip }` so that it does not wrongly cause the
|
622
686
|
spec suite to exit with a non-zero status when no examples failed.
|
623
|
-
(Myron Marston, #1926)
|
687
|
+
(Myron Marston, rspec/rspec-core#1926)
|
624
688
|
|
625
689
|
### 3.2.2 / 2015-03-11
|
626
690
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.1...v3.2.2)
|
@@ -630,7 +694,7 @@ Bug Fixes:
|
|
630
694
|
* Fix regression in 3.2.0 that allowed tag-filtered examples to
|
631
695
|
run even if there was a location filter applied to the spec
|
632
696
|
file that was intended to limit the file to other examples.
|
633
|
-
(#1894, Myron Marston)
|
697
|
+
(rspec/rspec-core#1894, Myron Marston)
|
634
698
|
|
635
699
|
### 3.2.1 / 2015-02-23
|
636
700
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.0...v3.2.1)
|
@@ -638,95 +702,95 @@ Bug Fixes:
|
|
638
702
|
Bug Fixes:
|
639
703
|
|
640
704
|
* Notify start-of-run seed _before_ `start` notification rather than
|
641
|
-
_after_ so that formatters like Fuubar work properly. (Samuel Esposito, #1882)
|
705
|
+
_after_ so that formatters like Fuubar work properly. (Samuel Esposito, rspec/rspec-core#1882)
|
642
706
|
|
643
707
|
### 3.2.0 / 2015-02-03
|
644
708
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.7...v3.2.0)
|
645
709
|
|
646
710
|
Enhancements:
|
647
711
|
|
648
|
-
* Improve the `inspect` output of example groups. (Mike Dalton, #1687)
|
712
|
+
* Improve the `inspect` output of example groups. (Mike Dalton, rspec/rspec-core#1687)
|
649
713
|
* When rake task fails, only output the command if `verbose` flag is
|
650
|
-
set. (Ben Snape, #1704)
|
714
|
+
set. (Ben Snape, rspec/rspec-core#1704)
|
651
715
|
* Add `RSpec.clear_examples` as a clear way to reset examples in between
|
652
|
-
spec runs, whilst retaining user configuration. (Alexey Fedorov, #1706)
|
716
|
+
spec runs, whilst retaining user configuration. (Alexey Fedorov, rspec/rspec-core#1706)
|
653
717
|
* Reduce string allocations when defining and running examples by 70%
|
654
|
-
and 50% respectively. (Myron Marston, #1738)
|
655
|
-
* Removed dependency on pathname from stdlib. (Sam Phippen, #1703)
|
718
|
+
and 50% respectively. (Myron Marston, rspec/rspec-core#1738)
|
719
|
+
* Removed dependency on pathname from stdlib. (Sam Phippen, rspec/rspec-core#1703)
|
656
720
|
* Improve the message presented when a user hits Ctrl-C.
|
657
|
-
(Alex Chaffee #1717, #1742)
|
721
|
+
(Alex Chaffee rspec/rspec-core#1717, rspec/rspec-core#1742)
|
658
722
|
* Improve shared example group inclusion backtrace displayed
|
659
723
|
in failed example output so that it works for all methods
|
660
724
|
of including shared example groups and shows all inclusion
|
661
|
-
locations. (Myron Marston, #1763)
|
725
|
+
locations. (Myron Marston, rspec/rspec-core#1763)
|
662
726
|
* Issue seed notification at start (as well as the end) of the reporter
|
663
|
-
run. (Arlandis Word, #1761)
|
664
|
-
* Improve the documentation of around hooks. (Jim Kingdon, #1772)
|
727
|
+
run. (Arlandis Word, rspec/rspec-core#1761)
|
728
|
+
* Improve the documentation of around hooks. (Jim Kingdon, rspec/rspec-core#1772)
|
665
729
|
* Support prepending of modules into example groups from config and allow
|
666
|
-
filtering based on metadata. (Arlandis Word, #1806)
|
730
|
+
filtering based on metadata. (Arlandis Word, rspec/rspec-core#1806)
|
667
731
|
* Emit warnings when `:suite` hooks are registered on an example group
|
668
732
|
(where it has always been ignored) or are registered with metadata
|
669
|
-
(which has always been ignored). (Myron Marston, #1805)
|
733
|
+
(which has always been ignored). (Myron Marston, rspec/rspec-core#1805)
|
670
734
|
* Provide a friendly error message when users call RSpec example group
|
671
735
|
APIs (e.g. `context`, `describe`, `it`, `let`, `before`, etc) from
|
672
|
-
within an example where those APIs are unavailable. (Myron Marston, #1819)
|
736
|
+
within an example where those APIs are unavailable. (Myron Marston, rspec/rspec-core#1819)
|
673
737
|
* Provide a friendly error message when users call RSpec example
|
674
738
|
APIs (e.g. `expect`, `double`, `stub_const`, etc) from
|
675
739
|
within an example group where those APIs are unavailable.
|
676
|
-
(Myron Marston, #1819)
|
740
|
+
(Myron Marston, rspec/rspec-core#1819)
|
677
741
|
* Add new `RSpec::Core::Sandbox.sandboxed { }` API that facilitates
|
678
742
|
testing RSpec with RSpec, allowing you to define example groups
|
679
743
|
and example from within an example without affecting the global
|
680
744
|
`RSpec.world` state. (Tyler Ball, 1808)
|
681
745
|
* Apply line-number filters only to the files they are scoped to,
|
682
|
-
allowing you to mix filtered and unfiltered files. (Myron Marston, #1839)
|
746
|
+
allowing you to mix filtered and unfiltered files. (Myron Marston, rspec/rspec-core#1839)
|
683
747
|
* When dumping pending examples, include the failure details so that you
|
684
|
-
don't have to un-pend the example to see it. (Myron Marston, #1844)
|
748
|
+
don't have to un-pend the example to see it. (Myron Marston, rspec/rspec-core#1844)
|
685
749
|
* Make `-I` option support multiple values when separated by
|
686
750
|
`File::PATH_SEPARATOR`, such as `rspec -I foo:bar`. This matches
|
687
|
-
the behavior of Ruby's `-I` option. (Fumiaki Matsushima, #1855).
|
751
|
+
the behavior of Ruby's `-I` option. (Fumiaki Matsushima, rspec/rspec-core#1855).
|
688
752
|
* Treat each example as having a singleton example group for the
|
689
753
|
purposes of applying metadata-based features that normally apply
|
690
754
|
to example groups to individually tagged examples. For example,
|
691
755
|
`RSpec.shared_context "Uses redis", :uses_redis` will now apply
|
692
756
|
to individual examples tagged with `:uses_redis`, as will
|
693
757
|
`config.include RedisHelpers, :uses_redis`, and
|
694
|
-
`config.before(:context, :uses_redis) { }`, etc. (Myron Marston, #1749)
|
758
|
+
`config.before(:context, :uses_redis) { }`, etc. (Myron Marston, rspec/rspec-core#1749)
|
695
759
|
|
696
760
|
Bug Fixes:
|
697
761
|
|
698
762
|
* When assigning generated example descriptions, surface errors
|
699
763
|
raised by `matcher.description` in the example description.
|
700
|
-
(Myron Marston, #1771)
|
764
|
+
(Myron Marston, rspec/rspec-core#1771)
|
701
765
|
* Don't consider expectations from `after` hooks when generating
|
702
|
-
example descriptions. (Myron Marston, #1771)
|
766
|
+
example descriptions. (Myron Marston, rspec/rspec-core#1771)
|
703
767
|
* Don't apply metadata-filtered config hooks to examples in groups
|
704
768
|
with matching metadata when those examples override the parent
|
705
|
-
metadata value to not match. (Myron Marston, #1796)
|
769
|
+
metadata value to not match. (Myron Marston, rspec/rspec-core#1796)
|
706
770
|
* Fix `config.expect_with :minitest` so that `skip` uses RSpec's
|
707
|
-
implementation rather than Minitest's. (Jonathan Rochkind, #1822)
|
771
|
+
implementation rather than Minitest's. (Jonathan Rochkind, rspec/rspec-core#1822)
|
708
772
|
* Fix `NameError` caused when duplicate example group aliases are defined and
|
709
|
-
the DSL is not globally exposed. (Aaron Kromer, #1825)
|
773
|
+
the DSL is not globally exposed. (Aaron Kromer, rspec/rspec-core#1825)
|
710
774
|
* When a shared example defined in an external file fails, use the host
|
711
775
|
example group (from a loaded spec file) for the re-run command to
|
712
|
-
ensure the command will actually work. (Myron Marston, #1835)
|
776
|
+
ensure the command will actually work. (Myron Marston, rspec/rspec-core#1835)
|
713
777
|
* Fix location filtering to work properly for examples defined in
|
714
778
|
a nested example group within a shared example group defined in
|
715
|
-
an external file. (Bradley Schaefer, Xavier Shay, Myron Marston, #1837)
|
779
|
+
an external file. (Bradley Schaefer, Xavier Shay, Myron Marston, rspec/rspec-core#1837)
|
716
780
|
* When a pending example fails (as expected) due to a mock expectation,
|
717
781
|
set `RSpec::Core::Example::ExecutionResult#pending_exception` --
|
718
|
-
previously it was not being set but should have been. (Myron Marston, #1844)
|
782
|
+
previously it was not being set but should have been. (Myron Marston, rspec/rspec-core#1844)
|
719
783
|
* Fix rake task to work when `rspec-core` is installed in a directory
|
720
|
-
containing a space. (Guido Günther, #1845)
|
784
|
+
containing a space. (Guido Günther, rspec/rspec-core#1845)
|
721
785
|
* Fix regression in 3.1 that caused `describe Regexp` to raise errors.
|
722
|
-
(Durran Jordan, #1853)
|
786
|
+
(Durran Jordan, rspec/rspec-core#1853)
|
723
787
|
* Fix regression in 3.x that caused the profile information to be printed
|
724
|
-
after the summary. (Max Lincoln, #1857)
|
788
|
+
after the summary. (Max Lincoln, rspec/rspec-core#1857)
|
725
789
|
* Apply `--seed` before loading `--require` files so that required files
|
726
|
-
can access the provided seed. (Myron Marston, #1745)
|
790
|
+
can access the provided seed. (Myron Marston, rspec/rspec-core#1745)
|
727
791
|
* Handle `RSpec::Core::Formatters::DeprecationFormatter::FileStream` being
|
728
792
|
reopened with an IO stream, which sometimes happens with spring.
|
729
|
-
(Kevin Mook, #1757)
|
793
|
+
(Kevin Mook, rspec/rspec-core#1757)
|
730
794
|
|
731
795
|
### 3.1.7 / 2014-10-11
|
732
796
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.6...v3.1.7)
|
@@ -735,14 +799,14 @@ Bug Fixes:
|
|
735
799
|
|
736
800
|
* Fix `Metadata.relative_path` so that for a current directory of
|
737
801
|
`/foo/bar`, `/foo/bar_1` is not wrongly converted to `._1`.
|
738
|
-
(Akos Vandra, #1730)
|
802
|
+
(Akos Vandra, rspec/rspec-core#1730)
|
739
803
|
* Prevent constant lookup mistakenly finding `RSpec::ExampleGroups` generated
|
740
804
|
constants on 1.9.2 by appending a trailing `_` to the generated names.
|
741
|
-
(Jon Rowe, #1737)
|
805
|
+
(Jon Rowe, rspec/rspec-core#1737)
|
742
806
|
* Fix bug in `:pending` metadata. If it got set in any way besides passing
|
743
807
|
it as part of the metadata literal passed to `it` (such as by using
|
744
808
|
`define_derived_metadata`), it did not have the desired effect,
|
745
|
-
instead marking the example as `:passed`. (Myron Marston, #1739)
|
809
|
+
instead marking the example as `:passed`. (Myron Marston, rspec/rspec-core#1739)
|
746
810
|
|
747
811
|
### 3.1.6 / 2014-10-08
|
748
812
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.5...v3.1.6)
|
@@ -751,9 +815,9 @@ Bug Fixes:
|
|
751
815
|
|
752
816
|
* Fix regression in rake task pattern handling, that prevented patterns
|
753
817
|
that were relative from the current directory rather than from `spec`
|
754
|
-
from working properly. (Myron Marston, #1734)
|
818
|
+
from working properly. (Myron Marston, rspec/rspec-core#1734)
|
755
819
|
* Prevent rake task from generating duplicate load path entries.
|
756
|
-
(Myron Marston, #1735)
|
820
|
+
(Myron Marston, rspec/rspec-core#1735)
|
757
821
|
|
758
822
|
### 3.1.5 / 2014-09-29
|
759
823
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.4...v3.1.5)
|
@@ -761,12 +825,12 @@ Bug Fixes:
|
|
761
825
|
Bug Fixes:
|
762
826
|
|
763
827
|
* Fix issue with the rake task incorrectly escaping strings on Windows.
|
764
|
-
(Jon Rowe #1718)
|
828
|
+
(Jon Rowe rspec/rspec-core#1718)
|
765
829
|
* Support absolute path patterns. While this wasn't officially supported
|
766
830
|
previously, setting `rake_task.pattern` to an absolute path pattern in
|
767
831
|
RSpec 3.0 and before worked since it delegated to `FileList` internally
|
768
832
|
(but now just forwards the pattern on to the `rspec` command).
|
769
|
-
(Myron Marston, #1726)
|
833
|
+
(Myron Marston, rspec/rspec-core#1726)
|
770
834
|
|
771
835
|
### 3.1.4 / 2014-09-18
|
772
836
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.3...v3.1.4)
|
@@ -775,10 +839,10 @@ Bug Fixes:
|
|
775
839
|
|
776
840
|
* Fix implicit `subject` when using `describe false` or `describe nil`
|
777
841
|
so that it returns the provided primitive rather than the string
|
778
|
-
representation. (Myron Marston, #1710)
|
842
|
+
representation. (Myron Marston, rspec/rspec-core#1710)
|
779
843
|
* Fix backtrace filtering to allow code in subdirectories of your
|
780
844
|
current working directory (such as vendor/bundle/...) to be filtered
|
781
|
-
from backtraces. (Myron Marston, #1708)
|
845
|
+
from backtraces. (Myron Marston, rspec/rspec-core#1708)
|
782
846
|
|
783
847
|
### 3.1.3 / 2014-09-15
|
784
848
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.2...v3.1.3)
|
@@ -788,12 +852,12 @@ Bug Fixes:
|
|
788
852
|
* Fix yet another regression in rake task pattern handling, to allow
|
789
853
|
`task.pattern = FileList["..."]` to work. That was never intended
|
790
854
|
to be supported but accidentally worked in 3.0 and earlier.
|
791
|
-
(Myron Marston, #1701)
|
855
|
+
(Myron Marston, rspec/rspec-core#1701)
|
792
856
|
* Fix pattern handling so that files are normalized to absolute paths
|
793
857
|
before subtracting the `--exclude-pattern` matched files from the
|
794
858
|
`--pattern` matched files so that it still works even if the patterns
|
795
859
|
are in slightly different forms (e.g. one starting with `./`).
|
796
|
-
(Christian Nelson, #1698)
|
860
|
+
(Christian Nelson, rspec/rspec-core#1698)
|
797
861
|
|
798
862
|
### 3.1.2 / 2014-09-08
|
799
863
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.1...v3.1.2)
|
@@ -801,7 +865,7 @@ Bug Fixes:
|
|
801
865
|
Bug Fixes:
|
802
866
|
|
803
867
|
* Fix another regression in rake task pattern handling, so that patterns
|
804
|
-
that start with `./` still work. (Christian Nelson, #1696)
|
868
|
+
that start with `./` still work. (Christian Nelson, rspec/rspec-core#1696)
|
805
869
|
|
806
870
|
### 3.1.1 / 2014-09-05
|
807
871
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.0...v3.1.1)
|
@@ -811,7 +875,7 @@ Bug Fixes:
|
|
811
875
|
* Fix a regression in rake task pattern handling, so that `rake_task.pattern = array`
|
812
876
|
works again. While we never intended to support array values (or even knew that worked!),
|
813
877
|
the implementation from 3.0 and earlier used `FileList` internally, which allows arrays.
|
814
|
-
The fix restores the old behavior. (Myron Marston, #1694)
|
878
|
+
The fix restores the old behavior. (Myron Marston, rspec/rspec-core#1694)
|
815
879
|
|
816
880
|
### 3.1.0 / 2014-09-04
|
817
881
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.4...v3.1.0)
|
@@ -820,57 +884,57 @@ Enhancements:
|
|
820
884
|
|
821
885
|
* Update files generated by `rspec --init` so that warnings are enabled
|
822
886
|
in commented out section of `spec_helper` rather than `.rspec` so users
|
823
|
-
have to consciously opt-in to the setting. (Andrew Hooker, #1572)
|
887
|
+
have to consciously opt-in to the setting. (Andrew Hooker, rspec/rspec-core#1572)
|
824
888
|
* Update `spec_helper` generated by `rspec --init` so that it sets the new
|
825
889
|
rspec-expectations `include_chain_clauses_in_custom_matcher_descriptions`
|
826
890
|
config option (which will be on by default in RSpec 4) and also sets the
|
827
891
|
rspec-mocks `verify_partial_doubles` option (which will also default
|
828
|
-
to on in RSpec 4). (Myron Marston, #1647)
|
892
|
+
to on in RSpec 4). (Myron Marston, rspec/rspec-core#1647)
|
829
893
|
* Provide an `inspect` output for example procsy objects (used in around
|
830
|
-
hooks) that doesn't make them look like procs. (Jon Rowe, #1620)
|
894
|
+
hooks) that doesn't make them look like procs. (Jon Rowe, rspec/rspec-core#1620)
|
831
895
|
* Remove a few unneeded `require` statements from
|
832
896
|
`rspec/core/rake_task.rb`, making it even more lighterweight.
|
833
|
-
(Myron Marston, #1640)
|
897
|
+
(Myron Marston, rspec/rspec-core#1640)
|
834
898
|
* Allow rspec-core to be used when neither rspec-mocks or
|
835
899
|
rspec-expectations are installed, without requiring any
|
836
|
-
user configuration. (Sam Phippen, Myron Marston, #1615)
|
900
|
+
user configuration. (Sam Phippen, Myron Marston, rspec/rspec-core#1615)
|
837
901
|
* Don't filter out gems from backtraces by default. (The RSpec
|
838
902
|
gems will still be filtered). User feedback has indicated
|
839
903
|
that including gems in default backtraces will be useful.
|
840
|
-
(Myron Marston, #1641)
|
904
|
+
(Myron Marston, rspec/rspec-core#1641)
|
841
905
|
* Add new `config.filter_gems_from_backtrace "rack", "rake"` API
|
842
|
-
to easily filter the named gems from backtraces. (Myron Marston, #1682)
|
906
|
+
to easily filter the named gems from backtraces. (Myron Marston, rspec/rspec-core#1682)
|
843
907
|
* Fix default backtrace filters so that the RSpec binary is
|
844
908
|
excluded when installing RSpec as a bundler `:git` dependency.
|
845
|
-
(Myron Marston, #1648)
|
909
|
+
(Myron Marston, rspec/rspec-core#1648)
|
846
910
|
* Simplify command generated by the rake task so that it no longer
|
847
|
-
includes unnecessary `-S`. (Myron Marston, #1559)
|
911
|
+
includes unnecessary `-S`. (Myron Marston, rspec/rspec-core#1559)
|
848
912
|
* Add `--exclude-pattern` CLI option, `config.exclude_pattern =` config
|
849
913
|
option and `task.exclude_pattern =` rake task config option. Matching
|
850
|
-
files will be excluded. (John Gesimondo, Myron Marston, #1651, #1671)
|
914
|
+
files will be excluded. (John Gesimondo, Myron Marston, rspec/rspec-core#1651, rspec/rspec-core#1671)
|
851
915
|
* When an around hook fails to execute the example, mark it as
|
852
916
|
pending (rather than passing) so the user is made aware of the
|
853
|
-
fact that the example did not actually run. (Myron Marston, #1660)
|
917
|
+
fact that the example did not actually run. (Myron Marston, rspec/rspec-core#1660)
|
854
918
|
* Remove dependency on `FileUtils` from the standard library so that users do
|
855
919
|
not get false positives where their code relies on it but they are not
|
856
|
-
requiring it. (Sam Phippen, #1565)
|
920
|
+
requiring it. (Sam Phippen, rspec/rspec-core#1565)
|
857
921
|
|
858
922
|
Bug Fixes:
|
859
923
|
|
860
924
|
* Fix rake task `t.pattern =` option so that it does not run all specs
|
861
925
|
when it matches no files, by passing along a `--pattern` option to
|
862
926
|
the `rspec` command, rather than resolving the file list and passing
|
863
|
-
along the files individually. (Evgeny Zislis, #1653)
|
927
|
+
along the files individually. (Evgeny Zislis, rspec/rspec-core#1653)
|
864
928
|
* Fix rake task default pattern so that it follows symlinks properly.
|
865
|
-
(Myron Marston, #1672)
|
929
|
+
(Myron Marston, rspec/rspec-core#1672)
|
866
930
|
* Fix default pattern used with `rspec` command so that it follows
|
867
|
-
symlinks properly. (Myron Marston, #1672)
|
931
|
+
symlinks properly. (Myron Marston, rspec/rspec-core#1672)
|
868
932
|
* Change how we assign constant names to example group classes so that
|
869
|
-
it avoids a problem with `describe "Core"`. (Daniela Wellisz, #1679)
|
933
|
+
it avoids a problem with `describe "Core"`. (Daniela Wellisz, rspec/rspec-core#1679)
|
870
934
|
* Handle rendering exceptions that have a different encoding than that
|
871
|
-
of their original source file. (Jon Rowe, #1681)
|
935
|
+
of their original source file. (Jon Rowe, rspec/rspec-core#1681)
|
872
936
|
* Allow access to message_lines without colour for failed examples even
|
873
|
-
when they're part of a shared example group. (tomykaira, #1689)
|
937
|
+
when they're part of a shared example group. (tomykaira, rspec/rspec-core#1689)
|
874
938
|
|
875
939
|
### 3.0.4 / 2014-08-14
|
876
940
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.3...v3.0.4)
|
@@ -879,9 +943,9 @@ Bug Fixes:
|
|
879
943
|
|
880
944
|
* Fix processing order of CLI options so that if `config.files_to_run`
|
881
945
|
is accessed from a file loaded by `--require`, `--pattern` is still
|
882
|
-
applied. (Myron Marston, #1652)
|
946
|
+
applied. (Myron Marston, rspec/rspec-core#1652)
|
883
947
|
* Fix `config.pattern=` so that it still takes affect even if
|
884
|
-
`config.files_to_run` has already been accessed. (Myron Marston, #1652)
|
948
|
+
`config.files_to_run` has already been accessed. (Myron Marston, rspec/rspec-core#1652)
|
885
949
|
|
886
950
|
### 3.0.3 / 2014-07-21
|
887
951
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.2...v3.0.3)
|
@@ -889,11 +953,11 @@ Bug Fixes:
|
|
889
953
|
Bug Fixes:
|
890
954
|
|
891
955
|
* Properly convert both parts of a description into strings before
|
892
|
-
concatenation. (@nicklink483, #1636)
|
956
|
+
concatenation. (@nicklink483, rspec/rspec-core#1636)
|
893
957
|
* Exclude the working directory when figuring out folders to ignore.
|
894
|
-
(Jon Rowe, Myron Marston, #1616)
|
958
|
+
(Jon Rowe, Myron Marston, rspec/rspec-core#1616)
|
895
959
|
* Allow `::RSpec::Core::Notifications::FailedExampleNotification#message_lines`
|
896
|
-
to be accessed without a colouriser. (@tomykaira, #1637)
|
960
|
+
to be accessed without a colouriser. (@tomykaira, rspec/rspec-core#1637)
|
897
961
|
|
898
962
|
### 3.0.2 / 2014-06-19
|
899
963
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.1...v3.0.2)
|
@@ -902,14 +966,14 @@ Bug Fixes:
|
|
902
966
|
|
903
967
|
* Fix regression in CLI option handling that prevented `--tag slow`
|
904
968
|
passed at the command line from overriding `--tag ~slow` in `.rspec`.
|
905
|
-
(Colin Jones, #1602)
|
969
|
+
(Colin Jones, rspec/rspec-core#1602)
|
906
970
|
* Fix metadata `:example_group` deprecation warning so that it gets
|
907
971
|
issued at the call site of the configuration that specified it as
|
908
972
|
a filter rather than later when an example group is defined.
|
909
|
-
(Myron Marston, #1562)
|
973
|
+
(Myron Marston, rspec/rspec-core#1562)
|
910
974
|
* Make the line that is printed when a shared example group fails indicating
|
911
975
|
where the concrete example group is white, separating it from the stack trace
|
912
|
-
that is produced for the failure. (Sam Phippen, Jon Rowe, #1606)
|
976
|
+
that is produced for the failure. (Sam Phippen, Jon Rowe, rspec/rspec-core#1606)
|
913
977
|
|
914
978
|
### 3.0.1 / 2014-06-12
|
915
979
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0...v3.0.1)
|
@@ -917,9 +981,9 @@ Bug Fixes:
|
|
917
981
|
Bug Fixes:
|
918
982
|
|
919
983
|
* Fix a couple ruby warnings caused by rspec-core when loaded.
|
920
|
-
(Prem Sichanugrist, #1584)
|
984
|
+
(Prem Sichanugrist, rspec/rspec-core#1584)
|
921
985
|
* Example groups named `Config` will no longer cause a Ruby warning to be
|
922
|
-
issued. (Jimmy Cuadra, #1580)
|
986
|
+
issued. (Jimmy Cuadra, rspec/rspec-core#1580)
|
923
987
|
|
924
988
|
### 3.0.0 / 2014-06-01
|
925
989
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0.rc1...v3.0.0)
|
@@ -935,7 +999,7 @@ Bug Fixes:
|
|
935
999
|
Enhancements:
|
936
1000
|
|
937
1001
|
* Alter the default `spec_helper.rb` to no longer recommend
|
938
|
-
`config.full_backtrace = true` see #1536 for discussion. (Jon Rowe)
|
1002
|
+
`config.full_backtrace = true` see rspec/rspec-core#1536 for discussion. (Jon Rowe)
|
939
1003
|
|
940
1004
|
### 3.0.0.rc1 / 2014-05-18
|
941
1005
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0.beta2...v3.0.0.rc1)
|
@@ -1188,7 +1252,7 @@ Bug Fixes:
|
|
1188
1252
|
or `default_path`. (Matijs van Zuijlen)
|
1189
1253
|
* Fix failure line detection so that it handles relative file paths
|
1190
1254
|
(which can happen when running specs through `ruby` using `rspec/autorun`).
|
1191
|
-
(Myron Marston, #1829)
|
1255
|
+
(Myron Marston, rspec/rspec-core#1829)
|
1192
1256
|
|
1193
1257
|
### 3.0.0.beta1 / 2013-11-07
|
1194
1258
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.1...v3.0.0.beta1)
|
@@ -1268,7 +1332,7 @@ Deprecations:
|
|
1268
1332
|
Enhancements:
|
1269
1333
|
|
1270
1334
|
* Improve deprecation warning for RSpec 3 change in `describe <a symbol>`
|
1271
|
-
behavior. (Jon Rowe, #1667)
|
1335
|
+
behavior. (Jon Rowe, rspec/rspec-core#1667)
|
1272
1336
|
|
1273
1337
|
### 2.99.1 / 2014-06-19
|
1274
1338
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0...v2.99.1)
|
@@ -1278,11 +1342,11 @@ Bug Fixes:
|
|
1278
1342
|
* Add missing deprecation warning for when `RSpec::Core::Runner` is used
|
1279
1343
|
multiple times in the same process. In 2.x RSpec's global state was
|
1280
1344
|
automatically cleared between runs but in 3.0 you need to call `RSpec.reset`
|
1281
|
-
manually in these situations. (Sam Phippen, #1587)
|
1345
|
+
manually in these situations. (Sam Phippen, rspec/rspec-core#1587)
|
1282
1346
|
* Prevent deprecation being accidentally issues when doubles used with `be_`
|
1283
|
-
matchers due to automatically generated descriptions. (Jon Rowe, #1573)
|
1347
|
+
matchers due to automatically generated descriptions. (Jon Rowe, rspec/rspec-core#1573)
|
1284
1348
|
* Load `rspec/core` when loading `rspec/core/rake_task` to ensure we can
|
1285
|
-
issue deprecations correctly. (Jon Rowe, #1612)
|
1349
|
+
issue deprecations correctly. (Jon Rowe, rspec/rspec-core#1612)
|
1286
1350
|
|
1287
1351
|
### 2.99.0 / 2014-06-01
|
1288
1352
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.rc1...v2.99.0)
|
@@ -1303,7 +1367,7 @@ Enhancements:
|
|
1303
1367
|
* Add `--deprecation-out` CLI option which directs deprecation warnings
|
1304
1368
|
to the named file. (Myron Marston)
|
1305
1369
|
* Backport support for `skip` in metadata to skip execution of an example.
|
1306
|
-
(Xavier Shay, #1472)
|
1370
|
+
(Xavier Shay, rspec/rspec-core#1472)
|
1307
1371
|
* Add `Pathname` support for setting all output streams. (Aaron Kromer)
|
1308
1372
|
* Add `test_unit` and `minitest` expectation frameworks. (Aaron Kromer)
|
1309
1373
|
|
@@ -1639,7 +1703,7 @@ Bug fixes
|
|
1639
1703
|
matcher description (as `Example#description` already did) when no
|
1640
1704
|
doc string has been provided (David Chelimsky).
|
1641
1705
|
* Fix the memoized methods (`let` and `subject`) leaking `define_method`
|
1642
|
-
as a `public` method. (Thomas Holmes and Jon Rowe) (#873)
|
1706
|
+
as a `public` method. (Thomas Holmes and Jon Rowe) (rspec/rspec-core#873)
|
1643
1707
|
* Fix warnings coming from the test suite. (Pete Higgins)
|
1644
1708
|
|
1645
1709
|
Deprecations
|