rspec-core 3.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.document +5 -0
  5. data/.yardopts +8 -0
  6. data/Changelog.md +2243 -0
  7. data/LICENSE.md +26 -0
  8. data/README.md +384 -0
  9. data/exe/rspec +4 -0
  10. data/lib/rspec/autorun.rb +3 -0
  11. data/lib/rspec/core.rb +185 -0
  12. data/lib/rspec/core/backtrace_formatter.rb +65 -0
  13. data/lib/rspec/core/bisect/coordinator.rb +62 -0
  14. data/lib/rspec/core/bisect/example_minimizer.rb +173 -0
  15. data/lib/rspec/core/bisect/fork_runner.rb +134 -0
  16. data/lib/rspec/core/bisect/server.rb +61 -0
  17. data/lib/rspec/core/bisect/shell_command.rb +126 -0
  18. data/lib/rspec/core/bisect/shell_runner.rb +73 -0
  19. data/lib/rspec/core/bisect/utilities.rb +58 -0
  20. data/lib/rspec/core/configuration.rb +2308 -0
  21. data/lib/rspec/core/configuration_options.rb +233 -0
  22. data/lib/rspec/core/drb.rb +113 -0
  23. data/lib/rspec/core/dsl.rb +98 -0
  24. data/lib/rspec/core/example.rb +656 -0
  25. data/lib/rspec/core/example_group.rb +889 -0
  26. data/lib/rspec/core/example_status_persister.rb +235 -0
  27. data/lib/rspec/core/filter_manager.rb +231 -0
  28. data/lib/rspec/core/flat_map.rb +20 -0
  29. data/lib/rspec/core/formatters.rb +269 -0
  30. data/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
  31. data/lib/rspec/core/formatters/base_formatter.rb +70 -0
  32. data/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
  33. data/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
  34. data/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
  35. data/lib/rspec/core/formatters/console_codes.rb +68 -0
  36. data/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
  37. data/lib/rspec/core/formatters/documentation_formatter.rb +70 -0
  38. data/lib/rspec/core/formatters/exception_presenter.rb +508 -0
  39. data/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
  40. data/lib/rspec/core/formatters/helpers.rb +110 -0
  41. data/lib/rspec/core/formatters/html_formatter.rb +153 -0
  42. data/lib/rspec/core/formatters/html_printer.rb +414 -0
  43. data/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
  44. data/lib/rspec/core/formatters/json_formatter.rb +102 -0
  45. data/lib/rspec/core/formatters/profile_formatter.rb +68 -0
  46. data/lib/rspec/core/formatters/progress_formatter.rb +29 -0
  47. data/lib/rspec/core/formatters/protocol.rb +182 -0
  48. data/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
  49. data/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
  50. data/lib/rspec/core/hooks.rb +624 -0
  51. data/lib/rspec/core/invocations.rb +87 -0
  52. data/lib/rspec/core/memoized_helpers.rb +554 -0
  53. data/lib/rspec/core/metadata.rb +498 -0
  54. data/lib/rspec/core/metadata_filter.rb +255 -0
  55. data/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
  56. data/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
  57. data/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
  58. data/lib/rspec/core/mocking_adapters/null.rb +14 -0
  59. data/lib/rspec/core/mocking_adapters/rr.rb +31 -0
  60. data/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
  61. data/lib/rspec/core/notifications.rb +521 -0
  62. data/lib/rspec/core/option_parser.rb +309 -0
  63. data/lib/rspec/core/ordering.rb +158 -0
  64. data/lib/rspec/core/output_wrapper.rb +29 -0
  65. data/lib/rspec/core/pending.rb +165 -0
  66. data/lib/rspec/core/profiler.rb +34 -0
  67. data/lib/rspec/core/project_initializer.rb +48 -0
  68. data/lib/rspec/core/project_initializer/.rspec +1 -0
  69. data/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
  70. data/lib/rspec/core/rake_task.rb +168 -0
  71. data/lib/rspec/core/reporter.rb +257 -0
  72. data/lib/rspec/core/ruby_project.rb +53 -0
  73. data/lib/rspec/core/runner.rb +199 -0
  74. data/lib/rspec/core/sandbox.rb +37 -0
  75. data/lib/rspec/core/set.rb +54 -0
  76. data/lib/rspec/core/shared_context.rb +55 -0
  77. data/lib/rspec/core/shared_example_group.rb +269 -0
  78. data/lib/rspec/core/shell_escape.rb +49 -0
  79. data/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
  80. data/lib/rspec/core/version.rb +9 -0
  81. data/lib/rspec/core/warnings.rb +40 -0
  82. data/lib/rspec/core/world.rb +275 -0
  83. metadata +292 -0
  84. metadata.gz.sig +0 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f10137b78862f926840a5956452d1def7be1715745bb73edab35b73af27cd801
