rspec-core 2.8.0 → 2.9.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.yardopts +3 -0
- data/Changelog.md +492 -0
- data/README.md +1 -1
- data/features/mock_framework_integration/use_flexmock.feature +2 -2
- data/features/step_definitions/additional_cli_steps.rb +2 -2
- data/features/subject/attribute_of_subject.feature +4 -2
- data/features/subject/explicit_subject.feature +6 -2
- data/features/subject/implicit_receiver.feature +1 -1
- data/features/subject/implicit_subject.feature +40 -7
- data/lib/autotest/rspec2.rb +1 -1
- data/lib/rspec/core.rb +1 -1
- data/lib/rspec/core/configuration.rb +53 -5
- data/lib/rspec/core/configuration_options.rb +5 -2
- data/lib/rspec/core/drb_options.rb +3 -1
- data/lib/rspec/core/filter_manager.rb +1 -1
- data/lib/rspec/core/formatters/base_text_formatter.rb +1 -5
- data/lib/rspec/core/formatters/documentation_formatter.rb +4 -8
- data/lib/rspec/core/formatters/helpers.rb +15 -0
- data/lib/rspec/core/hooks.rb +3 -1
- data/lib/rspec/core/metadata.rb +6 -11
- data/lib/rspec/core/runner.rb +4 -14
- data/lib/rspec/core/version.rb +1 -1
- data/lib/rspec/core/world.rb +7 -7
- data/spec/autotest/rspec_spec.rb +1 -1
- data/spec/rspec/core/configuration_options_spec.rb +8 -5
- data/spec/rspec/core/configuration_spec.rb +38 -10
- data/spec/rspec/core/example_group_spec.rb +16 -0
- data/spec/rspec/core/formatters/documentation_formatter_spec.rb +23 -1
- data/spec/rspec/core/formatters/helpers_spec.rb +20 -0
- data/spec/rspec/core/metadata_spec.rb +3 -4
- data/spec/rspec/core/shared_example_group_spec.rb +2 -2
- data/spec/rspec/core/world_spec.rb +11 -1
- metadata +166 -19
- data/lib/rspec/monkey.rb +0 -1
- data/lib/rspec/monkey/spork/test_framework/rspec.rb +0 -10
data/.document
ADDED
data/.yardopts
ADDED
data/Changelog.md
ADDED
@@ -0,0 +1,492 @@
|
|
1
|
+
### 2.9.0.rc2 / 2012-02-12
|
2
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.8.0...v2.9.0.rc2)
|
3
|
+
|
4
|
+
Enhancements
|
5
|
+
|
6
|
+
* Support for "X minutes X seconds" spec run duration in formatter. (uzzz)
|
7
|
+
* Strip whitespace from group and example names in doc formatter.
|
8
|
+
* Removed spork-0.9 shim. If you're using spork-0.8.x, you'll need to upgrade
|
9
|
+
to 0.9.0.
|
10
|
+
|
11
|
+
Bug fixes
|
12
|
+
|
13
|
+
* Restore `--full_backtrace` option
|
14
|
+
* Ensure that values passed to `config.filter_run` are respected when running
|
15
|
+
over DRb (using spork).
|
16
|
+
* Ensure shared example groups are reset after a run (as example groups are).
|
17
|
+
* Remove `rescue false` from calls to filters represented as Procs
|
18
|
+
* Ensure described_class gets the closest constant (pyromaniac)
|
19
|
+
* In "autorun", don't run the specs in the at_exit hook if there was an
|
20
|
+
exception (most likely due to a SyntaxError). (sunaku)
|
21
|
+
* Don't extend groups with modules already used to extend ancestor groups.
|
22
|
+
|
23
|
+
### 2.8.0 / 2012-01-04
|
24
|
+
|
25
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.8.0.rc2...v2.8.0)
|
26
|
+
|
27
|
+
Bug fixes
|
28
|
+
|
29
|
+
* For metadata filtering, restore passing the entire array to the proc, rather
|
30
|
+
than each item in the array (weidenfreak)
|
31
|
+
* Ensure each spec file is loaded only once
|
32
|
+
* Fixes a bug that caused all the examples in a file to be run when
|
33
|
+
referenced twice with line numbers in a command, e.g.
|
34
|
+
* `rspec path/to/file:37 path/to/file:42`
|
35
|
+
|
36
|
+
### 2.8.0.rc2 / 2011-12-19
|
37
|
+
|
38
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.8.0.rc1...v2.8.0.rc2)
|
39
|
+
|
40
|
+
Enhancments
|
41
|
+
|
42
|
+
* new `--init` command (Peter Schröder)
|
43
|
+
* generates `spec/spec_helper.rb`
|
44
|
+
* deletes obsolete files (on confirmation)
|
45
|
+
* merged with and deprecates `--configure` command, which generated
|
46
|
+
`.rspec`
|
47
|
+
* use `require_relative` when available (Ian Leitch)
|
48
|
+
* `include_context` and `include_examples` accept params (Calvin Bascom)
|
49
|
+
* print the time for every example in the html formatter (Richie Vos)
|
50
|
+
* several tasty refactoring niblets (Sasha)
|
51
|
+
* `it "does something", :x => [:foo,'bar',/baz/] (Ivan Neverov)
|
52
|
+
* supports matching n command line tag values with an example or group
|
53
|
+
|
54
|
+
### 2.8.0.rc1 / 2011-11-06
|
55
|
+
|
56
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.7.1...v2.8.0.rc1)
|
57
|
+
|
58
|
+
Enhancements
|
59
|
+
|
60
|
+
* `--order` (Justin Ko)
|
61
|
+
* run examples in random order: `--order rand`
|
62
|
+
* specify the seed: `--order rand:123`
|
63
|
+
* `--seed SEED`
|
64
|
+
* equivalent of `--order rand:SEED`
|
65
|
+
* SharedContext supports `let` (David Chelimsky)
|
66
|
+
* Filter improvements (David Chelimsky)
|
67
|
+
* override opposing tags from the command line
|
68
|
+
* override RSpec.configure tags from the command line
|
69
|
+
* `--line_number 37` overrides all other filters
|
70
|
+
* `path/to/file.rb:37` overrides all other filters
|
71
|
+
* refactor: consolidate filter management in a FilterManger object
|
72
|
+
* Eliminate Ruby warnings (Matijs van Zuijlen)
|
73
|
+
* Make reporter.report an API (David Chelimsky)
|
74
|
+
* supports extension tools like interative_rspec
|
75
|
+
|
76
|
+
Changes
|
77
|
+
|
78
|
+
* change `config.color_enabled` (getter/setter/predicate) to `color` to align
|
79
|
+
with `--[no]-color` CLI option.
|
80
|
+
* `color_enabled` is still supported for now, but will likley be deprecated
|
81
|
+
in a 2.x release so we can remove it in 3.0.
|
82
|
+
|
83
|
+
Bug fixes
|
84
|
+
|
85
|
+
* Make sure the `bar` in `--tag foo:bar` makes it to DRb (Aaron Gibralter)
|
86
|
+
* Fix bug where full descriptions of groups nested 3 deep were repeated.
|
87
|
+
* Restore report of time to run to start after files are loaded.
|
88
|
+
* fixes bug where run times were cumalitive in spork
|
89
|
+
* fixes compatibility with time-series metrics
|
90
|
+
* Don't error out when `config.mock_with` or `expect_with` is re-specifying the
|
91
|
+
current config (Myron Marston)
|
92
|
+
|
93
|
+
* Deprecations
|
94
|
+
* :alias option on `configuration.add_setting`. Use `:alias_with` on the
|
95
|
+
original setting declaration instead.
|
96
|
+
|
97
|
+
### 2.7.1 / 2011-10-20
|
98
|
+
|
99
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.7.0...v2.7.1)
|
100
|
+
|
101
|
+
Bug fixes
|
102
|
+
|
103
|
+
* tell autotest the correct place to find the rspec executable
|
104
|
+
|
105
|
+
### 2.7.0 / 2011-10-16
|
106
|
+
|
107
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.6.4...v2.7.0)
|
108
|
+
|
109
|
+
NOTE: RSpec's release policy dictates that there should not be any backward
|
110
|
+
incompatible changes in minor releases, but we're making an exception to
|
111
|
+
release a change to how RSpec interacts with other command line tools.
|
112
|
+
|
113
|
+
As of 2.7.0, you must explicity `require "rspec/autorun"` unless you use the
|
114
|
+
`rspec` command (which already does this for you).
|
115
|
+
|
116
|
+
Enhancements
|
117
|
+
|
118
|
+
* Add `example.exception` (David Chelimsky)
|
119
|
+
* `--default_path` command line option (Justin Ko)
|
120
|
+
* support multiple `--line_number` options (David J. Hamilton)
|
121
|
+
* also supports `path/to/file.rb:5:9` (runs examples on lines 5 and 9)
|
122
|
+
* Allow classes/modules to be used as shared example group identifiers (Arthur
|
123
|
+
Gunn)
|
124
|
+
* Friendly error message when shared context cannot be found (Sławosz
|
125
|
+
Sławiński)
|
126
|
+
* Clear formatters when resetting config (John Bintz)
|
127
|
+
* Add `xspecify` and xexample as temp-pending methods (David Chelimsky)
|
128
|
+
* Add `--no-drb` option (Iain Hecker)
|
129
|
+
* Provide more accurate run time by registering start time before code is
|
130
|
+
loaded (David Chelimsky)
|
131
|
+
* reverted in 2.8.0
|
132
|
+
* Rake task default pattern finds specs in symlinked dirs (Kelly Felkins)
|
133
|
+
* Rake task no longer does anything to invoke bundler since Bundler already
|
134
|
+
handles it for us. Thanks to Andre Arko for the tip.
|
135
|
+
* Add `--failure-exit-code` option (Chris Griego)
|
136
|
+
|
137
|
+
Bug fixes
|
138
|
+
|
139
|
+
* Include `Rake::DSL` to remove deprecation warnings in Rake > 0.8.7 (Pivotal
|
140
|
+
Casebook)
|
141
|
+
* Only eval `let` block once even if it returns `nil` (Adam Meehan)
|
142
|
+
* Fix `--pattern` option (wasn't being recognized) (David Chelimsky)
|
143
|
+
* Only implicitly `require "rspec/autorun"` with the `rspec` command (David
|
144
|
+
Chelimsky)
|
145
|
+
* Ensure that rspec's `at_exit` defines the exit code (Daniel Doubrovkine)
|
146
|
+
* Show the correct snippet in the HTML and TextMate formatters (Brian Faherty)
|
147
|
+
|
148
|
+
### 2.6.4 / 2011-06-06
|
149
|
+
|
150
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.6.3...v2.6.4)
|
151
|
+
|
152
|
+
NOTE: RSpec's release policy dictates that there should not be new
|
153
|
+
functionality in patch releases, but this minor enhancement slipped in by
|
154
|
+
accident. As it doesn't add a new API, we decided to leave it in rather than
|
155
|
+
roll back this release.
|
156
|
+
|
157
|
+
Enhancements
|
158
|
+
|
159
|
+
* Add summary of commands to run individual failed examples.
|
160
|
+
|
161
|
+
Bug fixes
|
162
|
+
|
163
|
+
* Support exclusion filters in DRb. (Yann Lugrin)
|
164
|
+
* Fix --example escaping when run over DRb. (Elliot Winkler)
|
165
|
+
* Use standard ANSI codes for color formatting so colors work in a wider set of
|
166
|
+
color schemes.
|
167
|
+
|
168
|
+
### 2.6.3 / 2011-05-24
|
169
|
+
|
170
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.6.2...v2.6.3)
|
171
|
+
|
172
|
+
Bug fixes
|
173
|
+
|
174
|
+
* Explicitly convert exit code to integer, avoiding TypeError when return
|
175
|
+
value of run is IO object proxied by `DRb::DRbObject` (Julian Scheid)
|
176
|
+
* Clarify behavior of `--example` command line option
|
177
|
+
* Build using a rubygems-1.6.2 to avoid downstream yaml parsing error
|
178
|
+
|
179
|
+
### 2.6.2 / 2011-05-21
|
180
|
+
|
181
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.6.1...v2.6.2)
|
182
|
+
|
183
|
+
Bug fixes
|
184
|
+
|
185
|
+
* Warn rather than raise when HOME env var is not defined
|
186
|
+
* Properly merge command-line exclusions with default :if and :unless (joshcooper)
|
187
|
+
|
188
|
+
### 2.6.1 / 2011-05-19
|
189
|
+
|
190
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.6.0...v2.6.1)
|
191
|
+
|
192
|
+
Bug fixes
|
193
|
+
|
194
|
+
* Don't extend nil when filters are nil
|
195
|
+
* `require 'rspec/autorun'` when running rcov.
|
196
|
+
|
197
|
+
### 2.6.0 / 2011-05-12
|
198
|
+
|
199
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.5.1...v2.6.0)
|
200
|
+
|
201
|
+
Enhancements
|
202
|
+
|
203
|
+
* `shared_context` (Damian Nurzynski)
|
204
|
+
* extend groups matching specific metadata with:
|
205
|
+
* method definitions
|
206
|
+
* subject declarations
|
207
|
+
* let/let! declarations
|
208
|
+
* etc (anything you can do in a group)
|
209
|
+
* `its([:key])` works for any subject with #[]. (Peter Jaros)
|
210
|
+
* `treat_symbols_as_metadata_keys_with_true_values` (Myron Marston)
|
211
|
+
* Print a deprecation warning when you configure RSpec after defining an
|
212
|
+
example. All configuration should happen before any examples are defined.
|
213
|
+
(Myron Marston)
|
214
|
+
* Pass the exit status of a DRb run to the invoking process. This causes specs
|
215
|
+
run via DRb to not just return true or false. (Ilkka Laukkanen)
|
216
|
+
* Refactoring of `ConfigurationOptions#parse_options` (Rodrigo Rosenfeld Rosas)
|
217
|
+
* Report excluded filters in runner output (tip from andyl)
|
218
|
+
* Clean up messages for filters/tags.
|
219
|
+
* Restore --pattern/-P command line option from rspec-1
|
220
|
+
* Support false as well as true in config.full_backtrace= (Andreas Tolf
|
221
|
+
Tolfsen)
|
222
|
+
|
223
|
+
Bug fixes
|
224
|
+
|
225
|
+
* Don't stumble over an exception without a message (Hans Hasselberg)
|
226
|
+
* Remove non-ascii characters from comments that were choking rcov (Geoffrey
|
227
|
+
Byers)
|
228
|
+
* Fixed backtrace so it doesn't include lines from before the autorun at_exit
|
229
|
+
hook (Myron Marston)
|
230
|
+
* Include RSpec::Matchers when first example group is defined, rather than just
|
231
|
+
before running the examples. This works around an obscure bug in ruby 1.9
|
232
|
+
that can cause infinite recursion. (Myron Marston)
|
233
|
+
* Don't send `example_group_[started|finished]` to formatters for empty groups.
|
234
|
+
* Get specs passing on jruby (Sidu Ponnappa)
|
235
|
+
* Fix bug where mixing nested groups and outer-level examples gave
|
236
|
+
unpredictable :line_number behavior (Artur Małecki)
|
237
|
+
* Regexp.escape the argument to --example (tip from Elliot Winkler)
|
238
|
+
* Correctly pass/fail pending block with message expectations
|
239
|
+
* CommandLine returns exit status (0/1) instead of true/false
|
240
|
+
* Create path to formatter output file if it doesn't exist (marekj).
|
241
|
+
|
242
|
+
|
243
|
+
### 2.5.1 / 2011-02-06
|
244
|
+
|
245
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.5.0...v2.5.1)
|
246
|
+
|
247
|
+
NOTE: this release breaks compatibility with rspec/autotest/bundler
|
248
|
+
integration, but does so in order to greatly simplify it.
|
249
|
+
|
250
|
+
With this release, if you want the generated autotest command to include
|
251
|
+
'bundle exec', require Autotest's bundler plugin in a .autotest file in the
|
252
|
+
project's root directory or in your home directory:
|
253
|
+
|
254
|
+
require "autotest/bundler"
|
255
|
+
|
256
|
+
Now you can just type 'autotest' on the commmand line and it will work as you expect.
|
257
|
+
|
258
|
+
If you don't want 'bundle exec', there is nothing you have to do.
|
259
|
+
|
260
|
+
### 2.5.0 / 2011-02-05
|
261
|
+
|
262
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.4.0...v2.5.0)
|
263
|
+
|
264
|
+
Enhancements
|
265
|
+
|
266
|
+
* Autotest::Rspec2 parses command line args passed to autotest after '--'
|
267
|
+
* --skip-bundler option for autotest command
|
268
|
+
* Autotest regexp fixes (Jon Rowe)
|
269
|
+
* Add filters to html and textmate formatters (Daniel Quimper)
|
270
|
+
* Explicit passing of block (need for JRuby 1.6) (John Firebaugh)
|
271
|
+
|
272
|
+
Bug fixes
|
273
|
+
|
274
|
+
* fix dom IDs in HTML formatter (Brian Faherty)
|
275
|
+
* fix bug with --drb + formatters when not running in drb
|
276
|
+
* include --tag options in drb args (monocle)
|
277
|
+
* fix regression so now SPEC_OPTS take precedence over CLI options again (Roman
|
278
|
+
Chernyatchik)
|
279
|
+
* only call its(:attribute) once (failing example from Brian Dunn)
|
280
|
+
* fix bizarre bug where rspec would hang after String.alias :to_int :to_i
|
281
|
+
(Damian Nurzynski)
|
282
|
+
|
283
|
+
Deprecations
|
284
|
+
|
285
|
+
* implicit inclusion of 'bundle exec' when Gemfile present (use autotest's
|
286
|
+
bundler plugin instead)
|
287
|
+
|
288
|
+
### 2.4.0 / 2011-01-02
|
289
|
+
|
290
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.3.1...v2.4.0)
|
291
|
+
|
292
|
+
Enhancements
|
293
|
+
|
294
|
+
* start the debugger on -d so the stack trace is visible when it stops
|
295
|
+
(Clifford Heath)
|
296
|
+
* apply hook filtering to examples as well as groups (Myron Marston)
|
297
|
+
* support multiple formatters, each with their own output
|
298
|
+
* show exception classes in failure messages unless they come from RSpec
|
299
|
+
matchers or message expectations
|
300
|
+
* before(:all) { pending } sets all examples to pending
|
301
|
+
|
302
|
+
Bug fixes
|
303
|
+
|
304
|
+
* fix bug due to change in behavior of reject in Ruby 1.9.3-dev (Shota
|
305
|
+
Fukumori)
|
306
|
+
* fix bug when running in jruby: be explicit about passing block to super (John
|
307
|
+
Firebaugh)
|
308
|
+
* rake task doesn't choke on paths with quotes (Janmejay Singh)
|
309
|
+
* restore --options option from rspec-1
|
310
|
+
* require 'ostruct' to fix bug with its([key]) (Kim Burgestrand)
|
311
|
+
* --configure option generates .rspec file instead of autotest/discover.rb
|
312
|
+
|
313
|
+
### 2.3.1 / 2010-12-16
|
314
|
+
|
315
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.3.0...v2.3.1)
|
316
|
+
|
317
|
+
Bug fixes
|
318
|
+
|
319
|
+
* send debugger warning message to $stdout if RSpec.configuration.error_stream
|
320
|
+
has not been defined yet.
|
321
|
+
* HTML Formatter _finally_ properly displays nested groups (Jarmo Pertman)
|
322
|
+
* eliminate some warnings when running RSpec's own suite (Jarmo Pertman)
|
323
|
+
|
324
|
+
### 2.3.0 / 2010-12-12
|
325
|
+
|
326
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.2.1...v2.3.0)
|
327
|
+
|
328
|
+
Enhancements
|
329
|
+
|
330
|
+
* tell autotest to use "rspec2" if it sees a .rspec file in the project's root
|
331
|
+
directory
|
332
|
+
* replaces the need for ./autotest/discover.rb, which will not work with
|
333
|
+
all versions of ZenTest and/or autotest
|
334
|
+
* config.expect_with
|
335
|
+
* :rspec # => rspec/expectations
|
336
|
+
* :stdlib # => test/unit/assertions
|
337
|
+
* :rspec, :stdlib # => both
|
338
|
+
|
339
|
+
Bug fixes
|
340
|
+
|
341
|
+
* fix dev Gemfile to work on non-mac-os machines (Lake Denman)
|
342
|
+
* ensure explicit subject is only eval'd once (Laszlo Bacsi)
|
343
|
+
|
344
|
+
### 2.2.1 / 2010-11-28
|
345
|
+
|
346
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.2.0...v2.2.1)
|
347
|
+
|
348
|
+
Bug fixes
|
349
|
+
* alias_method instead of override Kernel#method_missing (John Wilger)
|
350
|
+
* changed --autotest to --tty in generated command (MIKAMI Yoshiyuki)
|
351
|
+
* revert change to debugger (had introduced conflict with Rails)
|
352
|
+
* also restored --debugger/-debug option
|
353
|
+
|
354
|
+
### 2.2.0 / 2010-11-28
|
355
|
+
|
356
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.1.0...v2.2.0)
|
357
|
+
|
358
|
+
Deprecations/changes
|
359
|
+
|
360
|
+
* --debug/-d on command line is deprecated and now has no effect
|
361
|
+
* win32console is now ignored; Windows users must use ANSICON for color support
|
362
|
+
(Bosko Ivanisevic)
|
363
|
+
|
364
|
+
Enhancements
|
365
|
+
|
366
|
+
* When developing locally rspec-core now works with the rspec-dev setup or your
|
367
|
+
local gems
|
368
|
+
* Raise exception with helpful message when rspec-1 is loaded alongside rspec-2
|
369
|
+
(Justin Ko)
|
370
|
+
* debugger statements _just work_ as long as ruby-debug is installed
|
371
|
+
* otherwise you get warned, but not fired
|
372
|
+
* Expose example.metadata in around hooks
|
373
|
+
* Performance improvments (much faster now)
|
374
|
+
|
375
|
+
Bug fixes
|
376
|
+
|
377
|
+
* Make sure --fail-fast makes it across drb
|
378
|
+
* Pass -Ilib:spec to rcov
|
379
|
+
|
380
|
+
### 2.1.0 / 2010-11-07
|
381
|
+
|
382
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.1...v2.1.0)
|
383
|
+
|
384
|
+
Enhancments
|
385
|
+
|
386
|
+
* Add skip_bundler option to rake task to tell rake task to ignore the presence
|
387
|
+
of a Gemfile (jfelchner)
|
388
|
+
* Add gemfile option to rake task to tell rake task what Gemfile to look for
|
389
|
+
(defaults to 'Gemfile')
|
390
|
+
* Allow passing caller trace into Metadata to support extensions (Glenn
|
391
|
+
Vanderburg)
|
392
|
+
* Add deprecation warning for Spec::Runner.configure to aid upgrade from
|
393
|
+
RSpec-1
|
394
|
+
* Add deprecated Spec::Rake::SpecTask to aid upgrade from RSpec-1
|
395
|
+
* Add 'autospec' command with helpful message to aid upgrade from RSpec-1
|
396
|
+
* Add support for filtering with tags on CLI (Lailson Bandeira)
|
397
|
+
* Add a helpful message about RUBYOPT when require fails in bin/rspec (slyphon)
|
398
|
+
* Add "-Ilib" to the default rcov options (Tianyi Cui)
|
399
|
+
* Make the expectation framework configurable (default rspec, of course)
|
400
|
+
(Justin Ko)
|
401
|
+
* Add 'pending' to be conditional (Myron Marston)
|
402
|
+
* Add explicit support for :if and :unless as metadata keys for conditional run
|
403
|
+
of examples (Myron Marston)
|
404
|
+
* Add --fail-fast command line option (Jeff Kreeftmeijer)
|
405
|
+
|
406
|
+
Bug fixes
|
407
|
+
|
408
|
+
* Eliminate stack overflow with "subject { self }"
|
409
|
+
* Require 'rspec/core' in the Raketask (ensures it required when running rcov)
|
410
|
+
|
411
|
+
### 2.0.1 / 2010-10-18
|
412
|
+
|
413
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0...v2.0.1)
|
414
|
+
|
415
|
+
Bug fixes
|
416
|
+
|
417
|
+
* Restore color when using spork + autotest
|
418
|
+
* Pending examples without docstrings render the correct message (Josep M.
|
419
|
+
Bach)
|
420
|
+
* Fixed bug where a failure in a spec file ending in anything but _spec.rb
|
421
|
+
would fail in a confusing way.
|
422
|
+
* Support backtrace lines from erb templates in html formatter (Alex Crichton)
|
423
|
+
|
424
|
+
### 2.0.0 / 2010-10-10
|
425
|
+
|
426
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.rc...v2.0.0)
|
427
|
+
|
428
|
+
RSpec-1 compatibility
|
429
|
+
|
430
|
+
* Rake task uses ENV["SPEC"] as file list if present
|
431
|
+
|
432
|
+
Bug fixes
|
433
|
+
|
434
|
+
* Bug Fix: optparse --out foo.txt (Leonardo Bessa)
|
435
|
+
* Suppress color codes for non-tty output (except autotest)
|
436
|
+
|
437
|
+
### 2.0.0.rc / 2010-10-05
|
438
|
+
|
439
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.22...v2.0.0.rc)
|
440
|
+
|
441
|
+
Enhancements
|
442
|
+
|
443
|
+
* implicitly require unknown formatters so you don't have to require the file
|
444
|
+
explicitly on the commmand line (Michael Grosser)
|
445
|
+
* add --out/-o option to assign output target
|
446
|
+
* added fail_fast configuration option to abort on first failure
|
447
|
+
* support a Hash subject (its([:key]) { should == value }) (Josep M. Bach)
|
448
|
+
|
449
|
+
Bug fixes
|
450
|
+
|
451
|
+
* Explicitly require rspec version to fix broken rdoc task (Hans de Graaff)
|
452
|
+
* Ignore backtrace lines that come from other languages, like Java or
|
453
|
+
Javascript (Charles Lowell)
|
454
|
+
* Rake task now does what is expected when setting (or not setting)
|
455
|
+
fail_on_error and verbose
|
456
|
+
* Fix bug in which before/after(:all) hooks were running on excluded nested
|
457
|
+
groups (Myron Marston)
|
458
|
+
* Fix before(:all) error handling so that it fails examples in nested groups,
|
459
|
+
too (Myron Marston)
|
460
|
+
|
461
|
+
### 2.0.0.beta.22 / 2010-09-12
|
462
|
+
|
463
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.20...v2.0.0.beta.22)
|
464
|
+
|
465
|
+
Enhancements
|
466
|
+
|
467
|
+
* removed at_exit hook
|
468
|
+
* CTRL-C stops the run (almost) immediately
|
469
|
+
* first it cleans things up by running the appropriate after(:all) and
|
470
|
+
after(:suite) hooks
|
471
|
+
* then it reports on any examples that have already run
|
472
|
+
* cleaned up rake task
|
473
|
+
* generate correct task under variety of conditions
|
474
|
+
* options are more consistent
|
475
|
+
* deprecated redundant options
|
476
|
+
* run 'bundle exec autotest' when Gemfile is present
|
477
|
+
* support ERB in .rspec options files (Justin Ko)
|
478
|
+
* depend on bundler for development tasks (Myron Marston)
|
479
|
+
* add example_group_finished to formatters and reporter (Roman Chernyatchik)
|
480
|
+
|
481
|
+
Bug fixes
|
482
|
+
|
483
|
+
* support paths with spaces when using autotest (Andreas Neuhaus)
|
484
|
+
* fix module_exec with ruby 1.8.6 (Myron Marston)
|
485
|
+
* remove context method from top-level
|
486
|
+
* was conflicting with irb, for example
|
487
|
+
* errors in before(:all) are now reported correctly (Chad Humphries)
|
488
|
+
|
489
|
+
Removals
|
490
|
+
|
491
|
+
* removed -o --options-file command line option
|
492
|
+
* use ./.rspec and ~/.rspec
|