sspec-core 3.8.0

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