4
+ data.tar.gz: 7d2c59eea23bd759487efb177c7e9de131a416d832ee6467b4849813d759832c
5
+ SHA512:
6
+ metadata.gz: a4344a9bdf65524dc82da9368cc8d844ed1da304aa139f2a95d5a6f1c177534d95ebbf7ecd3a488c2fa65221706cf0f4afdfbfdc3d0b6846f18ffaff1b9cda17
7
+ data.tar.gz: 063aee16e467179dd13d1f94a98b57fbc135d93ab9b46cf0d860903ca8a5ce130579830e6f561b288a78f642da976ac56be5ccf3ec4753d8754e2d508e650cb0
Binary file
Binary file
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ -
3
+ README.md
4
+ LICENSE.md
5
+ Changelog.md
@@ -0,0 +1,8 @@
1
+ --exclude features
2
+ --no-private
3
+ --markup markdown
4
+ --default-return void
5
+ -
6
+ Filtering.md
7
+ Changelog.md
8
+ LICENSE.md
@@ -0,0 +1,2243 @@
1
+ ### 3.8.2 / 2019-06-29
2
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.8.1...v3.8.2)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix `config.define_derived_metadata` so that cascades are not triggered
7
+ until metadata has been assigned to the example or example group
8
+ (Myron Marston, #2635).
9
+
10
+ ### 3.8.1 / 2019-06-13
11
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.8.0...3.8.1)
12
+
13
+ Bug Fixes:
14
+
15
+ * Handle RSpec description(s) with japanese chars in CP932 encoded files.
16
+ (Benoit Tigeot, #2575)
17
+ * When defining `let` methods that overwrite an existing method, prevent
18
+ a warning being issued by removing the old definition. (Jon Rowe, #2593)
19
+ * Prevent warning on Ruby 2.6.0-rc1 (Keiji Yoshimi, #2582)
20
+ * Fix `config.define_derived_metadata` so that it supports cascades.
21
+ (Myron Marston, #2630).
22
+
23
+ ### 3.8.0 / 2018-08-04
24
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.7.1...v3.8.0)
25
+
26
+ Enhancements:
27
+
28
+ * Improve shell escaping used by `RSpec::Core::RakeTask` and `--bisect` so
29
+ that it works on `Pathname` objects. (Andrew Vit, #2479)
30
+ * Nicely format errors encountered while loading files specified
31
+ by `--require` option. (Myron Marston, #2504)
32
+ * Significantly improve the performance of `--bisect` on platforms that
33
+ support forking by replacing the shell-based runner with one that uses
34
+ forking so that RSpec and the application environment can be booted only
35
+ once, instead of once per spec run. (Myron Marston, #2511)
36
+ * Provide a configuration API to pick which bisect runner is used for
37
+ `--bisect`. Pick a runner via `config.bisect_runner = :shell` or
38
+ `config.bisect_runner = :fork` in a file loaded by a `--require`
39
+ option passed at the command line or set in `.rspec`. (Myron Marston, #2511)
40
+ * Support the [XDG Base Directory
41
+ Specification](https://specifications.freedesktop.org/basedir-spec/latest/)
42
+ for the global options file. `~/.rspec` is still supported when no
43
+ options file is found in `$XDG_CONFIG_HOME/rspec/options` (Magnus Bergmark, #2538)
44
+ * Extract `RSpec.world.prepare_example_filtering` that sets up the
45
+ example filtering for custom RSpec runners. (Oleg Pudeyev, #2552)
46
+
47
+ Bug Fixes:
48
+
49
+ * Prevent an `ArgumentError` when truncating backtraces with two identical
50
+ backtraces. (Systho, #2515, Benoit Tigeot, #2539)
51
+
52
+ ### 3.7.1 / 2018-01-02
53
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.7.0...v3.7.1)
54
+
55
+ Bug Fixes:
56
+
57
+ * Work around duplicate config hook regression introduced
58
+ by Ruby 2.5's lazy proc allocation. (Myron Marston, #2497)
59
+
60
+ ### 3.7.0 / 2017-10-17
61
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0...v3.7.0)
62
+
63
+ Enhancements:
64
+
65
+ * Add `-n` alias for `--next-failure`. (Ian Ker-Seymer, #2434)
66
+ * Improve compatibility with `--enable-frozen-string-literal` option
67
+ on Ruby 2.3+. (Pat Allan, #2425, #2427, #2437)
68
+ * Do not run `:context` hooks for example groups that have been skipped.
69
+ (Devon Estes, #2442)
70
+ * Add `errors_outside_of_examples_count` to the JSON formatter.
71
+ (Takeshi Arabiki, #2448)
72
+
73
+ Bug Fixes:
74
+
75
+ * Improve compatibility with frozen string literal flag. (#2425, Pat Allan)
76
+
77
+ ### 3.6.0 / 2017-05-04
78
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0.beta2...v3.6.0)
79
+
80
+ Enhancements:
81
+
82
+ * Add seed information to JSON formatter output. (#2388, Mitsutaka Mimura)
83
+ * Include example id in the JSON formatter output. (#2369, Xavier Shay)
84
+ * Respect changes to `config.output_stream` after formatters have been
85
+ setup. (#2401, #2419, Ilya Lavrov)
86
+
87
+ Bug Fixes:
88
+
89
+ * Delay formatter loading until the last minute to allow accessing the reporter
90
+ without triggering formatter setup. (Jon Rowe, #2243)
91
+ * Ensure context hook failures running before an example can access the
92
+ reporter. (Jon Jensen, #2387)
93
+ * Multiple fixes to allow using the runner multiple times within the same
94
+ process: `RSpec.clear_examples` resets the formatter and no longer clears
95
+ shared examples, and streams can be used across multiple runs rather than
96
+ being closed after the first. (#2368, Xavier Shay)
97
+ * Prevent unexpected `example_group_finished` notifications causing an error.
98
+ (#2396, VTJamie)
99
+ * Fix bugs where `config.when_first_matching_example_defined` hooks would fire
100
+ multiple times in some cases. (Yuji Nakayama, #2400)
101
+ * Default `last_run_status` to "unknown" when the `status` field in the
102
+ persistence file contains an unrecognized value. (#2360, matrinox)
103
+ * Prevent `let` from defining an `initialize` method. (#2414, Jon Rowe)
104
+
105
+ ### 3.6.0.beta2 / 2016-12-12
106
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0.beta1...v3.6.0.beta2)
107
+
108
+ Enhancements:
109
+
110
+ * Include count of errors occurring outside examples in default summaries.
111
+ (#2351, Jon Rowe)
112
+ * Warn when including shared example groups recursively. (#2356, Jon Rowe)
113
+ * Improve failure snippet syntax highlighting with CodeRay to highlight
114
+ RSpec "keywords" like `expect`. (#2358, Myron Marston)
115
+
116
+ ### 3.6.0.beta1 / 2016-10-09
117
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.4...v3.6.0.beta1)
118
+
119
+ Enhancements:
120
+
121
+ * Warn when duplicate shared examples definitions are loaded due to being
122
+ defined in files matching the spec pattern (e.g. `_spec.rb`) (#2278, Devon Estes)
123
+ * Improve metadata filtering so that it can match against any object
124
+ that implements `===` instead of treating regular expressions as
125
+ special. (Myron Marston, #2294)
126
+ * Improve `rspec -v` so that it prints out the versions of each part of
127
+ RSpec to prevent confusion. (Myron Marston, #2304)
128
+ * Add `config.fail_if_no_examples` option which causes RSpec to fail if
129
+ no examples are found. (Ewa Czechowska, #2302)
130
+ * Nicely format errors encountered while loading spec files.
131
+ (Myron Marston, #2323)
132
+ * Improve the API for enabling and disabling color output (Josh
133
+ Justice, #2321):
134
+ * Automatically enable color if the output is a TTY, since color is
135
+ nearly always desirable if the output can handle it.
136
+ * Introduce new CLI flag to force color on (`--force-color`), even
137
+ if the output is not a TTY. `--no-color` continues to work as well.
138
+ * Introduce `config.color_mode` for configuring the color from Ruby.
139
+ `:automatic` is the default and will produce color if the output is
140
+ a TTY. `:on` forces it on and `:off` forces it off.
141
+
142
+ ### 3.5.4 / 2016-09-30
143
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.3...v3.5.4)
144
+
145
+ Bug Fixes:
146
+
147
+ * Remove accumulated `ExampleGroup` constants when reseting RSpec,
148
+ preventing a memory leak. (TravisSpangle, #2328)
149
+
150
+ ### 3.5.3 / 2016-09-02
151
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.2...v3.5.3)
152
+
153
+ Bug Fixes:
154
+
155
+ * When applying shared group metadata to a host group, overwrite
156
+ conflicting keys if the value in the host group was inherited from
157
+ a parent group instead of being specified at that level.
158
+ (Myron Marston, #2307)
159
+ * Handle errors in `:suite` hooks and provide the same nicely formatted
160
+ output as errors that happen in examples. (Myron Marston, #2316)
161
+ * Set the exit status to non-zero when an error occurs in an
162
+ `after(:context)` hook. (Myron Marston, #2320)
163
+
164
+ ### 3.5.2 / 2016-07-28
165
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.1...v3.5.2)
166
+
167
+ Bug Fixes:
168
+
169
+ * Wait to report `example_finished` until the example's `execution_result`
170
+ has been completely filled in. (Myron Marston, #2291)
171
+ * Make sure example block is still available when using `duplicate_with`
172
+ to clone examples. (bootstraponline, #2298)
173
+ * Don't include the default `--pattern` in the Rake task when
174
+ `rspec_opts` specifies its own. (Jon Rowe, #2305)
175
+
176
+ ### 3.5.1 / 2016-07-06
177
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0...v3.5.1)
178
+
179
+ Bug Fixes:
180
+
181
+ * Ensure that config hooks that are added to existing example groups are
182
+ added only once. (Eugene Kenny, #2280)
183
+
184
+ ### 3.5.0 / 2016-07-01
185
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0.beta4...v3.5.0)
186
+
187
+ Enhancements:
188
+
189
+ * Include any `SPEC_OPTS` in reproduction command printed at the end of
190
+ a bisect run. (Simon Coffey, #2274)
191
+
192
+ Bug Fixes:
193
+
194
+ * Handle `--bisect` in `SPEC_OPTS` environment variable correctly so as
195
+ to avoid infinite recursion. (Simon Coffey, #2271)
196
+
197
+ ### 3.5.0.beta4 / 2016-06-05
198
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0.beta3...v3.5.0.beta4)
199
+
200
+ Enhancements:
201
+
202
+ * Filter out bundler stackframes from backtraces by default, since
203
+ Bundler 1.12 now includes its own frames in stack traces produced
204
+ by using `bundle exec`. (Myron Marston, #2240)
205
+ * HTML Formatter uses exception presenter to get failure message
206
+ for consistency with other formatters. (@mrageh, #2222)
207
+ * Load spec files in the order of the directories or files passed
208
+ at the command line, making it easy to make some specs run before
209
+ others in a one-off manner. For example, `rspec spec/unit
210
+ spec/acceptance --order defined` will run unit specs before acceptance
211
+ specs. (Myron Marston, #2253)
212
+ * Add new `config.include_context` API for configuring global or
213
+ filtered inclusion of shared contexts in example groups.
214
+ (Myron Marston, #2256)
215
+ * Add new `config.shared_context_metadata_behavior = :apply_to_host_groups`
216
+ option, which causes shared context metadata to be inherited by the
217
+ metadata hash of all host groups and examples instead of configuring
218
+ implicit auto-inclusion based on the passed metadata. (Myron Marston, #2256)
219
+
220
+ Bug Fixes:
221
+
222
+ * Fix `--bisect` so it works on large spec suites that were previously triggering
223
+ "Argument list too long errors" due to all the spec locations being passed as
224
+ CLI args. (Matt Jones, #2223).
225
+ * Fix deprecated `:example_group`-based filtering so that it properly
226
+ applies to matching example groups. (Myron Marston, #2234)
227
+ * Fix `NoMethodError` caused by Java backtraces on JRuby. (Michele Piccirillo, #2244)
228
+
229
+ ### 3.5.0.beta3 / 2016-04-02
230
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0.beta2...v3.5.0.beta3)
231
+
232
+ Enhancements:
233
+
234
+ * Add new `config.filter_run_when_matching` API, intended to replace
235
+ the combination of `config.filter_run` and
236
+ `config.run_all_when_everything_filtered` (Myron Marston, #2206)
237
+
238
+ Bug Fixes:
239
+
240
+ * Use the encoded string logic for source extraction. (Jon Rowe, #2183)
241
+ * Fix rounding issue in duration formatting helper. (Fabersky, Jon Rowe, #2208)
242
+ * Fix failure snippet extraction so that `def-end` snippets
243
+ ending with `end`-only line can be extracted properly.
244
+ (Yuji Nakayama, #2215)
245
+
246
+ ### 3.5.0.beta2 / 2016-03-10
247
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0.beta1...v3.5.0.beta2)
248
+
249
+ Enhancements:
250
+
251
+ * Remove unneeded `:execution_result` example group metadata, saving a
252
+ bit of memory. (Myron Marston, #2172)
253
+ * Apply hooks registered with `config` to previously defined groups.
254
+ (Myron Marston, #2189)
255
+ * `RSpec::Core::Configuration#reporter` is now public API under SemVer.
256
+ (Jon Rowe, #2193)
257
+ * Add new `config.when_first_matching_example_defined` hook. (Myron
258
+ Marston, #2175)
259
+
260
+ ### 3.5.0.beta1 / 2016-02-06
261
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.4...v3.5.0.beta1)
262
+
263
+ Enhancements:
264
+
265
+ * Add `RSpec::Core::ExampleGroup.currently_executing_a_context_hook?`,
266
+ primarily for use by rspec-rails. (Sam Phippen, #2131)
267
+
268
+ Bug Fixes:
269
+
270
+ * Ensure `MultipleExceptionError` does not contain a recursive reference
271
+ to itself. (Sam Phippen, #2133)
272
+
273
+ ### 3.4.4 / 2016-03-09
274
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.3...v3.4.4)
275
+
276
+ Bug Fixes:
277
+
278
+ * Fix `RSpec::Core::RakeTask` so that it works with Rake 11.
279
+ (Travis Grathwell, #2197)
280
+
281
+ ### 3.4.3 / 2016-02-19
282
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.2...v3.4.3)
283
+
284
+ Bug Fixes:
285
+
286
+ * Prevent a `TypeError` from occurring when running via the rake task when
287
+ Ruby crashes. (Patrik Wenger, #2161)
288
+ * Only consider example and group declaration lines from a specific file
289
+ when applying line number filtering, instead of considering all
290
+ declaration lines from all spec files. (Myron Marston, #2170)
291
+ * Fix failure snippet extraction so that snippets that contain `do-end` style
292
+ block and end with `end`-only line can be extracted properly.
293
+ (Yuji Nakayama, #2173)
294
+ * Prevent infinite recursion when an exception is caused by itself.
295
+ (Jon Rowe, #2128)
296
+
297
+ ### 3.4.2 / 2016-01-26
298
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.1...v3.4.2)
299
+
300
+ Bug Fixes:
301
+
302
+ * Fix `rspec --profile` when an example calls `abort` or `exit`.
303
+ (Bradley Schaefer, #2144)
304
+ * Fix `--drb` so that when no DRb server is running, it prevents
305
+ the DRb connection error from being listed as the cause of all
306
+ expectation failures. (Myron Marston, #2156)
307
+ * Fix syntax highlighter so that it works when the `coderay` gem is
308
+ installed as a rubygem but not already available on your load path
309
+ (as happens when you use bundler). (Myron Marston, #2159)
310
+
311
+ ### 3.4.1 / 2015-11-18
312
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.0...v3.4.1)
313
+
314
+ Bug Fixes:
315
+
316
+ * Fix backtrace formatter to handle backtraces that are `nil`.
317
+ (Myron Marston, #2118)
318
+
319
+ ### 3.4.0 / 2015-11-11
320
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.2...v3.4.0)
321
+
322
+ Enhancements:
323
+
324
+ * Combine multiple `--pattern` arguments making them equivalent to
325
+ `--pattern=1,2,...,n`. (Jon Rowe, #2002)
326
+ * Improve `inspect` and `to_s` output for `RSpec::Core::Example`
327
+ objects, replacing Ruby's excessively verbose output. (Gavin Miller, #1922)
328
+ * Add `silence_filter_announcements` configuration option.
329
+ (David Raffensperger, #2007)
330
+ * Add optional `example_finished` notification to the reporter protocol for
331
+ when you don't care about the example outcome. (Jon Rowe, #2013)
332
+ * Switch `--bisect` to a recursion-based bisection algorithm rather than
333
+ a permutation-based one. This better handles cases where an example
334
+ depends upon multiple other examples instead of just one and minimizes
335
+ the number of runs necessary to determine that an example set cannot be
336
+ minimized further. (Simon Coffey, #1997)
337
+ * Allow simple filters (e.g. `:symbol` key only) to be triggered by truthey
338
+ values. (Tim Mertens, #2035)
339
+ * Remove unneeded warning about need for `ansicon` on Windows when using
340
+ RSpec's `--color` option. (Ashley Engelund, #2038)
341
+ * Add option to configure RSpec to raise errors when issuing warnings.
342
+ (Jon Rowe, #2052)
343
+ * Append the root `cause` of a failure or error to the printed failure
344
+ output when a `cause` is available. (Adam Magan)
345
+ * Stop rescuing `NoMemoryError`, `SignalExcepetion`, `Interrupt` and
346
+ `SystemExit`. It is dangerous to interfere with these. (Myron Marston, #2063)
347
+ * Add `config.project_source_dirs` setting which RSpec uses to determine
348
+ if a backtrace line comes from your project source or from some
349
+ external library. It defaults to `spec`, `lib` and `app` but can be
350
+ configured differently. (Myron Marston, #2088)
351
+ * Improve failure line detection so that it looks for the failure line
352
+ in any project source directory instead of just in the spec file.
353
+ In addition, if no backtrace lines can be found from a project source
354
+ file, we fall back to displaying the source of the first backtrace
355
+ line. This should virtually eliminate the "Unable to find matching
356
+ line from backtrace" messages. (Myron Marston, #2088)
357
+ * Add support for `:extra_failure_lines` example metadata that will
358
+ be appended to the failure output. (bootstraponline, #2092).
359
+ * Add `RSpec::Core::Example#duplicate_with` to produce new examples
360
+ with cloned metadata. (bootstraponline, #2098)
361
+ * Add `RSpec::Core::Configuration#on_example_group_definition` to register
362
+ hooks to be invoked when example groups are created. (bootstraponline, #2094)
363
+ * Add `add_example` and `remove_example` to `RSpec::Core::ExampleGroup` to
364
+ allow manipulating an example groups examples. (bootstraponline, #2095)
365
+ * Display multiline failure source lines in failure output when Ripper is
366
+ available (MRI >= 1.9.2, and JRuby >= 1.7.5 && < 9.0.0.0.rc1).
367
+ (Yuji Nakayama, #2083)
368
+ * Add `max_displayed_failure_line_count` configuration option
369
+ (defaults to 10). (Yuji Nakayama, #2083)
370
+ * Enhance `fail_fast` option so it can take a number (e.g. `--fail-fast=3`)
371
+ to force the run to abort after the specified number of failures.
372
+ (Jack Scotti, #2065)
373
+ * Syntax highlight the failure snippets in text formatters when `color`
374
+ is enabled and the `coderay` gem is installed on a POSIX system.
375
+ (Myron Marston, #2109)
376
+
377
+ Bug Fixes:
378
+
379
+ * Lock `example_status_persistence_file` when reading from and writing
380
+ to it to prevent race conditions when multiple processes try to use
381
+ it. (Ben Woosley, #2029)
382
+ * Fix regression in 3.3 that caused spec file names with square brackets in
383
+ them (such as `1[]_spec.rb`) to not be loaded properly. (Myron Marston, #2041)
384
+ * Fix output encoding issue caused by ASCII literal on 1.9.3 (Jon Rowe, #2072)
385
+ * Fix requires in `rspec/core/rake_task.rb` to avoid double requires
386
+ seen by some users. (Myron Marston, #2101)
387
+
388
+ ### 3.3.2 / 2015-07-15
389
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.1...v3.3.2)
390
+
391
+ Bug Fixes:
392
+
393
+ * Fix formatters to handle exceptions for which `backtrace` returns `nil`.
394
+ (Myron Marston, #2023)
395
+ * Fix duplicate formatter detection so that it allows subclasses of formatters
396
+ to be added. (Sebastián Tello, #2019)
397
+
398
+ ### 3.3.1 / 2015-06-18
399
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.0...v3.3.1)
400
+
401
+ Bug Fixes:
402
+
403
+ * Correctly run `before(:suite)` (and friends) in the context of an example
404
+ group instance, thus making the expected RSpec environment available.
405
+ (Jon Rowe, #1986)
406
+
407
+ ### 3.3.0 / 2015-06-12
408
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.3...v3.3.0)
409
+
410
+ Enhancements:
411
+
412
+ * Expose the reporter used to run examples via `RSpec::Core::Example#reporter`.
413
+ (Jon Rowe, #1866)
414
+ * Make `RSpec::Core::Reporter#message` a public supported API. (Jon Rowe, #1866)
415
+ * Allow custom formatter events to be published via
416
+ `RSpec::Core::Reporter#publish(event_name, hash_of_attributes)`. (Jon Rowe, #1869)
417
+ * Remove dependency on the standard library `Set` and replace with `RSpec::Core::Set`.
418
+ (Jon Rowe, #1870)
419
+ * Assign a unique id to each example and group so that they can be
420
+ uniquely identified, even for shared examples (and similar situations)
421
+ where the location isn't unique. (Myron Marston, #1884)
422
+ * Use the example id in the rerun command printed for failed examples
423
+ when the location is not unique. (Myron Marston, #1884)
424
+ * Add `config.example_status_persistence_file_path` option, which is
425
+ used to persist the last run status of each example. (Myron Marston, #1888)
426
+ * Add `:last_run_status` metadata to each example, which indicates what
427
+ happened the last time an example ran. (Myron Marston, #1888)
428
+ * Add `--only-failures` CLI option which filters to only the examples
429
+ that failed the last time they ran. (Myron Marston, #1888)
430
+ * Add `--next-failure` CLI option which allows you to repeatedly focus
431
+ on just one of the currently failing examples, then move on to the
432
+ next failure, etc. (Myron Marston, #1888)
433
+ * Make `--order random` ordering stable, so that when you rerun a
434
+ subset with a given seed, the examples will be order consistently
435
+ relative to each other. (Myron Marston, #1908)
436
+ * Set example group constant earlier so errors when evaluating the context
437
+ include the example group name (Myron Marson, #1911)
438
+ * Make `let` and `subject` threadsafe. (Josh Cheek, #1858)
439
+ * Add version information into the JSON formatter. (Mark Swinson, #1883)
440
+ * Add `--bisect` CLI option, which will repeatedly run your suite in
441
+ order to isolate the failures to the smallest reproducible case.
442
+ (Myron Marston, #1917)
443
+ * For `config.include`, `config.extend` and `config.prepend`, apply the
444
+ module to previously defined matching example groups. (Eugene Kenny, #1935)
445
+ * When invalid options are parsed, notify users where they came from
446
+ (e.g. `.rspec` or `~/.rspec` or `ENV['SPEC_OPTS']`) so they can
447
+ easily find the source of the problem. (Myron Marston, #1940)
448
+ * Add pending message contents to the json formatter output. (Jon Rowe, #1949)
449
+ * Add shared group backtrace to the output displayed by the built-in
450
+ formatters for pending examples that have been fixed. (Myron Marston, #1946)
451
+ * Add support for `:aggregate_failures` metadata. Tag an example or
452
+ group with this metadata and it'll use rspec-expectations'
453
+ `aggregate_failures` feature to allow multiple failures in an example
454
+ and list them all, rather than aborting on the first failure. (Myron
455
+ Marston, #1946)
456
+ * When no formatter implements #message add a fallback to prevent those
457
+ messages being lost. (Jon Rowe, #1980)
458
+ * Profiling examples now takes into account time spent in `before(:context)`
459
+ hooks. (Denis Laliberté, Jon Rowe, #1971)
460
+ * Improve failure output when an example has multiple exceptions, such
461
+ as one from an `it` block and one from an `after` block. (Myron Marston, #1985)
462
+
463
+ Bug Fixes:
464
+
465
+ * Handle invalid UTF-8 strings within exception methods. (Benjamin Fleischer, #1760)
466
+ * Fix Rake Task quoting of file names with quotes to work properly on
467
+ Windows. (Myron Marston, #1887)
468
+ * Fix `RSpec::Core::RakeTask#failure_message` so that it gets printed
469
+ when the task failed. (Myron Marston, #1905)
470
+ * Make `let` work properly when defined in a shared context that is applied
471
+ to an individual example via metadata. (Myron Marston, #1912)
472
+ * Ensure `rspec/autorun` respects configuration defaults. (Jon Rowe, #1933)
473
+ * Prevent modules overriding example group defined methods when included,
474
+ prepended or extended by config defined after an example group. (Eugene Kenny, #1935)
475
+ * Fix regression which caused shared examples to be mistakenly run when specs
476
+ where filtered to a particular location. (Ben Axnick, #1963)
477
+ * Fix time formatting logic so that it displays 70 seconds as "1 minute,
478
+ 10 seconds" rather than "1 minute, 1 second". (Paul Brennan, #1984)
479
+ * Fix regression where the formatter loader would allow duplicate formatters.
480
+ (Jon Rowe, #1990)
481
+
482
+ ### 3.2.3 / 2015-04-06
483
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.2...v3.2.3)
484
+
485
+ Bug Fixes:
486
+
487
+ * Fix how the DSL methods are defined so that RSpec is compatible with
488
+ gems that define methods of the same name on `Kernel` (such as
489
+ the `its-it` gem). (Alex Kwiatkowski, Ryan Ong, #1907)
490
+ * Fix `before(:context) { skip }` so that it does not wrongly cause the
491
+ spec suite to exit with a non-zero status when no examples failed.
492
+ (Myron Marston, #1926)
493
+
494
+ ### 3.2.2 / 2015-03-11
495
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.1...v3.2.2)
496
+
497
+ Bug Fixes:
498
+
499
+ * Fix regression in 3.2.0 that allowed tag-filtered examples to
500
+ run even if there was a location filter applied to the spec
501
+ file that was intended to limit the file to other examples.
502
+ (#1894, Myron Marston)
503
+
504
+ ### 3.2.1 / 2015-02-23
505
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.0...v3.2.1)
506
+
507
+ Bug Fixes:
508
+
509
+ * Notify start-of-run seed _before_ `start` notification rather than
510
+ _after_ so that formatters like Fuubar work properly. (Samuel Esposito, #1882)
511
+
512
+ ### 3.2.0 / 2015-02-03
513
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.7...v3.2.0)
514
+
515
+ Enhancements:
516
+
517
+ * Improve the `inspect` output of example groups. (Mike Dalton, #1687)
518
+ * When rake task fails, only output the command if `verbose` flag is
519
+ set. (Ben Snape, #1704)
520
+ * Add `RSpec.clear_examples` as a clear way to reset examples in between
521
+ spec runs, whilst retaining user configuration. (Alexey Fedorov, #1706)
522
+ * Reduce string allocations when defining and running examples by 70%
523
+ and 50% respectively. (Myron Marston, #1738)
524
+ * Removed dependency on pathname from stdlib. (Sam Phippen, #1703)
525
+ * Improve the message presented when a user hits Ctrl-C.
526
+ (Alex Chaffee #1717, #1742)
527
+ * Improve shared example group inclusion backtrace displayed
528
+ in failed example output so that it works for all methods
529
+ of including shared example groups and shows all inclusion
530
+ locations. (Myron Marston, #1763)
531
+ * Issue seed notification at start (as well as the end) of the reporter
532
+ run. (Arlandis Word, #1761)
533
+ * Improve the documentation of around hooks. (Jim Kingdon, #1772)
534
+ * Support prepending of modules into example groups from config and allow
535
+ filtering based on metadata. (Arlandis Word, #1806)
536
+ * Emit warnings when `:suite` hooks are registered on an example group
537
+ (where it has always been ignored) or are registered with metadata
538
+ (which has always been ignored). (Myron Marston, #1805)
539
+ * Provide a friendly error message when users call RSpec example group
540
+ APIs (e.g. `context`, `describe`, `it`, `let`, `before`, etc) from
541
+ within an example where those APIs are unavailable. (Myron Marston, #1819)
542
+ * Provide a friendly error message when users call RSpec example
543
+ APIs (e.g. `expect`, `double`, `stub_const`, etc) from
544
+ within an example group where those APIs are unavailable.
545
+ (Myron Marston, #1819)
546
+ * Add new `RSpec::Core::Sandbox.sandboxed { }` API that facilitates
547
+ testing RSpec with RSpec, allowing you to define example groups
548
+ and example from within an example without affecting the global
549
+ `RSpec.world` state. (Tyler Ball, 1808)
550
+ * Apply line-number filters only to the files they are scoped to,
551
+ allowing you to mix filtered and unfiltered files. (Myron Marston, #1839)
552
+ * When dumping pending examples, include the failure details so that you
553
+ don't have to un-pend the example to see it. (Myron Marston, #1844)
554
+ * Make `-I` option support multiple values when separated by
555
+ `File::PATH_SEPARATOR`, such as `rspec -I foo:bar`. This matches
556
+ the behavior of Ruby's `-I` option. (Fumiaki Matsushima, #1855).
557
+ * Treat each example as having a singleton example group for the
558
+ purposes of applying metadata-based features that normally apply
559
+ to example groups to individually tagged examples. For example,
560
+ `RSpec.shared_context "Uses redis", :uses_redis` will now apply
561
+ to individual examples tagged with `:uses_redis`, as will
562
+ `config.include RedisHelpers, :uses_redis`, and
563
+ `config.before(:context, :uses_redis) { }`, etc. (Myron Marston, #1749)
564
+
565
+ Bug Fixes:
566
+
567
+ * When assigning generated example descriptions, surface errors
568
+ raised by `matcher.description` in the example description.
569
+ (Myron Marston, #1771)
570
+ * Don't consider expectations from `after` hooks when generating
571
+ example descriptions. (Myron Marston, #1771)
572
+ * Don't apply metadata-filtered config hooks to examples in groups
573
+ with matching metadata when those examples override the parent
574
+ metadata value to not match. (Myron Marston, #1796)
575
+ * Fix `config.expect_with :minitest` so that `skip` uses RSpec's
576
+ implementation rather than Minitest's. (Jonathan Rochkind, #1822)
577
+ * Fix `NameError` caused when duplicate example group aliases are defined and
578
+ the DSL is not globally exposed. (Aaron Kromer, #1825)
579
+ * When a shared example defined in an external file fails, use the host
580
+ example group (from a loaded spec file) for the re-run command to
581
+ ensure the command will actually work. (Myron Marston, #1835)
582
+ * Fix location filtering to work properly for examples defined in
583
+ a nested example group within a shared example group defined in
584
+ an external file. (Bradley Schaefer, Xavier Shay, Myron Marston, #1837)
585
+ * When a pending example fails (as expected) due to a mock expectation,
586
+ set `RSpec::Core::Example::ExecutionResult#pending_exception` --
587
+ previously it was not being set but should have been. (Myron Marston, #1844)
588
+ * Fix rake task to work when `rspec-core` is installed in a directory
589
+ containing a space. (Guido Günther, #1845)
590
+ * Fix regression in 3.1 that caused `describe Regexp` to raise errors.
591
+ (Durran Jordan, #1853)
592
+ * Fix regression in 3.x that caused the profile information to be printed
593
+ after the summary. (Max Lincoln, #1857)
594
+ * Apply `--seed` before loading `--require` files so that required files
595
+ can access the provided seed. (Myron Marston, #1745)
596
+ * Handle `RSpec::Core::Formatters::DeprecationFormatter::FileStream` being
597
+ reopened with an IO stream, which sometimes happens with spring.
598
+ (Kevin Mook, #1757)
599
+
600
+ ### 3.1.7 / 2014-10-11
601
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.6...v3.1.7)
602
+
603
+ Bug Fixes:
604
+
605
+ * Fix `Metadata.relative_path` so that for a current directory of
606
+ `/foo/bar`, `/foo/bar_1` is not wrongly converted to `._1`.
607
+ (Akos Vandra, #1730)
608
+ * Prevent constant lookup mistakenly finding `RSpec::ExampleGroups` generated
609
+ constants on 1.9.2 by appending a trailing `_` to the generated names.
610
+ (Jon Rowe, #1737)
611
+ * Fix bug in `:pending` metadata. If it got set in any way besides passing
612
+ it as part of the metadata literal passed to `it` (such as by using
613
+ `define_derived_metadata`), it did not have the desired effect,
614
+ instead marking the example as `:passed`. (Myron Marston, #1739)
615
+
616
+ ### 3.1.6 / 2014-10-08
617
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.5...v3.1.6)
618
+
619
+ Bug Fixes:
620
+
621
+ * Fix regression in rake task pattern handling, that prevented patterns
622
+ that were relative from the current directory rather than from `spec`
623
+ from working properly. (Myron Marston, #1734)
624
+ * Prevent rake task from generating duplicate load path entries.
625
+ (Myron Marston, #1735)
626
+
627
+ ### 3.1.5 / 2014-09-29
628
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.4...v3.1.5)
629
+
630
+ Bug Fixes:
631
+
632
+ * Fix issue with the rake task incorrectly escaping strings on Windows.
633
+ (Jon Rowe #1718)
634
+ * Support absolute path patterns. While this wasn't officially supported
635
+ previously, setting `rake_task.pattern` to an absolute path pattern in
636
+ RSpec 3.0 and before worked since it delegated to `FileList` internally
637
+ (but now just forwards the pattern on to the `rspec` command).
638
+ (Myron Marston, #1726)
639
+
640
+ ### 3.1.4 / 2014-09-18
641
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.3...v3.1.4)
642
+
643
+ Bug Fixes:
644
+
645
+ * Fix implicit `subject` when using `describe false` or `describe nil`
646
+ so that it returns the provided primitive rather than the string
647
+ representation. (Myron Marston, #1710)
648
+ * Fix backtrace filtering to allow code in subdirectories of your
649
+ current working directory (such as vendor/bundle/...) to be filtered
650
+ from backtraces. (Myron Marston, #1708)
651
+
652
+ ### 3.1.3 / 2014-09-15
653
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.2...v3.1.3)
654
+
655
+ Bug Fixes:
656
+
657
+ * Fix yet another regression in rake task pattern handling, to allow
658
+ `task.pattern = FileList["..."]` to work. That was never intended
659
+ to be supported but accidentally worked in 3.0 and earlier.
660
+ (Myron Marston, #1701)
661
+ * Fix pattern handling so that files are normalized to absolute paths
662
+ before subtracting the `--exclude-pattern` matched files from the
663
+ `--pattern` matched files so that it still works even if the patterns
664
+ are in slightly different forms (e.g. one starting with `./`).
665
+ (Christian Nelson, #1698)
666
+
667
+ ### 3.1.2 / 2014-09-08
668
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.1...v3.1.2)
669
+
670
+ Bug Fixes:
671
+
672
+ * Fix another regression in rake task pattern handling, so that patterns
673
+ that start with `./` still work. (Christian Nelson, #1696)
674
+
675
+ ### 3.1.1 / 2014-09-05
676
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.0...v3.1.1)
677
+
678
+ Bug Fixes:
679
+
680
+ * Fix a regression in rake task pattern handling, so that `rake_task.pattern = array`
681
+ works again. While we never intended to support array values (or even knew that worked!),
682
+ the implementation from 3.0 and earlier used `FileList` internally, which allows arrays.
683
+ The fix restores the old behavior. (Myron Marston, #1694)
684
+
685
+ ### 3.1.0 / 2014-09-04
686
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.4...v3.1.0)
687
+
688
+ Enhancements:
689
+
690
+ * Update files generated by `rspec --init` so that warnings are enabled
691
+ in commented out section of `spec_helper` rather than `.rspec` so users
692
+ have to consciously opt-in to the setting. (Andrew Hooker, #1572)
693
+ * Update `spec_helper` generated by `rspec --init` so that it sets the new
694
+ rspec-expectations `include_chain_clauses_in_custom_matcher_descriptions`
695
+ config option (which will be on by default in RSpec 4) and also sets the
696
+ rspec-mocks `verify_partial_doubles` option (which will also default
697
+ to on in RSpec 4). (Myron Marston, #1647)
698
+ * Provide an `inspect` output for example procsy objects (used in around
699
+ hooks) that doesn't make them look like procs. (Jon Rowe, #1620)
700
+ * Remove a few unneeded `require` statements from
701
+ `rspec/core/rake_task.rb`, making it even more lighterweight.
702
+ (Myron Marston, #1640)
703
+ * Allow rspec-core to be used when neither rspec-mocks or
704
+ rspec-expectations are installed, without requiring any
705
+ user configuration. (Sam Phippen, Myron Marston, #1615)
706
+ * Don't filter out gems from backtraces by default. (The RSpec
707
+ gems will still be filtered). User feedback has indicated
708
+ that including gems in default backtraces will be useful.
709
+ (Myron Marston, #1641)
710
+ * Add new `config.filter_gems_from_backtrace "rack", "rake"` API
711
+ to easily filter the named gems from backtraces. (Myron Marston, #1682)
712
+ * Fix default backtrace filters so that the RSpec binary is
713
+ excluded when installing RSpec as a bundler `:git` dependency.
714
+ (Myron Marston, #1648)
715
+ * Simplify command generated by the rake task so that it no longer
716
+ includes unnecessary `-S`. (Myron Marston, #1559)
717
+ * Add `--exclude-pattern` CLI option, `config.exclude_pattern =` config
718
+ option and `task.exclude_pattern =` rake task config option. Matching
719
+ files will be excluded. (John Gesimondo, Myron Marston, #1651, #1671)
720
+ * When an around hook fails to execute the example, mark it as
721
+ pending (rather than passing) so the user is made aware of the
722
+ fact that the example did not actually run. (Myron Marston, #1660)
723
+ * Remove dependency on `FileUtils` from the standard library so that users do
724
+ not get false positives where their code relies on it but they are not
725
+ requiring it. (Sam Phippen, #1565)
726
+
727
+ Bug Fixes:
728
+
729
+ * Fix rake task `t.pattern =` option so that it does not run all specs
730
+ when it matches no files, by passing along a `--pattern` option to
731
+ the `rspec` command, rather than resolving the file list and passing
732
+ along the files individually. (Evgeny Zislis, #1653)
733
+ * Fix rake task default pattern so that it follows symlinks properly.
734
+ (Myron Marston, #1672)
735
+ * Fix default pattern used with `rspec` command so that it follows
736
+ symlinks properly. (Myron Marston, #1672)
737
+ * Change how we assign constant names to example group classes so that
738
+ it avoids a problem with `describe "Core"`. (Daniela Wellisz, #1679)
739
+ * Handle rendering exceptions that have a different encoding than that
740
+ of their original source file. (Jon Rowe, #1681)
741
+ * Allow access to message_lines without colour for failed examples even
742
+ when they're part of a shared example group. (tomykaira, #1689)
743
+
744
+ ### 3.0.4 / 2014-08-14
745
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.3...v3.0.4)
746
+
747
+ Bug Fixes:
748
+
749
+ * Fix processing order of CLI options so that if `config.files_to_run`
750
+ is accessed from a file loaded by `--require`, `--pattern` is still
751
+ applied. (Myron Marston, #1652)
752
+ * Fix `config.pattern=` so that it still takes affect even if
753
+ `config.files_to_run` has already been accessed. (Myron Marston, #1652)
754
+
755
+ ### 3.0.3 / 2014-07-21
756
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.2...v3.0.3)
757
+
758
+ Bug Fixes:
759
+
760
+ * Properly convert both parts of a description into strings before
761
+ concatenation. (@nicklink483, #1636)
762
+ * Exclude the working directory when figuring out folders to ignore.
763
+ (Jon Rowe, Myron Marston, #1616)
764
+ * Allow `::RSpec::Core::Notifications::FailedExampleNotification#message_lines`
765
+ to be accessed without a colouriser. (@tomykaira, #1637)
766
+
767
+ ### 3.0.2 / 2014-06-19
768
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.1...v3.0.2)
769
+
770
+ Bug Fixes:
771
+
772
+ * Fix regression in CLI option handling that prevented `--tag slow`
773
+ passed at the command line from overriding `--tag ~slow` in `.rspec`.
774
+ (Colin Jones, #1602)
775
+ * Fix metadata `:example_group` deprecation warning so that it gets
776
+ issued at the call site of the configuration that specified it as
777
+ a filter rather than later when an example group is defined.
778
+ (Myron Marston, #1562)
779
+ * Make the line that is printed when a shared example group fails indicating
780
+ where the concrete example group is white, separating it from the stack trace
781
+ that is produced for the failure. (Sam Phippen, Jon Rowe, #1606)
782
+
783
+ ### 3.0.1 / 2014-06-12
784
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0...v3.0.1)
785
+
786
+ Bug Fixes:
787
+
788
+ * Fix a couple ruby warnings caused by rspec-core when loaded.
789
+ (Prem Sichanugrist, #1584)
790
+ * Example groups named `Config` will no longer cause a Ruby warning to be
791
+ issued. (Jimmy Cuadra, #1580)
792
+
793
+ ### 3.0.0 / 2014-06-01
794
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0.rc1...v3.0.0)
795
+
796
+ Bug Fixes:
797
+
798
+ * Fix `BaseTextFormatter` so that it does not re-close a closed output
799
+ stream. (Myron Marston)
800
+ * Fix regression in metadata that caused the metadata hash of a top-level
801
+ example group to have a `:parent_example_group` key even though it has
802
+ no parent example group. (Myron Marston)
803
+
804
+ Enhancements:
805
+
806
+ * Alter the default `spec_helper.rb` to no longer recommend
807
+ `config.full_backtrace = true` see #1536 for discussion. (Jon Rowe)
808
+
809
+ ### 3.0.0.rc1 / 2014-05-18
810
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0.beta2...v3.0.0.rc1)
811
+
812
+ Breaking Changes for 3.0.0:
813
+
814
+ * Change `described_class` so that in a nested group like `describe
815
+ MyClass`, it returns `MyClass` rather than the outer group's described
816
+ class. (Myron Marston)
817
+ * Refactor filter manager so that it no longer subclasses Hash and has a
818
+ tighter, more domain-specific interface. (Sergey Pchelincev)
819
+ * Remove legacy colours definitions from `BaseTextFormatter`. (Jon Rowe)
820
+ * Remove console color definitions from `BaseTextFormatter`. (Jon Rowe)
821
+ * Restructure example group metadata so that the computed keys are
822
+ exposed directly off of the metadata hash rather than being on
823
+ a nested `:example_group` subhash. In addition, the parent example
824
+ group metadata is now available as `[:parent_example_group]` rather
825
+ than `[:example_group][:example_group]`. Deprecated access via the
826
+ old key structure is still provided. (Myron Marston)
827
+ * Remove `:describes` metadata key. It duplicates `:described_class`
828
+ for no good reason. Deprecated access via `:describes` is still
829
+ provided. (Myron Marston)
830
+ * Rename `:example_group_block` metadata key to `:block`.
831
+ (Myron Marston)
832
+ * Remove deprecated `RSpec::Core::Example#options`. (Myron Marston)
833
+ * Move `BaseTextFormatter#colorize_summary` to `SummaryNotification#colorize_with`
834
+ (Jon Rowe).
835
+ * `describe some_hash` treated `some_hash` as metadata in RSpec 2.x but
836
+ will treat it as the described object in RSpec 3.0. Metadata must
837
+ always come after the description args. (Myron Marston)
838
+ * Remove deprecated `display_name` alias of `ExampleGroup.description`.
839
+ (Myron Marston)
840
+ * Remove deprecated `describes` alias of `ExampleGroup.described_class`.
841
+ (Myron Marston)
842
+ * Remove deprecated `RSpec::Core::ExampleGroup.alias_it_behaves_like_to`.
843
+ Use `RSpec::Core::Configuration#alias_it_behaves_like_to` instead.
844
+ (Myron Marston)
845
+ * Remove deprecated `RSpec::Core::ExampleGroup.alias_example_to`.
846
+ Use `RSpec::Core::Configuration#alias_example_to` instead.
847
+ (Myron Marston)
848
+ * Removed `focused` example alias and change example/group aliases
849
+ `fit`, `focus`, `fcontext` and `fdescribe` to no longer include
850
+ `:focused => true` metadata. They only contain `:focus => true`
851
+ metadata now. This means that you will need to filter them with
852
+ `filter_run :focus`, not `filter_run :focused`. (Myron Marston)
853
+ * Remove `--line-number` filtering. It's semantically dubious since it's
854
+ a global filter (potentially applied to multiple files) but there's no
855
+ meaningful connection between the same line number in multiple files.
856
+ Instead use the `rspec path/to/spec.rb:23:46` form, which is terser
857
+ and makes more sense as it is scoped to a file. (Myron Marston)
858
+ * Remove `--default_path` as an alias for `--default-path`. (Jon Rowe)
859
+ * Remove deprecated `share_examples_for`. There's still
860
+ `shared_examples` and `shared_examples_for`. (Myron Marston)
861
+ * Rename `RSpec::Core::Configuration#warnings` to
862
+ `RSpec::Core::Configuration#warnings?` since it's a boolean flag.
863
+ (Myron Marston)
864
+ * RSpec's global state is no longer reset after a spec run. This gives
865
+ more flexibility to alternate runners to decide when and if they
866
+ want the state reset. Alternate runners are now responsible for
867
+ calling this (or doing a similar reset) if they are going to run
868
+ the spec suite multiple times in the same process. (Sam Phippen)
869
+ * Merge `RSpec::Core::CommandLine` (never formally declared public)
870
+ into `RSpec::Core::Runner`. (Myron Marston)
871
+ * Remove `color_enabled` as an alias of `color`. (Jon Rowe)
872
+ * Remove `backtrace_cleaner` as an alias of `backtrace_formatter`. (Jon Rowe)
873
+ * Remove `filename_pattern` as an alias of `pattern`. (Jon Rowe)
874
+ * Extract support for legacy formatters to `rspec-legacy_formatters`. (Jon Rowe)
875
+ * `RSpec::Configuration#formatters` now returns a dup to prevent mutation. (Jon Rowe)
876
+ * Replace `stdlib` as an available expectation framework with `test_unit` and
877
+ `minitest`. (Aaron Kromer)
878
+ * Remove backtrace formatting helpers from `BaseTextFormatter`. (Jon Rowe)
879
+ * Extract profiler support to `ProfileFormatter` and `ProfileNotification`.
880
+ Formatters should implement `dump_profile` if they wish to respond to `--profile`.
881
+ (Jon Rowe)
882
+ * Extract remaining formatter state to reporter and notifications. Introduce
883
+ `ExamplesNotification` to share information about examples that was previously
884
+ held in `BaseFormatter`. (Jon Rowe)
885
+
886
+ Enhancements:
887
+
888
+ * Add `config.default_formatter` attribute, which can be used to set a
889
+ formatter which will only be used if no other formatter is set
890
+ (e.g. via `--formatter`). (Myron Marston)
891
+ * Support legacy colour definitions in `LegacyFormatterAdaptor`. (Jon Rowe)
892
+ * Migrate `execution_result` (exposed by metadata) from a hash to a
893
+ first-class object with appropriate attributes. `status` is now
894
+ stored and returned as a symbol rather than a string. It retains
895
+ deprecated hash behavior for backwards compatibility. (Myron Marston)
896
+ * Provide console code helper for formatters. (Jon Rowe)
897
+ * Use raw ruby hashes for the metadata hashes rather than a subclass of
898
+ a hash. Computed metadata entries are now computed in advance rather
899
+ than being done lazily on first access. (Myron Marston)
900
+ * Add `:block` metadata entry to the example metadata, bringing
901
+ parity with `:block` in the example group metadata. (Myron Marston)
902
+ * Add `fspecify` and `fexample` as aliases of `specify` and `example`
903
+ with `:focus => true` metadata for parity with `fit`. (Myron Marston)
904
+ * Add legacy support for `colorize_summary`. (Jon Rowe)
905
+ * Restructure runner so it can be more easily customized in a subclass
906
+ for an alternate runner. (Ben Hoskings)
907
+ * Document `RSpec::Core::ConfigurationOptions` as an officially
908
+ supported public API. (Myron Marston)
909
+ * Add `--deprecation-out` CLI option which directs deprecation warnings
910
+ to the named file. (Myron Marston)
911
+ * Minitest 5 compatability for `expect_with :stdlib` (now available as
912
+ `expect_with :minitest`). (Xavier Shay)
913
+ * Reporter now notifies formatters of the load time of RSpec and your
914
+ specs via `StartNotification` and `SummaryNotification`. (Jon Rowe)
915
+ * Add `disable_monkey_patching!` config option that disables all monkey
916
+ patching from whatever pieces of RSpec you use. (Alexey Fedorov)
917
+ * Add `Pathname` support for setting all output streams. (Aaron Kromer)
918
+ * Add `config.define_derived_metadata`, which can be used to apply
919
+ additional metadata to all groups or examples that match a given
920
+ filter. (Myron Marston)
921
+ * Provide formatted and colorized backtraces via `FailedExampleNotification`
922
+ and send `PendingExampleFixedNotifications` when the error is due to a
923
+ passing spec you expect to fail. (Jon Rowe)
924
+ * Add `dump_profile` to formatter API to allow formatters to implement
925
+ support for `--profile`. (Jon Rowe)
926
+ * Allow colourising text via `ConsoleCodes` with RSpec 'states'
927
+ (e.g. `:success`, `:failure`) rather than direct colour codes. (Jon Rowe)
928
+ * Expose `fully_formatted` methods off the formatter notification objects
929
+ that make it easy for a custom formatter to produce formatted output
930
+ like rspec-core's. (Myron Marston)
931
+
932
+ Bug Fixes:
933
+
934
+ * Fix `spec_helper.rb` file generated by `rspec --init` so that the
935
+ recommended settings correctly use the documentation formatter
936
+ when running one file. (Myron Marston)
937
+ * Fix ordering problem where descriptions were generated after
938
+ tearing down mocks, which resulted in unexpected exceptions.
939
+ (Bradley Schaefer, Aaron Kromer, Andrey Savchenko)
940
+ * Allow a symbol to be used as an implicit subject (e.g. `describe
941
+ :foo`). (Myron Marston)
942
+ * Prevent creating an isolated context (i.e. using `RSpec.describe`) when
943
+ already inside a context. There is no reason to do this, and it could
944
+ potentially cause unexpected bugs. (Xavier Shay)
945
+ * Fix shared example group scoping so that when two shared example
946
+ groups share the same name at different levels of nested contexts,
947
+ the one in the nearest context is used. (Myron Marston)
948
+ * Fix `--warnings` option so that it enables warnings immediately so
949
+ that it applies to files loaded by `--require`. (Myron Marston)
950
+ * Issue a warning when you set `config.deprecation_stream` too late for
951
+ it to take effect because the reporter has already been setup. (Myron Marston)
952
+ * Add the full `RSpec::Core::Example` interface to the argument yielded
953
+ to `around` hooks. (Myron Marston)
954
+ * Line number always takes precendence when running specs with filters.
955
+ (Xavier Shay)
956
+ * Ensure :if and :unless metadata filters are treated as a special case
957
+ and are always in-effect. (Bradley Schaefer)
958
+ * Ensure the currently running installation of RSpec is used when
959
+ the rake task shells out to `rspec`, even if a newer version is also
960
+ installed. (Postmodern)
961
+ * Using a legacy formatter as default no longer causes an infinite loop.
962
+ (Xavier Shay)
963
+
964
+ ### 3.0.0.beta2 / 2014-02-17
965
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0.beta1...v3.0.0.beta2)
966
+
967
+ Breaking Changes for 3.0.0:
968
+
969
+ * Make `mock_with` option more strict. Strings are no longer supported
970
+ (e.g. `mock_with "mocha"`) -- use a symbol instead. Also, unrecognized
971
+ values will now result in an error rather than falling back to the
972
+ null mocking adapter. If you want to use the null mocking adapter,
973
+ use `mock_with :nothing` (as has been documented for a long time).
974
+ (Myron Marston)
975
+ * Remove support for overriding RSpec's built-in `:if` and `:unless`
976
+ filters. (Ashish Dixit)
977
+ * Custom formatters are now required to call
978
+ `RSpec::Core::Formatters.register(formatter_class, *notifications)`
979
+ where `notifications` is the list of events the formatter wishes to
980
+ be notified about. Notifications are handled by methods matching the
981
+ names on formatters. This allows us to add or remove notifications
982
+ without breaking existing formatters. (Jon Rowe)
983
+ * Change arguments passed to formatters. Rather than passing multiple
984
+ arguments (which limits are ability to add additional arguments as
985
+ doing so would break existing formatters), we now pass a notification
986
+ value object that exposes the same data via attributes. This will
987
+ allow us to add new bits of data to a notification event without
988
+ breaking existing formatters. (Jon Rowe)
989
+ * Remove support for deprecated `:alias` option for
990
+ `RSpec.configuration.add_setting`. (Myron Marston)
991
+ * Remove support for deprecated `RSpec.configuration.requires = [...]`.
992
+ (Myron Marston)
993
+ * Remove support for deprecated `--formatter` CLI option. (Myron Marston)
994
+ * Remove support for deprecated `--configure` CLI option. (Myron Marston)
995
+ * Remove support for deprecated `RSpec::Core::RakeTask#spec_opts=`.
996
+ (Myron Marston)
997
+ * An example group level `pending` block or `:pending` metadata now executes
998
+ the example and cause a failure if it passes, otherwise it will be pending if
999
+ it fails. The old "never run" behaviour is still used for `xexample`, `xit`,
1000
+ and `xspecify`, or via a new `skip` method or `:skip` metadata option.
1001
+ (Xavier Shay)
1002
+ * After calling `pending` inside an example, the remainder of the example will
1003
+ now be run. If it passes a failure is raised, otherwise the example is marked
1004
+ pending. The old "never run" behaviour is provided a by a new `skip` method.
1005
+ (Xavier Shay)
1006
+ * Pending blocks inside an example have been removed as a feature with no
1007
+ direct replacement. Use `skip` or `pending` without a block. (Xavier Shay)
1008
+ * Pending statement is no longer allowed in `before(:all)` hooks. Use `skip`
1009
+ instead. (Xavier Shay)
1010
+ * Remove `show_failures_in_pending_blocks` configuration option. (Xavier Shay)
1011
+ * Remove support for specifying the documentation formatter using
1012
+ 's', 'n', 'spec' or 'nested'. (Jon Rowe)
1013
+
1014
+ Enhancements:
1015
+
1016
+ * Add example run time to JSON formatter output. (Karthik Kastury)
1017
+ * Add more suggested settings to the files generated by
1018
+ `rspec --init`. (Myron Marston)
1019
+ * Add `config.alias_example_group_to`, which can be used to define a
1020
+ new method that defines an example group with the provided metadata.
1021
+ (Michi Huber)
1022
+ * Add `xdescribe` and `xcontext` as shortcuts to skip an example group.
1023
+ (Myron Marston)
1024
+ * Add `fdescribe` and `fcontext` as shortcuts to focus an example group.
1025
+ (Myron Marston)
1026
+ * Don't autorun specs via `#at_exit` by default. `require 'rspec/autorun'`
1027
+ is only needed when running specs via `ruby`, as it always has been.
1028
+ Running specs via `rake` or `rspec` are both unaffected. (Ben Hoskings)
1029
+ * Add `expose_dsl_globally` config option, defaulting to true. When disabled
1030
+ it will remove the monkey patches rspec-core adds to `main` and `Module`
1031
+ (e.g. `describe`, `shared_examples_for`, etc). (Jon Rowe)
1032
+ * Expose RSpec DSL entry point methods (`describe`,
1033
+ `shared_examples_for`, etc) on the `RSpec` constant. Intended for use
1034
+ when `expose_dsl_globally` is set to `false`. (Jon Rowe)
1035
+ * For consistency, expose all example group aliases (including
1036
+ `context`) on the `RSpec` constant. If `expose_dsl_globally` is set to
1037
+ `true`, also expose them on `main` and `Module`. Historically, only `describe`
1038
+ was exposed. (Jon Rowe, Michi Huber)
1039
+ * Add hook scope `:example` as an alias for `:each`, and `:context` as an alias
1040
+ for `:all`. (John Feminella)
1041
+
1042
+ Bug Fixes:
1043
+
1044
+ * Fix failure (undefined method `path`) in end-of-run summary
1045
+ when `raise_errors_for_deprecations!` is configured. (Myron Marston)
1046
+ * Issue error when attempting to use `-i` or `--I` on command line,
1047
+ too close to `-I` to be considered short hand for `--init`. (Jon Rowe)
1048
+ * Prevent adding formatters to an output target if the same
1049
+ formatter has already been added to that output. (Alex Peattie)
1050
+ * Allow a matcher-generated example description to be used when
1051
+ the example is pending. (Myron Marston)
1052
+ * Ensure the configured `failure_exit_code` is used by the rake
1053
+ task when there is a failure. (Jon Rowe)
1054
+ * Restore behaviour whereby system exclusion filters take priority over working
1055
+ directory (was broken in beta1). (Jon Rowe)
1056
+ * Prevent RSpec mangling file names that have substrings containing `line_number`
1057
+ or `default_path`. (Matijs van Zuijlen)
1058
+ * Fix failure line detection so that it handles relative file paths
1059
+ (which can happen when running specs through `ruby` using `rspec/autorun`).
1060
+ (Myron Marston, #1829)
1061
+
1062
+ ### 3.0.0.beta1 / 2013-11-07
1063
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.1...v3.0.0.beta1)
1064
+
1065
+ Breaking Changes for 3.0.0:
1066
+
1067
+ * Remove explicit support for 1.8.6. (Jon Rowe)
1068
+ * Remove `RSpec::Core::ExampleGroup#example` and
1069
+ `RSpec::Core::ExampleGroup#running_example` methods. If you need
1070
+ access to the example (e.g. to get its metadata), use a block arg
1071
+ instead. (David Chelimsky)
1072
+ * Remove `TextMateFormatter`, it has been moved to `rspec-tmbundle`.
1073
+ (Aaron Kromer)
1074
+ * Remove RCov integration. (Jon Rowe)
1075
+ * Remove deprecated support for RSpec 1 constructs (Myron Marston):
1076
+ * The `Spec` and `Rspec` constants (rather than `RSpec`).
1077
+ * `Spec::Runner.configure` rather than `RSpec.configure`.
1078
+ * `Rake::SpecTask` rather than `RSpec::Core::RakeTask`.
1079
+ * Remove deprecated support for `share_as`. (Myron Marston)
1080
+ * Remove `--debug` option (and corresponding option on
1081
+ `RSpec::Core::Configuration`). Instead, use `-r<debugger gem name>` to
1082
+ load whichever debugger gem you wish to use (e.g. `ruby-debug`,
1083
+ `debugger`, or `pry`). (Myron Marston)
1084
+ * Extract Autotest support to a seperate gem. (Jon Rowe)
1085
+ * Raise an error when a `let` or `subject` declaration is
1086
+ accessed in a `before(:all)` or `after(:all)` hook. (Myron Marston)
1087
+ * Extract `its` support to a separate gem. (Peter Alfvin)
1088
+ * Disallow use of a shared example group from sibling contexts, making them
1089
+ fully isolated. 2.14 and 2.99 allowed this but printed a deprecation warning.
1090
+ (Jon Rowe)
1091
+ * Remove `RSpec::Core::Configuration#output` and
1092
+ `RSpec::Core::Configuration#out` aliases of
1093
+ `RSpec::Core::Configuration#output_stream`. (Myron Marston)
1094
+ * Remove legacy ordering APIs deprecated in 2.99.0.beta1. (Myron
1095
+ Marston)
1096
+
1097
+ Enhancements:
1098
+
1099
+ * Replace unmaintained syntax gem with coderay gem. (Xavier Shay)
1100
+ * Times in profile output are now bold instead of `failure_color`.
1101
+ (Matthew Boedicker)
1102
+ * Add `--no-fail-fast` command line option. (Gonzalo Rodríguez-Baltanás Díaz)
1103
+ * Runner now considers the local system ip address when running under Drb.
1104
+ (Adrian CB)
1105
+ * JsonFormatter now includes `--profile` information. (Alex / @MasterLambaster)
1106
+ * Always treat symbols passed as metadata args as hash
1107
+ keys with true values. RSpec 2 supported this with the
1108
+ `treat_symbols_as_metadata_keys_with_true_values` but
1109
+ now this behavior is always enabled. (Myron Marston)
1110
+ * Add `--dry-run` option, which prints the formatter output
1111
+ of your suite without running any examples or hooks.
1112
+ (Thomas Stratmann, Myron Marston)
1113
+ * Document the configuration options and default values in the `spec_helper.rb`
1114
+ file that is generated by RSpec. (Parker Selbert)
1115
+ * Give generated example group classes a friendly name derived
1116
+ from the docstring, rather than something like "Nested_2".
1117
+ (Myron Marston)
1118
+ * Avoid affecting randomization of user code when shuffling
1119
+ examples so that users can count on their own seeds
1120
+ working. (Travis Herrick)
1121
+ * Ordering is no longer a single global property of the test suite.
1122
+ Each group can pick an ordering using `:order` metadata. (Andy
1123
+ Lindeman, Sam Phippen, Myron Marston)
1124
+ * Allow named custom ordering strategies to be registered, which can
1125
+ then be used on individual example groups. (Andy Lindeman, Sam
1126
+ Phippen, Myron Marston)
1127
+
1128
+ Deprecations:
1129
+
1130
+ * `treat_symbols_as_metadata_keys_with_true_values` is deprecated and no
1131
+ longer has an affect now that the behavior it enabled is always
1132
+ enabled. (Myron Marston)
1133
+
1134
+ ### 2.99.2 / 2014-08-19
1135
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.1...v2.99.2)
1136
+
1137
+ Enhancements:
1138
+
1139
+ * Improve deprecation warning for RSpec 3 change in `describe <a symbol>`
1140
+ behavior. (Jon Rowe, #1667)
1141
+
1142
+ ### 2.99.1 / 2014-06-19
1143
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0...v2.99.1)
1144
+
1145
+ Bug Fixes:
1146
+
1147
+ * Add missing deprecation warning for when `RSpec::Core::Runner` is used
1148
+ multiple times in the same process. In 2.x RSpec's global state was
1149
+ automatically cleared between runs but in 3.0 you need to call `RSpec.reset`
1150
+ manually in these situations. (Sam Phippen, #1587)
1151
+ * Prevent deprecation being accidentally issues when doubles used with `be_`
1152
+ matchers due to automatically generated descriptions. (Jon Rowe, #1573)
1153
+ * Load `rspec/core` when loading `rspec/core/rake_task` to ensure we can
1154
+ issue deprecations correctly. (Jon Rowe, #1612)
1155
+
1156
+ ### 2.99.0 / 2014-06-01
1157
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.rc1...v2.99.0)
1158
+
1159
+ Bug Fixes:
1160
+
1161
+ * Fix `BaseTextFormatter` so that it does not re-close a closed output
1162
+ stream. (Myron Marston)
1163
+ * Use `RSpec::Configuration#backtrace_exclusion_patterns` rather than the
1164
+ deprecated `RSpec::Configuration#backtrace_clean_patterns` when mocking
1165
+ with rr. (David Dollar)
1166
+
1167
+ ### 2.99.0.rc1 / 2014-05-18
1168
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.beta2...v2.99.0.rc1)
1169
+
1170
+ Enhancements:
1171
+
1172
+ * Add `--deprecation-out` CLI option which directs deprecation warnings
1173
+ to the named file. (Myron Marston)
1174
+ * Backport support for `skip` in metadata to skip execution of an example.
1175
+ (Xavier Shay, #1472)
1176
+ * Add `Pathname` support for setting all output streams. (Aaron Kromer)
1177
+ * Add `test_unit` and `minitest` expectation frameworks. (Aaron Kromer)
1178
+
1179
+ Deprecations:
1180
+
1181
+ * Deprecate `RSpec::Core::Pending::PendingDeclaredInExample`, use
1182
+ `SkipDeclaredInExample` instead. (Xavier Shay)
1183
+ * Issue a deprecation when `described_class` is accessed from within
1184
+ a nested `describe <SomeClass>` example group, since `described_class`
1185
+ will return the innermost described class in RSpec 3 rather than the
1186
+ outermost described class, as it behaved in RSpec 2. (Myron Marston)
1187
+ * Deprecate `RSpec::Core::FilterManager::DEFAULT_EXCLUSIONS`,
1188
+ `RSpec::Core::FilterManager::STANDALONE_FILTERS` and use of
1189
+ `#empty_without_conditional_filters?` on those filters. (Sergey Pchelincev)
1190
+ * Deprecate `RSpec::Core::Example#options` in favor of
1191
+ `RSpec::Core::Example#metadata`. (Myron Marston)
1192
+ * Issue warning when passing a symbol or hash to `describe` or `context`
1193
+ as the first argument. In RSpec 2.x this would be treated as metadata
1194
+ but in RSpec 3 it'll be treated as the described object. To continue
1195
+ having it treated as metadata, pass a description before the symbol or
1196
+ hash. (Myron Marston)
1197
+ * Deprecate `RSpec::Core::BaseTextFormatter::VT100_COLORS` and
1198
+ `RSpec::Core::BaseTextFormatter::VT100_COLOR_CODES` in favour
1199
+ of `RSpec::Core::BaseTextFormatter::ConsoleCodes::VT100_CODES` and
1200
+ `RSpec::Core::BaseTextFormatter::ConsoleCodes::VT100_CODE_VALUES`.
1201
+ (Jon Rowe)
1202
+ * Deprecate `RSpec::Core::ExampleGroup.display_name` in favor of
1203
+ `RSpec::Core::ExampleGroup.description`. (Myron Marston)
1204
+ * Deprecate `RSpec::Core::ExampleGroup.describes` in favor of
1205
+ `RSpec::Core::ExampleGroup.described_class`. (Myron Marston)
1206
+ * Deprecate `RSpec::Core::ExampleGroup.alias_example_to` in favor of
1207
+ `RSpec::Core::Configuration#alias_example_to`. (Myron Marston)
1208
+ * Deprecate `RSpec::Core::ExampleGroup.alias_it_behaves_like_to` in favor
1209
+ of `RSpec::Core::Configuration#alias_it_behaves_like_to`. (Myron Marston)
1210
+ * Deprecate `RSpec::Core::ExampleGroup.focused` in favor of
1211
+ `RSpec::Core::ExampleGroup.focus`. (Myron Marston)
1212
+ * Add deprecation warning for `config.filter_run :focused` since
1213
+ example aliases `fit` and `focus` will no longer include
1214
+ `:focused` metadata but will continue to include `:focus`. (Myron Marston)
1215
+ * Deprecate filtering by `:line_number` (e.g. `--line-number` from the
1216
+ CLI). Use location filtering instead. (Myron Marston)
1217
+ * Deprecate `--default_path` as an alternative to `--default-path`. (Jon Rowe)
1218
+ * Deprecate `RSpec::Core::Configuration#warnings` in favor of
1219
+ `RSpec::Core::Configuration#warnings?`. (Myron Marston)
1220
+ * Deprecate `share_examples_for` in favor of `shared_examples_for` or
1221
+ just `shared_examples`. (Myron Marston)
1222
+ * Deprecate `RSpec::Core::CommandLine` in favor of
1223
+ `RSpec::Core::Runner`. (Myron Marston)
1224
+ * Deprecate `#color_enabled`, `#color_enabled=` and `#color?` in favour of
1225
+ `#color`, `#color=` and `#color_enabled? output`. (Jon Rowe)
1226
+ * Deprecate `#filename_pattern` in favour of `#pattern`. (Jon Rowe)
1227
+ * Deprecate `#backtrace_cleaner` in favour of `#backtrace_formatter`. (Jon Rowe)
1228
+ * Deprecate mutating `RSpec::Configuration#formatters`. (Jon Rowe)
1229
+ * Deprecate `stdlib` as an available expectation framework in favour of
1230
+ `test_unit` and `minitest`. (Aaron Kromer)
1231
+
1232
+ Bug Fixes:
1233
+
1234
+ * Issue a warning when you set `config.deprecation_stream` too late for
1235
+ it to take effect because the reporter has already been setup. (Myron Marston)
1236
+ * `skip` with a block should not execute the block. (Xavier Shay)
1237
+
1238
+ ### 2.99.0.beta2 / 2014-02-17
1239
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.beta1...v2.99.0.beta2)
1240
+
1241
+ Enhancements:
1242
+
1243
+ * Add `is_expected` for one-liners that read well with the
1244
+ `expect`-based syntax. `is_expected` is simply defined as
1245
+ `expect(subject)` and can be used in an expression like:
1246
+ `it { is_expected.to read_well }`. (Myron Marston)
1247
+ * Backport `skip` from RSpec 3, which acts like `pending` did in RSpec 2
1248
+ when not given a block, since the behavior of `pending` is changing in
1249
+ RSpec 3. (Xavier Shay)
1250
+
1251
+ Deprecations:
1252
+
1253
+ * Deprecate inexact `mock_with` config options. RSpec 3 will only support
1254
+ the exact symbols `:rspec`, `:mocha`, `:flexmock`, `:rr` or `:nothing`
1255
+ (or any module that implements the adapter interface). RSpec 2 did
1256
+ fuzzy matching but this will not be supported going forward.
1257
+ (Myron Marston)
1258
+ * Deprecate `show_failures_in_pending_blocks` config option. To achieve
1259
+ the same behavior as the option enabled, you can use a custom
1260
+ formatter instead. (Xavier Shay)
1261
+ * Add a deprecation warning for the fact that the behavior of `pending`
1262
+ is changing in RSpec 3 -- rather than skipping the example (as it did
1263
+ in 2.x when no block was provided), it will run the example and mark
1264
+ it as failed if no exception is raised. Use `skip` instead to preserve
1265
+ the old behavior. (Xavier Shay)
1266
+ * Deprecate 's', 'n', 'spec' and 'nested' as aliases for documentation
1267
+ formatter. (Jon Rowe)
1268
+ * Deprecate `RSpec::Core::Reporter#abort` in favor of
1269
+ `RSpec::Core::Reporter#finish`. (Jon Rowe)
1270
+
1271
+ Bug Fixes:
1272
+
1273
+ * Fix failure (undefined method `path`) in end-of-run summary
1274
+ when `raise_errors_for_deprecations!` is configured. (Myron Marston)
1275
+ * Fix issue were overridding spec ordering from the command line wasn't
1276
+ fully recognised interally. (Jon Rowe)
1277
+
1278
+ ### 2.99.0.beta1 / 2013-11-07
1279
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.7...v2.99.0.beta1)
1280
+
1281
+ Enhancements
1282
+
1283
+ * Block-based DSL methods that run in the context of an example
1284
+ (`it`, `before(:each)`, `after(:each)`, `let` and `subject`)
1285
+ now yield the example as a block argument. (David Chelimsky)
1286
+ * Warn when the name of more than one example group is submitted to
1287
+ `include_examples` and it's aliases. (David Chelimsky)
1288
+ * Add `expose_current_running_example_as` config option for
1289
+ use during the upgrade process when external gems use the
1290
+ deprecated `RSpec::Core::ExampleGroup#example` and
1291
+ `RSpec::Core::ExampleGroup#running_example` methods. (Myron Marston)
1292
+ * Limit spamminess of deprecation messages. (Bradley Schaefer, Loren Segal)
1293
+ * Add `config.raise_errors_for_deprecations!` option, which turns
1294
+ deprecations warnings into errors to surface the full backtrace
1295
+ of the call site. (Myron Marston)
1296
+
1297
+ Deprecations
1298
+
1299
+ * Deprecate `RSpec::Core::ExampleGroup#example` and
1300
+ `RSpec::Core::ExampleGroup#running_example` methods. If you need
1301
+ access to the example (e.g. to get its metadata), use a block argument
1302
+ instead. (David Chelimsky)
1303
+ * Deprecate use of `autotest/rspec2` in favour of `rspec-autotest`. (Jon Rowe)
1304
+ * Deprecate RSpec's built-in debugger support. Use a CLI option like
1305
+ `-rruby-debug` (for the ruby-debug gem) or `-rdebugger` (for the
1306
+ debugger gem) instead. (Myron Marston)
1307
+ * Deprecate `RSpec.configuration.treat_symbols_as_metadata_keys_with_true_values = false`.
1308
+ RSpec 3 will not support having this option set to `false`. (Myron Marston)
1309
+ * Deprecate accessing a `let` or `subject` declaration in
1310
+ a `after(:all)` hook. (Myron Marston, Jon Rowe)
1311
+ * Deprecate built-in `its` usage in favor of `rspec-its` gem due to planned
1312
+ removal in RSpec 3. (Peter Alfvin)
1313
+ * Deprecate `RSpec::Core::PendingExampleFixedError` in favor of
1314
+ `RSpec::Core::Pending::PendingExampleFixedError`. (Myron Marston)
1315
+ * Deprecate `RSpec::Core::Configuration#out` and
1316
+ `RSpec::Core::Configuration#output` in favor of
1317
+ `RSpec::Core::Configuration#output_stream`. (Myron Marston)
1318
+ * Deprecate legacy ordering APIs.
1319
+ * You should use `register_ordering(:global)` instead of these:
1320
+ * `RSpec::Core::Configuration#order_examples`
1321
+ * `RSpec::Core::Configuration#order_groups`
1322
+ * `RSpec::Core::Configuration#order_groups_and_examples`
1323
+ * These are deprecated with no replacement because in RSpec 3
1324
+ ordering is a property of individual example groups rather than
1325
+ just a global property of the entire test suite:
1326
+ * `RSpec::Core::Configuration#order`
1327
+ * `RSpec::Core::Configuration#randomize?`
1328
+ * `--order default` is deprecated in favor of `--order defined`
1329
+ (Myron Marston)
1330
+
1331
+ ### 2.14.8 / 2014-02-27
1332
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.7...v2.14.8)
1333
+
1334
+ Bug fixes:
1335
+
1336
+ * Fix regression with the `textmateformatter` that prevented backtrace links
1337
+ from being clickable. (Stefan Daschek)
1338
+
1339
+ ### 2.14.7 / 2013-10-29
1340
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.6...v2.14.7)
1341
+
1342
+ Bug fixes:
1343
+
1344
+ * Fix regression in 2.14.6 that broke the Fivemat formatter.
1345
+ It depended upon either
1346
+ `example.execution_result[:exception].pending_fixed?` (which
1347
+ was removed in 2.14.6 to fix an issue with frozen error objects)
1348
+ or `RSpec::Core::PendingExampleFixedError` (which was renamed
1349
+ to `RSpec::Core::Pending::PendingExampleFixedError` in 2.8.
1350
+ This fix makes a constant alias for the old error name.
1351
+ (Myron Marston)
1352
+
1353
+ ### 2.14.6 / 2013-10-15
1354
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.5...v2.14.6)
1355
+
1356
+ Bug fixes:
1357
+
1358
+ * Format stringified numbers correctly when mathn library is loaded.
1359
+ (Jay Hayes)
1360
+ * Fix an issue that prevented the use of frozen error objects. (Lars
1361
+ Gierth)
1362
+
1363
+ ### 2.14.5 / 2013-08-13
1364
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.4...v2.14.5)
1365
+
1366
+ Bug fixes:
1367
+
1368
+ * Fix a `NoMethodError` that was being raised when there were no shared
1369
+ examples or contexts declared and `RSpec.world.reset` is invoked.
1370
+ (thepoho, Jon Rowe, Myron Marston)
1371
+ * Fix a deprecation warning that was being incorrectly displayed when
1372
+ `shared_examples` are declared at top level in a `module` scope.
1373
+ (Jon Rowe)
1374
+ * Fix after(:all) hooks so consecutive (same context) scopes will run even if
1375
+ one raises an error. (Jon Rowe, Trejkaz)
1376
+ * JsonFormatter no longer dies if `dump_profile` isn't defined (Alex / @MasterLambaster, Jon Rowe)
1377
+
1378
+ ### 2.14.4 / 2013-07-21
1379
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.3...v2.14.4)
1380
+
1381
+ Bug fixes
1382
+
1383
+ * Fix regression in 2.14: ensure configured requires (via `-r` option)
1384
+ are loaded before spec files are loaded. This allows the spec files
1385
+ to programatically change the file pattern (Jon Rowe).
1386
+ * Autoload `RSpec::Mocks` and `RSpec::Expectations` when referenced if
1387
+ they are not already loaded (`RSpec::Matches` has been autoloaded
1388
+ for a while). In the `rspec` gem, we changed it recently to stop
1389
+ loading `rspec/mocks` and `rspec/expectations` by default, as some
1390
+ users reported problems where they were intending to use mocha,
1391
+ not rspec-mocks, but rspec-mocks was loaded and causing a conflict.
1392
+ rspec-core loads mocks and expectations at the appropriate time, so
1393
+ it seemed like a safe change -- but caused a problem for some authors
1394
+ of libraries that integrate with RSpec. This fixes that problem.
1395
+ (Myron Marston)
1396
+ * Gracefully handle a command like `rspec --profile path/to/spec.rb`:
1397
+ the `path/to/spec.rb` arg was being wrongly treated as the `profile`
1398
+ integer arg, which got cast `0` using `to_i`, causing no profiled
1399
+ examples to be printed. (Jon Rowe)
1400
+
1401
+ ### 2.14.3 / 2013-07-13
1402
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.2...v2.14.3)
1403
+
1404
+ Bug fixes
1405
+
1406
+ * Fix deprecation notices issued from `RSpec::Core::RakeTask` so
1407
+ that they work properly when all of rspec-core is not loaded.
1408
+ (This was a regression in 2.14) (Jon Rowe)
1409
+
1410
+ ### 2.14.2 / 2013-07-09
1411
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.1...v2.14.2)
1412
+
1413
+ Bug fixes
1414
+
1415
+ * Fix regression caused by 2.14.1 release: formatters that
1416
+ report that they `respond_to?` a notification, but had
1417
+ no corresponding method would raise an error when registered.
1418
+ The new fix is to just implement `start` on the deprecation
1419
+ formatter to fix the original JRuby/ruby-debug issue.
1420
+ (Jon Rowe)
1421
+
1422
+ ### 2.14.1 / 2013-07-08
1423
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.0...v2.14.1)
1424
+
1425
+ Bug fixes
1426
+
1427
+ * Address deprecation formatter failure when using `ruby-debug` on
1428
+ JRuby: fix `RSpec::Core::Reporter` to not send a notification
1429
+ when the formatter's implementation of the notification method
1430
+ comes from `Kernel` (Alex Portnov, Jon Rowe).
1431
+
1432
+ ### 2.14.0 / 2013-07-06
1433
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.0.rc1...v2.14.0)
1434
+
1435
+ Enhancements
1436
+
1437
+ * Apply focus to examples defined with `fit` (equivalent of
1438
+ `it "description", focus: true`) (Michael de Silva)
1439
+
1440
+ Bug fix
1441
+
1442
+ * Ensure methods defined by `let` take precedence over others
1443
+ when there is a name collision (e.g. from an included module).
1444
+ (Jon Rowe, Andy Lindeman and Myron Marston)
1445
+
1446
+ ### 2.14.0.rc1 / 2013-05-27
1447
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.13.1...v2.14.0.rc1)
1448
+
1449
+ Enhancements
1450
+
1451
+ * Improved Windows detection inside Git Bash, for better `--color` handling.
1452
+ * Add profiling of the slowest example groups to `--profile` option.
1453
+ The output is sorted by the slowest average example groups.
1454
+ * Don't show slow examples if there's a failure and both `--fail-fast`
1455
+ and `--profile` options are used (Paweł Gościcki).
1456
+ * Rather than always adding `spec` to the load path, add the configured
1457
+ `--default-path` to the load path (which defaults to `spec`). This
1458
+ better supports folks who choose to put their specs in a different
1459
+ directory (John Feminella).
1460
+ * Add some logic to test time duration precision. Make it a
1461
+ function of time, dropping precision as the time increases. (Aaron Kromer)
1462
+ * Add new `backtrace_inclusion_patterns` config option. Backtrace lines
1463
+ that match one of these patterns will _always_ be included in the
1464
+ backtrace, even if they match an exclusion pattern, too (Sam Phippen).
1465
+ * Support ERB trim mode using the `-` when parsing `.rspec` as ERB
1466
+ (Gabor Garami).
1467
+ * Give a better error message when let and subject are called without a block.
1468
+ (Sam Phippen).
1469
+ * List the precedence of `.rspec-local` in the configuration documentation
1470
+ (Sam Phippen)
1471
+ * Support `{a,b}` shell expansion syntax in `--pattern` option
1472
+ (Konstantin Haase).
1473
+ * Add cucumber documentation for --require command line option
1474
+ (Bradley Schaefer)
1475
+ * Expose configuration options via config:
1476
+ * `config.libs` returns the libs configured to be added onto the load path
1477
+ * `full_backtrace?` returns the state of the backtrace cleaner
1478
+ * `debug?` returns true when the debugger is loaded
1479
+ * `line_numbers` returns the line numbers we are filtering by (if any)
1480
+ * `full_description` returns the RegExp used to filter descriptions
1481
+ (Jon Rowe)
1482
+ * Add setters for RSpec.world and RSpec.configuration (Alex Soulim)
1483
+ * Configure ruby's warning behaviour with `--warnings` (Jon Rowe)
1484
+ * Fix an obscure issue on old versions of `1.8.7` where `Time.dup` wouldn't
1485
+ allow access to `Time.now` (Jon Rowe)
1486
+ * Make `shared_examples_for` context aware, so that keys may be safely reused
1487
+ in multiple contexts without colliding. (Jon Rowe)
1488
+ * Add a configurable `deprecation_stream` (Jon Rowe)
1489
+ * Publish deprecations through a formatter (David Chelimsky)
1490
+
1491
+ Bug fixes
1492
+
1493
+ * Make JSON formatter behave the same when it comes to `--profile` as
1494
+ the text formatter (Paweł Gościcki).
1495
+ * Fix named subjects so that if an inner group defines a method that
1496
+ overrides the named method, `subject` still retains the originally
1497
+ declared value (Myron Marston).
1498
+ * Fix random ordering so that it does not cause `rand` in examples in
1499
+ nested sibling contexts to return the same value (Max Shytikov).
1500
+ * Use the new `backtrace_inclusion_patterns` config option to ensure
1501
+ that folks who develop code in a directory matching one of the default
1502
+ exclusion patterns (e.g. `gems`) still get the normal backtrace
1503
+ filtering (Sam Phippen).
1504
+ * Fix ordering of `before` hooks so that `before` hooks declared in
1505
+ `RSpec.configure` run before `before` hooks declared in a shared
1506
+ context (Michi Huber and Tejas Dinkar).
1507
+ * Fix `Example#full_description` so that it gets filled in by the last
1508
+ matcher description (as `Example#description` already did) when no
1509
+ doc string has been provided (David Chelimsky).
1510
+ * Fix the memoized methods (`let` and `subject`) leaking `define_method`
1511
+ as a `public` method. (Thomas Holmes and Jon Rowe) (#873)
1512
+ * Fix warnings coming from the test suite. (Pete Higgins)
1513
+
1514
+ Deprecations
1515
+
1516
+ * Deprecate `Configuration#backtrace_clean_patterns` in favor of
1517
+ `Configuration#backtrace_exclusion_patterns` for greater consistency
1518
+ and symmetry with new `backtrace_inclusion_patterns` config option
1519
+ (Sam Phippen).
1520
+ * Deprecate `Configuration#requires=` in favor of using ruby's
1521
+ `require`. Requires specified by the command line can still be
1522
+ accessed by the `Configuration#require` reader. (Bradley Schaefer)
1523
+ * Deprecate calling `SharedExampleGroups` defined across sibling contexts
1524
+ (Jon Rowe)
1525
+
1526
+ ### 2.13.1 / 2013-03-12
1527
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.13.0...v2.13.1)
1528
+
1529
+ Bug fixes
1530
+
1531
+ * Use hook classes as proxies rather than extending hook blocks to support
1532
+ lambdas for before/after/around hooks. (David Chelimsky)
1533
+ * Fix regression in 2.13.0 that caused confusing behavior when overriding
1534
+ a named subject with an unnamed subject in an inner group and then
1535
+ referencing the outer group subject's name. The fix for this required
1536
+ us to disallow using `super` in a named subject (which is confusing,
1537
+ anyway -- named subjects create 2 methods, so which method on the
1538
+ parent example group are you `super`ing to?) but `super` in an unnamed
1539
+ subject continues to work (Myron Marston).
1540
+ * Do not allow a referenced `let` or `subject` in `before(:all)` to cause
1541
+ other `let` declarations to leak across examples (Myron Marston).
1542
+ * Work around odd ruby 1.9 bug with `String#match` that was triggered
1543
+ by passing it a regex from a `let` declaration. For more info, see
1544
+ http://bugs.ruby-lang.org/issues/8059 (Aaron Kromer).
1545
+ * Add missing `require 'set'` to `base_text_formatter.rb` (Tom
1546
+ Anderson).
1547
+
1548
+ Deprecations
1549
+
1550
+ * Deprecate accessing `let` or `subject` declarations in `before(:all)`.
1551
+ These were not intended to be called in a `before(:all)` hook, as
1552
+ they exist to define state that is reset between each example, while
1553
+ `before(:all)` exists to define state that is shared across examples
1554
+ in an example group (Myron Marston).
1555
+
1556
+ ### 2.13.0 / 2013-02-23
1557
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.12.2...v2.13.0)
1558
+
1559
+ Enhancements
1560
+
1561
+ * Allow `--profile` option to take a count argument that
1562
+ determines the number of slow examples to dump
1563
+ (Greggory Rothmeier).
1564
+ * Add `subject!` that is the analog to `let!`. It defines an
1565
+ explicit subject and sets a `before` hook that will invoke
1566
+ the subject (Zubin Henner).
1567
+ * Fix `let` and `subject` declaration so that `super`
1568
+ and `return` can be used in them, just like in a normal
1569
+ method. (Myron Marston)
1570
+ * Allow output colors to be configured individually.
1571
+ (Charlie Maffitt)
1572
+ * Always dump slow examples when `--profile` option is given,
1573
+ even when an example failed (Myron Marston).
1574
+
1575
+ Bug fixes
1576
+
1577
+ * Don't blow up when dumping error output for instances
1578
+ of anonymous error classes (Myron Marston).
1579
+ * Fix default backtrace filters so lines from projects
1580
+ containing "gems" in the name are not filtered, but
1581
+ lines from installed gems still are (Myron Marston).
1582
+ * Fix autotest command so that is uses double quotes
1583
+ rather than single quotes for windows compatibility
1584
+ (Jonas Tingeborn).
1585
+ * Fix `its` so that uses of `subject` in a `before` or `let`
1586
+ declaration in the parent group continue to reference the
1587
+ parent group's subject. (Olek Janiszewski)
1588
+
1589
+ ### 2.12.2 / 2012-12-13
1590
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.12.1...v2.12.2)
1591
+
1592
+ Bug fixes
1593
+
1594
+ * Fix `RSpec::Core::RakeTask` so that it is compatible with rake 0.8.7
1595
+ on ruby 1.8.7. We had accidentally broke it in the 2.12 release
1596
+ (Myron Marston).
1597
+ * Fix `RSpec::Core::RakeTask` so it is tolerant of the `Rspec` constant
1598
+ for backwards compatibility (Patrick Van Stee)
1599
+
1600
+ ### 2.12.1 / 2012-12-01
1601
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.12.0...v2.12.1)
1602
+
1603
+ Bug fixes
1604
+
1605
+ * Specs are run even if another at\_exit hook calls `exit`. This allows
1606
+ Test::Unit and RSpec to run together. (Suraj N. Kurapati)
1607
+ * Fix full doc string concatenation so that it handles the case of a
1608
+ method string (e.g. "#foo") being nested under a context string
1609
+ (e.g. "when it is tuesday"), so that we get "when it is tuesday #foo"
1610
+ rather than "when it is tuesday#foo". (Myron Marston)
1611
+ * Restore public API I unintentionally broke in 2.12.0:
1612
+ `RSpec::Core::Formatters::BaseFormatter#format_backtrce(backtrace, example)`
1613
+ (Myron Marston).
1614
+
1615
+ ### 2.12.0 / 2012-11-12
1616
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.11.1...v2.12.0)
1617
+
1618
+ Enhancements
1619
+
1620
+ * Add support for custom ordering strategies for groups and examples.
1621
+ (Myron Marston)
1622
+ * JSON Formatter (Alex Chaffee)
1623
+ * Refactor rake task internals (Sam Phippen)
1624
+ * Refactor HtmlFormatter (Pete Hodgson)
1625
+ * Autotest supports a path to Ruby that contains spaces (dsisnero)
1626
+ * Provide a helpful warning when a shared example group is redefined.
1627
+ (Mark Burns).
1628
+ * `--default_path` can be specified as `--default-line`. `--line_number` can be
1629
+ specified as `--line-number`. Hyphens are more idiomatic command line argument
1630
+ separators (Sam Phippen).
1631
+ * A more useful error message is shown when an invalid command line option is
1632
+ used (Jordi Polo).
1633
+ * Add `format_docstrings { |str| }` config option. It can be used to
1634
+ apply formatting rules to example group and example docstrings.
1635
+ (Alex Tan)
1636
+ * Add support for an `.rspec-local` options file. This is intended to
1637
+ allow individual developers to set options in a git-ignored file that
1638
+ override the common project options in `.rspec`. (Sam Phippen)
1639
+ * Support for mocha 0.13.0. (Andy Lindeman)
1640
+
1641
+ Bug fixes
1642
+
1643
+ * Remove override of `ExampleGroup#ancestors`. This is a core ruby method that
1644
+ RSpec shouldn't override. Instead, define `ExampleGroup#parent_groups`. (Myron
1645
+ Marston)
1646
+ * Limit monkey patching of shared example/context declaration methods
1647
+ (`shared_examples_for`, etc.) to just the objects that need it rather than
1648
+ every object in the system (Myron Marston).
1649
+ * Fix Metadata#fetch to support computed values (Sam Goldman).
1650
+ * Named subject can now be referred to from within subject block in a nested
1651
+ group (tomykaira).
1652
+ * Fix `fail_fast` so that it properly exits when an error occurs in a
1653
+ `before(:all) hook` (Bradley Schaefer).
1654
+ * Make the order spec files are loaded consistent, regardless of the
1655
+ order of the files returned by the OS or the order passed at
1656
+ the command line (Jo Liss and Sam Phippen).
1657
+ * Ensure instance variables from `before(:all)` are always exposed
1658
+ from `after(:all)`, even if an error occurs in `before(:all)`
1659
+ (Sam Phippen).
1660
+ * `rspec --init` no longer generates an incorrect warning about `--configure`
1661
+ being deprecated (Sam Phippen).
1662
+ * Fix pluralization of `1 seconds` (Odin Dutton)
1663
+ * Fix ANSICON url (Jarmo Pertman)
1664
+ * Use dup of Time so reporting isn't clobbered by examples that modify Time
1665
+ without properly restoring it. (David Chelimsky)
1666
+
1667
+ Deprecations
1668
+
1669
+ * `share_as` is no longer needed. `shared_context` and/or
1670
+ `RSpec::SharedContext` provide better mechanisms (Sam Phippen).
1671
+ * Deprecate `RSpec.configuration` with a block (use `RSpec.configure`).
1672
+
1673
+
1674
+ ### 2.11.1 / 2012-07-18
1675
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.11.0...v2.11.1)
1676
+
1677
+ Bug fixes
1678
+
1679
+ * Fix the way we autoload RSpec::Matchers so that custom matchers can be
1680
+ defined before rspec-core has been configured to definitely use
1681
+ rspec-expectations. (Myron Marston)
1682
+ * Fix typo in --help message printed for -e option. (Jo Liss)
1683
+ * Fix ruby warnings. (Myron Marston)
1684
+ * Ignore mock expectation failures when the example has already failed.
1685
+ Mock expectation failures have always been ignored in this situation,
1686
+ but due to my changes in 27059bf1 it was printing a confusing message.
1687
+ (Myron Marston).
1688
+
1689
+ ### 2.11.0 / 2012-07-07
1690
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.10.1...v2.11.0)
1691
+
1692
+ Enhancements
1693
+
1694
+ * Support multiple `--example` options. (Daniel Doubrovkine @dblock)
1695
+ * Named subject e.g. `subject(:article) { Article.new }`
1696
+ * see [http://blog.davidchelimsky.net/2012/05/13/spec-smell-explicit-use-of-subject/](http://blog.davidchelimsky.net/2012/05/13/spec-smell-explicit-use-of-subject/)
1697
+ for background.
1698
+ * thanks to Bradley Schaefer for suggesting it and Avdi Grimm for almost
1699
+ suggesting it.
1700
+ * `config.mock_with` and `config.expect_with` yield custom config object to a
1701
+ block if given
1702
+ * aids decoupling from rspec-core's configuation
1703
+ * `include_context` and `include_examples` support a block, which gets eval'd
1704
+ in the current context (vs the nested context generated by `it_behaves_like`).
1705
+ * Add `config.order = 'random'` to the `spec_helper.rb` generated by `rspec
1706
+ --init`.
1707
+ * Delay the loading of DRb (Myron Marston).
1708
+ * Limit monkey patching of `describe` onto just the objects that need it rather
1709
+ than every object in the system (Myron Marston).
1710
+
1711
+ Bug fixes
1712
+
1713
+ * Support alternative path separators. For example, on Windows, you can now do
1714
+ this: `rspec spec\subdir`. (Jarmo Pertman @jarmo)
1715
+ * When an example raises an error and an after or around hook does as
1716
+ well, print out the hook error. Previously, the error was silenced and
1717
+ the user got no feedback about what happened. (Myron Marston)
1718
+ * `--require` and `-I` are merged among different configuration sources (Andy
1719
+ Lindeman)
1720
+ * Delegate to mocha methods instead of aliasing them in mocha adapter.
1721
+
1722
+ ### 2.10.1 / 2012-05-19
1723
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.10.0...v2.10.1)
1724
+
1725
+ Bug fixes
1726
+
1727
+ * `RSpec.reset` properly reinits configuration and world
1728
+ * Call `to_s` before `split` on exception messages that might not always be
1729
+ Strings (slyphon)
1730
+
1731
+ ### 2.10.0 / 2012-05-03
1732
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.9.0...v2.10.0)
1733
+
1734
+ Enhancements
1735
+
1736
+ * Add `prepend_before` and `append_after` hooks (preethiramdev)
1737
+ * intended for extension libs
1738
+ * restores rspec-1 behavior
1739
+ * Reporting of profiled examples (moro)
1740
+ * Report the total amount of time taken for the top slowest examples.
1741
+ * Report what percentage the slowest examples took from the total runtime.
1742
+
1743
+ Bug fixes
1744
+
1745
+ * Properly parse `SPEC_OPTS` options.
1746
+ * `example.description` returns the location of the example if there is no
1747
+ explicit description or matcher-generated description.
1748
+ * RDoc fixes (Grzegorz Świrski)
1749
+ * Do not modify example ancestry when dumping errors (Michael Grosser)
1750
+
1751
+ ### 2.9.0 / 2012-03-17
1752
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.8.0...v2.9.0)
1753
+
1754
+ Enhancements
1755
+
1756
+ * Support for "X minutes X seconds" spec run duration in formatter. (uzzz)
1757
+ * Strip whitespace from group and example names in doc formatter.
1758
+ * Removed spork-0.9 shim. If you're using spork-0.8.x, you'll need to upgrade
1759
+ to 0.9.0.
1760
+
1761
+ Bug fixes
1762
+
1763
+ * Restore `--full_backtrace` option
1764
+ * Ensure that values passed to `config.filter_run` are respected when running
1765
+ over DRb (using spork).
1766
+ * Ensure shared example groups are reset after a run (as example groups are).
1767
+ * Remove `rescue false` from calls to filters represented as Procs
1768
+ * Ensure `described_class` gets the closest constant (pyromaniac)
1769
+ * In "autorun", don't run the specs in the `at_exit` hook if there was an
1770
+ exception (most likely due to a SyntaxError). (sunaku)
1771
+ * Don't extend groups with modules already used to extend ancestor groups.
1772
+ * `its` correctly memoizes nil or false values (Yamada Masaki)
1773
+
1774
+ ### 2.8.0 / 2012-01-04
1775
+
1776
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.8.0.rc2...v2.8.0)
1777
+
1778
+ Bug fixes
1779
+
1780
+ * For metadata filtering, restore passing the entire array to the proc, rather
1781
+ than each item in the array (weidenfreak)
1782
+ * Ensure each spec file is loaded only once
1783
+ * Fixes a bug that caused all the examples in a file to be run when
1784
+ referenced twice with line numbers in a command, e.g.
1785
+ * `rspec path/to/file:37 path/to/file:42`
1786
+
1787
+ ### 2.8.0.rc2 / 2011-12-19
1788
+
1789
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.8.0.rc1...v2.8.0.rc2)
1790
+
1791
+ Enhancments
1792
+
1793
+ * new `--init` command (Peter Schröder)
1794
+ * generates `spec/spec_helper.rb`
1795
+ * deletes obsolete files (on confirmation)
1796
+ * merged with and deprecates `--configure` command, which generated
1797
+ `.rspec`
1798
+ * use `require_relative` when available (Ian Leitch)
1799
+ * `include_context` and `include_examples` accept params (Calvin Bascom)
1800
+ * print the time for every example in the html formatter (Richie Vos)
1801
+ * several tasty refactoring niblets (Sasha)
1802
+ * `it "does something", :x => [:foo,'bar',/baz/] (Ivan Neverov)
1803
+ * supports matching n command line tag values with an example or group
1804
+
1805
+ ### 2.8.0.rc1 / 2011-11-06
1806
+
1807
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.7.1...v2.8.0.rc1)
1808
+
1809
+ Enhancements
1810
+
1811
+ * `--order` (Justin Ko)
1812
+ * run examples in random order: `--order rand`
1813
+ * specify the seed: `--order rand:123`
1814
+ * `--seed SEED`
1815
+ * equivalent of `--order rand:SEED`
1816
+ * SharedContext supports `let` (David Chelimsky)
1817
+ * Filter improvements (David Chelimsky)
1818
+ * override opposing tags from the command line
1819
+ * override RSpec.configure tags from the command line
1820
+ * `--line_number 37` overrides all other filters
1821
+ * `path/to/file.rb:37` overrides all other filters
1822
+ * refactor: consolidate filter management in a FilterManger object
1823
+ * Eliminate Ruby warnings (Matijs van Zuijlen)
1824
+ * Make reporter.report an API (David Chelimsky)
1825
+ * supports extension tools like interative_rspec
1826
+
1827
+ Changes
1828
+
1829
+ * change `config.color_enabled` (getter/setter/predicate) to `color` to align
1830
+ with `--[no]-color` CLI option.
1831
+ * `color_enabled` is still supported for now, but will likley be deprecated
1832
+ in a 2.x release so we can remove it in 3.0.
1833
+
1834
+ Bug fixes
1835
+
1836
+ * Make sure the `bar` in `--tag foo:bar` makes it to DRb (Aaron Gibralter)
1837
+ * Fix bug where full descriptions of groups nested 3 deep were repeated.
1838
+ * Restore report of time to run to start after files are loaded.
1839
+ * fixes bug where run times were cumalitive in spork
1840
+ * fixes compatibility with time-series metrics
1841
+ * Don't error out when `config.mock_with` or `expect_with` is re-specifying the
1842
+ current config (Myron Marston)
1843
+
1844
+ * Deprecations
1845
+ * :alias option on `configuration.add_setting`. Use `:alias_with` on the
1846
+ original setting declaration instead.
1847
+
1848
+ ### 2.7.1 / 2011-10-20
1849
+
1850
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.7.0...v2.7.1)
1851
+
1852
+ Bug fixes
1853
+
1854
+ * tell autotest the correct place to find the rspec executable
1855
+
1856
+ ### 2.7.0 / 2011-10-16
1857
+
1858
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.4...v2.7.0)
1859
+
1860
+ NOTE: RSpec's release policy dictates that there should not be any backward
1861
+ incompatible changes in minor releases, but we're making an exception to
1862
+ release a change to how RSpec interacts with other command line tools.
1863
+
1864
+ As of 2.7.0, you must explicity `require "rspec/autorun"` unless you use the
1865
+ `rspec` command (which already does this for you).
1866
+
1867
+ Enhancements
1868
+
1869
+ * Add `example.exception` (David Chelimsky)
1870
+ * `--default_path` command line option (Justin Ko)
1871
+ * support multiple `--line_number` options (David J. Hamilton)
1872
+ * also supports `path/to/file.rb:5:9` (runs examples on lines 5 and 9)
1873
+ * Allow classes/modules to be used as shared example group identifiers (Arthur
1874
+ Gunn)
1875
+ * Friendly error message when shared context cannot be found (Sławosz
1876
+ Sławiński)
1877
+ * Clear formatters when resetting config (John Bintz)
1878
+ * Add `xspecify` and xexample as temp-pending methods (David Chelimsky)
1879
+ * Add `--no-drb` option (Iain Hecker)
1880
+ * Provide more accurate run time by registering start time before code is
1881
+ loaded (David Chelimsky)
1882
+ * reverted in 2.8.0
1883
+ * Rake task default pattern finds specs in symlinked dirs (Kelly Felkins)
1884
+ * Rake task no longer does anything to invoke bundler since Bundler already
1885
+ handles it for us. Thanks to Andre Arko for the tip.
1886
+ * Add `--failure-exit-code` option (Chris Griego)
1887
+
1888
+ Bug fixes
1889
+
1890
+ * Include `Rake::DSL` to remove deprecation warnings in Rake > 0.8.7 (Pivotal
1891
+ Casebook)
1892
+ * Only eval `let` block once even if it returns `nil` (Adam Meehan)
1893
+ * Fix `--pattern` option (wasn't being recognized) (David Chelimsky)
1894
+ * Only implicitly `require "rspec/autorun"` with the `rspec` command (David
1895
+ Chelimsky)
1896
+ * Ensure that rspec's `at_exit` defines the exit code (Daniel Doubrovkine)
1897
+ * Show the correct snippet in the HTML and TextMate formatters (Brian Faherty)
1898
+
1899
+ ### 2.6.4 / 2011-06-06
1900
+
1901
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.3...v2.6.4)
1902
+
1903
+ NOTE: RSpec's release policy dictates that there should not be new
1904
+ functionality in patch releases, but this minor enhancement slipped in by
1905
+ accident. As it doesn't add a new API, we decided to leave it in rather than
1906
+ roll back this release.
1907
+
1908
+ Enhancements
1909
+
1910
+ * Add summary of commands to run individual failed examples.
1911
+
1912
+ Bug fixes
1913
+
1914
+ * Support exclusion filters in DRb. (Yann Lugrin)
1915
+ * Fix --example escaping when run over DRb. (Elliot Winkler)
1916
+ * Use standard ANSI codes for color formatting so colors work in a wider set of
1917
+ color schemes.
1918
+
1919
+ ### 2.6.3 / 2011-05-24
1920
+
1921
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.2...v2.6.3)
1922
+
1923
+ Bug fixes
1924
+
1925
+ * Explicitly convert exit code to integer, avoiding TypeError when return
1926
+ value of run is IO object proxied by `DRb::DRbObject` (Julian Scheid)
1927
+ * Clarify behavior of `--example` command line option
1928
+ * Build using a rubygems-1.6.2 to avoid downstream yaml parsing error
1929
+
1930
+ ### 2.6.2 / 2011-05-21
1931
+
1932
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.1...v2.6.2)
1933
+
1934
+ Bug fixes
1935
+
1936
+ * Warn rather than raise when HOME env var is not defined
1937
+ * Properly merge command-line exclusions with default :if and :unless (joshcooper)
1938
+
1939
+ ### 2.6.1 / 2011-05-19
1940
+
1941
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.0...v2.6.1)
1942
+
1943
+ Bug fixes
1944
+
1945
+ * Don't extend nil when filters are nil
1946
+ * `require 'rspec/autorun'` when running rcov.
1947
+
1948
+ ### 2.6.0 / 2011-05-12
1949
+
1950
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.5.1...v2.6.0)
1951
+
1952
+ Enhancements
1953
+
1954
+ * `shared_context` (Damian Nurzynski)
1955
+ * extend groups matching specific metadata with:
1956
+ * method definitions
1957
+ * subject declarations
1958
+ * let/let! declarations
1959
+ * etc (anything you can do in a group)
1960
+ * `its([:key])` works for any subject with #[]. (Peter Jaros)
1961
+ * `treat_symbols_as_metadata_keys_with_true_values` (Myron Marston)
1962
+ * Print a deprecation warning when you configure RSpec after defining an
1963
+ example. All configuration should happen before any examples are defined.
1964
+ (Myron Marston)
1965
+ * Pass the exit status of a DRb run to the invoking process. This causes specs
1966
+ run via DRb to not just return true or false. (Ilkka Laukkanen)
1967
+ * Refactoring of `ConfigurationOptions#parse_options` (Rodrigo Rosenfeld Rosas)
1968
+ * Report excluded filters in runner output (tip from andyl)
1969
+ * Clean up messages for filters/tags.
1970
+ * Restore --pattern/-P command line option from rspec-1
1971
+ * Support false as well as true in config.full_backtrace= (Andreas Tolf
1972
+ Tolfsen)
1973
+
1974
+ Bug fixes
1975
+
1976
+ * Don't stumble over an exception without a message (Hans Hasselberg)
1977
+ * Remove non-ascii characters from comments that were choking rcov (Geoffrey
1978
+ Byers)
1979
+ * Fixed backtrace so it doesn't include lines from before the autorun at_exit
1980
+ hook (Myron Marston)
1981
+ * Include RSpec::Matchers when first example group is defined, rather than just
1982
+ before running the examples. This works around an obscure bug in ruby 1.9
1983
+ that can cause infinite recursion. (Myron Marston)
1984
+ * Don't send `example_group_[started|finished]` to formatters for empty groups.
1985
+ * Get specs passing on jruby (Sidu Ponnappa)
1986
+ * Fix bug where mixing nested groups and outer-level examples gave
1987
+ unpredictable :line_number behavior (Artur Małecki)
1988
+ * Regexp.escape the argument to --example (tip from Elliot Winkler)
1989
+ * Correctly pass/fail pending block with message expectations
1990
+ * CommandLine returns exit status (0/1) instead of true/false
1991
+ * Create path to formatter output file if it doesn't exist (marekj).
1992
+
1993
+
1994
+ ### 2.5.1 / 2011-02-06
1995
+
1996
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.5.0...v2.5.1)
1997
+
1998
+ NOTE: this release breaks compatibility with rspec/autotest/bundler
1999
+ integration, but does so in order to greatly simplify it.
2000
+
2001
+ With this release, if you want the generated autotest command to include
2002
+ 'bundle exec', require Autotest's bundler plugin in a .autotest file in the
2003
+ project's root directory or in your home directory:
2004
+
2005
+ require "autotest/bundler"
2006
+
2007
+ Now you can just type 'autotest' on the command line and it will work as you expect.
2008
+
2009
+ If you don't want 'bundle exec', there is nothing you have to do.
2010
+
2011
+ ### 2.5.0 / 2011-02-05
2012
+
2013
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.4.0...v2.5.0)
2014
+
2015
+ Enhancements
2016
+
2017
+ * Autotest::Rspec2 parses command line args passed to autotest after '--'
2018
+ * --skip-bundler option for autotest command
2019
+ * Autotest regexp fixes (Jon Rowe)
2020
+ * Add filters to html and textmate formatters (Daniel Quimper)
2021
+ * Explicit passing of block (need for JRuby 1.6) (John Firebaugh)
2022
+
2023
+ Bug fixes
2024
+
2025
+ * fix dom IDs in HTML formatter (Brian Faherty)
2026
+ * fix bug with --drb + formatters when not running in drb
2027
+ * include --tag options in drb args (monocle)
2028
+ * fix regression so now SPEC_OPTS take precedence over CLI options again (Roman
2029
+ Chernyatchik)
2030
+ * only call its(:attribute) once (failing example from Brian Dunn)
2031
+ * fix bizarre bug where rspec would hang after String.alias :to_int :to_i
2032
+ (Damian Nurzynski)
2033
+
2034
+ Deprecations
2035
+
2036
+ * implicit inclusion of 'bundle exec' when Gemfile present (use autotest's
2037
+ bundler plugin instead)
2038
+
2039
+ ### 2.4.0 / 2011-01-02
2040
+
2041
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.3.1...v2.4.0)
2042
+
2043
+ Enhancements
2044
+
2045
+ * start the debugger on -d so the stack trace is visible when it stops
2046
+ (Clifford Heath)
2047
+ * apply hook filtering to examples as well as groups (Myron Marston)
2048
+ * support multiple formatters, each with their own output
2049
+ * show exception classes in failure messages unless they come from RSpec
2050
+ matchers or message expectations
2051
+ * before(:all) { pending } sets all examples to pending
2052
+
2053
+ Bug fixes
2054
+
2055
+ * fix bug due to change in behavior of reject in Ruby 1.9.3-dev (Shota
2056
+ Fukumori)
2057
+ * fix bug when running in jruby: be explicit about passing block to super (John
2058
+ Firebaugh)
2059
+ * rake task doesn't choke on paths with quotes (Janmejay Singh)
2060
+ * restore --options option from rspec-1
2061
+ * require 'ostruct' to fix bug with its([key]) (Kim Burgestrand)
2062
+ * --configure option generates .rspec file instead of autotest/discover.rb
2063
+
2064
+ ### 2.3.1 / 2010-12-16
2065
+
2066
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.3.0...v2.3.1)
2067
+
2068
+ Bug fixes
2069
+
2070
+ * send debugger warning message to $stdout if RSpec.configuration.error_stream
2071
+ has not been defined yet.
2072
+ * HTML Formatter _finally_ properly displays nested groups (Jarmo Pertman)
2073
+ * eliminate some warnings when running RSpec's own suite (Jarmo Pertman)
2074
+
2075
+ ### 2.3.0 / 2010-12-12
2076
+
2077
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.2.1...v2.3.0)
2078
+
2079
+ Enhancements
2080
+
2081
+ * tell autotest to use "rspec2" if it sees a .rspec file in the project's root
2082
+ directory
2083
+ * replaces the need for ./autotest/discover.rb, which will not work with
2084
+ all versions of ZenTest and/or autotest
2085
+ * config.expect_with
2086
+ * :rspec # => rspec/expectations
2087
+ * :stdlib # => test/unit/assertions
2088
+ * :rspec, :stdlib # => both
2089
+
2090
+ Bug fixes
2091
+
2092
+ * fix dev Gemfile to work on non-mac-os machines (Lake Denman)
2093
+ * ensure explicit subject is only eval'd once (Laszlo Bacsi)
2094
+
2095
+ ### 2.2.1 / 2010-11-28
2096
+
2097
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.2.0...v2.2.1)
2098
+
2099
+ Bug fixes
2100
+ * alias_method instead of override Kernel#method_missing (John Wilger)
2101
+ * changed --autotest to --tty in generated command (MIKAMI Yoshiyuki)
2102
+ * revert change to debugger (had introduced conflict with Rails)
2103
+ * also restored --debugger/-debug option
2104
+
2105
+ ### 2.2.0 / 2010-11-28
2106
+
2107
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.1.0...v2.2.0)
2108
+
2109
+ Deprecations/changes
2110
+
2111
+ * --debug/-d on command line is deprecated and now has no effect
2112
+ * win32console is now ignored; Windows users must use ANSICON for color support
2113
+ (Bosko Ivanisevic)
2114
+
2115
+ Enhancements
2116
+
2117
+ * When developing locally rspec-core now works with the rspec-dev setup or your
2118
+ local gems
2119
+ * Raise exception with helpful message when rspec-1 is loaded alongside rspec-2
2120
+ (Justin Ko)
2121
+ * debugger statements _just work_ as long as ruby-debug is installed
2122
+ * otherwise you get warned, but not fired
2123
+ * Expose example.metadata in around hooks
2124
+ * Performance improvments (much faster now)
2125
+
2126
+ Bug fixes
2127
+
2128
+ * Make sure --fail-fast makes it across drb
2129
+ * Pass -Ilib:spec to rcov
2130
+
2131
+ ### 2.1.0 / 2010-11-07
2132
+
2133
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.1...v2.1.0)
2134
+
2135
+ Enhancments
2136
+
2137
+ * Add skip_bundler option to rake task to tell rake task to ignore the presence
2138
+ of a Gemfile (jfelchner)
2139
+ * Add gemfile option to rake task to tell rake task what Gemfile to look for
2140
+ (defaults to 'Gemfile')
2141
+ * Allow passing caller trace into Metadata to support extensions (Glenn
2142
+ Vanderburg)
2143
+ * Add deprecation warning for Spec::Runner.configure to aid upgrade from
2144
+ RSpec-1
2145
+ * Add deprecated Spec::Rake::SpecTask to aid upgrade from RSpec-1
2146
+ * Add 'autospec' command with helpful message to aid upgrade from RSpec-1
2147
+ * Add support for filtering with tags on CLI (Lailson Bandeira)
2148
+ * Add a helpful message about RUBYOPT when require fails in bin/rspec (slyphon)
2149
+ * Add "-Ilib" to the default rcov options (Tianyi Cui)
2150
+ * Make the expectation framework configurable (default rspec, of course)
2151
+ (Justin Ko)
2152
+ * Add 'pending' to be conditional (Myron Marston)
2153
+ * Add explicit support for :if and :unless as metadata keys for conditional run
2154
+ of examples (Myron Marston)
2155
+ * Add --fail-fast command line option (Jeff Kreeftmeijer)
2156
+
2157
+ Bug fixes
2158
+
2159
+ * Eliminate stack overflow with "subject { self }"
2160
+ * Require 'rspec/core' in the Raketask (ensures it required when running rcov)
2161
+
2162
+ ### 2.0.1 / 2010-10-18
2163
+
2164
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.0...v2.0.1)
2165
+
2166
+ Bug fixes
2167
+
2168
+ * Restore color when using spork + autotest
2169
+ * Pending examples without docstrings render the correct message (Josep M.
2170
+ Bach)
2171
+ * Fixed bug where a failure in a spec file ending in anything but _spec.rb
2172
+ would fail in a confusing way.
2173
+ * Support backtrace lines from erb templates in html formatter (Alex Crichton)
2174
+
2175
+ ### 2.0.0 / 2010-10-10
2176
+
2177
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.rc...v2.0.0)
2178
+
2179
+ RSpec-1 compatibility
2180
+
2181
+ * Rake task uses ENV["SPEC"] as file list if present
2182
+
2183
+ Bug fixes
2184
+
2185
+ * Bug Fix: optparse --out foo.txt (Leonardo Bessa)
2186
+ * Suppress color codes for non-tty output (except autotest)
2187
+
2188
+ ### 2.0.0.rc / 2010-10-05
2189
+
2190
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.22...v2.0.0.rc)
2191
+
2192
+ Enhancements
2193
+
2194
+ * implicitly require unknown formatters so you don't have to require the file
2195
+ explicitly on the command line (Michael Grosser)
2196
+ * add --out/-o option to assign output target
2197
+ * added fail_fast configuration option to abort on first failure
2198
+ * support a Hash subject (its([:key]) { should == value }) (Josep M. Bach)
2199
+
2200
+ Bug fixes
2201
+
2202
+ * Explicitly require rspec version to fix broken rdoc task (Hans de Graaff)
2203
+ * Ignore backtrace lines that come from other languages, like Java or
2204
+ Javascript (Charles Lowell)
2205
+ * Rake task now does what is expected when setting (or not setting)
2206
+ fail_on_error and verbose
2207
+ * Fix bug in which before/after(:all) hooks were running on excluded nested
2208
+ groups (Myron Marston)
2209
+ * Fix before(:all) error handling so that it fails examples in nested groups,
2210
+ too (Myron Marston)
2211
+
2212
+ ### 2.0.0.beta.22 / 2010-09-12
2213
+
2214
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.20...v2.0.0.beta.22)
2215
+
2216
+ Enhancements
2217
+
2218
+ * removed at_exit hook
2219
+ * CTRL-C stops the run (almost) immediately
2220
+ * first it cleans things up by running the appropriate after(:all) and
2221
+ after(:suite) hooks
2222
+ * then it reports on any examples that have already run
2223
+ * cleaned up rake task
2224
+ * generate correct task under variety of conditions
2225
+ * options are more consistent
2226
+ * deprecated redundant options
2227
+ * run 'bundle exec autotest' when Gemfile is present
2228
+ * support ERB in .rspec options files (Justin Ko)
2229
+ * depend on bundler for development tasks (Myron Marston)
2230
+ * add example_group_finished to formatters and reporter (Roman Chernyatchik)
2231
+
2232
+ Bug fixes
2233
+
2234
+ * support paths with spaces when using autotest (Andreas Neuhaus)
2235
+ * fix module_exec with ruby 1.8.6 (Myron Marston)
2236
+ * remove context method from top-level
2237
+ * was conflicting with irb, for example
2238
+ * errors in before(:all) are now reported correctly (Chad Humphries)
2239
+
2240
+ Removals
2241
+
2242
+ * removed -o --options-file command line option
2243
+ * use ./.rspec and ~/.rspec