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