rspec 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/{CHANGES → History.txt} +116 -64
- data/Manifest.txt +403 -0
- data/{MIT-LICENSE → README.txt} +43 -0
- data/Rakefile +39 -212
- data/{TODO → TODO.txt} +0 -0
- data/bin/autospec +4 -0
- data/bin/spec +1 -1
- data/examples/pure/yielding_example.rb +33 -0
- data/examples/stories/game-of-life/.loadpath +5 -0
- data/examples/stories/game-of-life/behaviour/everything.rb +1 -1
- data/examples/stories/game-of-life/behaviour/stories/CellsWithMoreThanThreeNeighboursDie.story +17 -17
- data/init.rb +9 -0
- data/lib/autotest/discover.rb +1 -1
- data/lib/autotest/rspec.rb +3 -29
- data/lib/spec.rb +10 -12
- data/lib/spec/adapters.rb +1 -0
- data/lib/spec/adapters/ruby_engine.rb +26 -0
- data/lib/spec/adapters/ruby_engine/mri.rb +8 -0
- data/lib/spec/adapters/ruby_engine/rubinius.rb +8 -0
- data/lib/spec/example/errors.rb +6 -0
- data/lib/spec/example/example_group_methods.rb +17 -14
- data/lib/spec/example/example_matcher.rb +2 -0
- data/lib/spec/example/example_methods.rb +4 -9
- data/lib/spec/example/module_inclusion_warnings.rb +2 -1
- data/lib/spec/expectations/extensions/object.rb +2 -2
- data/lib/spec/expectations/handler.rb +8 -16
- data/lib/spec/extensions/main.rb +2 -17
- data/lib/spec/matchers.rb +8 -2
- data/lib/spec/matchers/be.rb +0 -3
- data/lib/spec/matchers/change.rb +44 -40
- data/lib/spec/matchers/has.rb +1 -1
- data/lib/spec/matchers/have.rb +17 -12
- data/lib/spec/matchers/operator_matcher.rb +10 -4
- data/lib/spec/matchers/simple_matcher.rb +113 -10
- data/lib/spec/mocks.rb +1 -1
- data/lib/spec/mocks/argument_constraints.rb +185 -0
- data/lib/spec/mocks/argument_expectation.rb +35 -173
- data/lib/spec/mocks/framework.rb +1 -1
- data/lib/spec/mocks/message_expectation.rb +30 -5
- data/lib/spec/mocks/methods.rb +14 -2
- data/lib/spec/mocks/mock.rb +4 -0
- data/lib/spec/mocks/proxy.rb +46 -5
- data/lib/spec/mocks/spec_methods.rb +9 -1
- data/lib/spec/rake/spectask.rb +14 -22
- data/lib/spec/rake/verify_rcov.rb +3 -3
- data/lib/spec/runner.rb +18 -6
- data/lib/spec/runner/backtrace_tweaker.rb +6 -7
- data/lib/spec/runner/command_line.rb +6 -17
- data/lib/spec/runner/drb_command_line.rb +1 -1
- data/lib/spec/runner/formatter/base_formatter.rb +3 -1
- data/lib/spec/runner/formatter/base_text_formatter.rb +5 -9
- data/lib/spec/runner/formatter/html_formatter.rb +1 -1
- data/lib/spec/runner/formatter/nested_text_formatter.rb +1 -1
- data/lib/spec/runner/formatter/progress_bar_formatter.rb +2 -2
- data/lib/spec/runner/formatter/specdoc_formatter.rb +1 -1
- data/lib/spec/runner/formatter/story/html_formatter.rb +62 -16
- data/lib/spec/runner/formatter/story/plain_text_formatter.rb +68 -16
- data/lib/spec/runner/formatter/story/progress_bar_formatter.rb +42 -0
- data/lib/spec/runner/heckle_runner.rb +2 -2
- data/lib/spec/runner/option_parser.rb +2 -1
- data/lib/spec/runner/options.rb +18 -9
- data/lib/spec/runner/reporter.rb +24 -4
- data/lib/spec/runner/spec_parser.rb +1 -1
- data/lib/spec/story/runner.rb +1 -2
- data/lib/spec/story/runner/story_mediator.rb +14 -0
- data/lib/spec/story/runner/story_parser.rb +20 -0
- data/lib/spec/story/step.rb +40 -28
- data/lib/spec/story/step_mother.rb +2 -1
- data/lib/spec/story/world.rb +6 -2
- data/lib/spec/version.rb +13 -22
- data/rake_tasks/failing_examples_with_html.rake +1 -1
- data/rake_tasks/verify_rcov.rake +2 -2
- data/rspec.gemspec +33 -0
- data/spec/autotest/rspec_spec.rb +90 -141
- data/spec/spec/adapters/ruby_engine_spec.rb +16 -0
- data/spec/spec/example/base_formatter_spec.rb +112 -0
- data/spec/spec/example/example_group_factory_spec.rb +2 -2
- data/spec/spec/example/example_group_methods_spec.rb +55 -4
- data/spec/spec/example/example_group_spec.rb +4 -3
- data/spec/spec/example/example_methods_spec.rb +18 -14
- data/spec/spec/example/pending_module_spec.rb +38 -0
- data/spec/spec/example/shared_example_group_spec.rb +1 -1
- data/spec/spec/expectations/extensions/object_spec.rb +0 -12
- data/spec/spec/extensions/main_spec.rb +3 -8
- data/spec/spec/matchers/change_spec.rb +16 -6
- data/spec/spec/matchers/handler_spec.rb +58 -37
- data/spec/spec/matchers/has_spec.rb +10 -0
- data/spec/spec/matchers/have_spec.rb +105 -2
- data/spec/spec/matchers/operator_matcher_spec.rb +35 -2
- data/spec/spec/matchers/simple_matcher_spec.rb +64 -2
- data/spec/spec/mocks/any_number_of_times_spec.rb +7 -0
- data/spec/spec/mocks/bug_report_496.rb +17 -0
- data/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +7 -1
- data/spec/spec/mocks/hash_including_matcher_spec.rb +45 -24
- data/spec/spec/mocks/mock_spec.rb +55 -10
- data/spec/spec/mocks/nil_expectation_warning_spec.rb +54 -0
- data/spec/spec/mocks/null_object_mock_spec.rb +14 -0
- data/spec/spec/mocks/options_hash_spec.rb +18 -28
- data/spec/spec/mocks/partial_mock_spec.rb +2 -0
- data/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +20 -6
- data/spec/spec/mocks/stub_spec.rb +7 -0
- data/spec/spec/runner/command_line_spec.rb +5 -12
- data/spec/spec/runner/drb_command_line_spec.rb +13 -6
- data/spec/spec/runner/formatter/html_formatter_spec.rb +2 -1
- data/spec/spec/runner/formatter/nested_text_formatter_spec.rb +3 -3
- data/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +20 -2
- data/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +2 -1
- data/spec/spec/runner/formatter/specdoc_formatter_spec.rb +3 -3
- data/spec/spec/runner/formatter/story/html_formatter_spec.rb +76 -2
- data/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +161 -0
- data/spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb +82 -0
- data/spec/spec/runner/heckle_runner_spec.rb +8 -8
- data/spec/spec/runner/option_parser_spec.rb +21 -6
- data/spec/spec/runner/output_one_time_fixture_runner.rb +1 -1
- data/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +6 -0
- data/spec/spec/runner/reporter_spec.rb +51 -5
- data/spec/spec/runner/spec_parser_spec.rb +4 -4
- data/spec/spec/story/runner/plain_text_story_runner_spec.rb +2 -5
- data/spec/spec/story/runner/story_mediator_spec.rb +10 -0
- data/spec/spec/story/runner/story_parser_spec.rb +23 -6
- data/spec/spec/story/scenario_spec.rb +1 -3
- data/spec/spec/story/step_mother_spec.rb +12 -0
- data/spec/spec/story/step_spec.rb +57 -4
- data/spec/spec/story/story_spec.rb +1 -3
- data/spec/spec/story/world_spec.rb +1 -1
- data/spec/spec_helper.rb +21 -68
- data/stories/all.rb +1 -1
- data/stories/configuration/before_blocks.story +21 -0
- data/stories/configuration/stories.rb +7 -0
- data/stories/example_groups/stories.rb +3 -4
- data/stories/resources/spec/before_blocks_example.rb +32 -0
- data/stories/stories/multiline_steps.story +23 -0
- data/stories/stories/steps/multiline_steps.rb +13 -0
- data/stories/stories/stories.rb +6 -0
- data/story_server/prototype/javascripts/builder.js +136 -0
- data/story_server/prototype/javascripts/controls.js +972 -0
- data/story_server/prototype/javascripts/dragdrop.js +976 -0
- data/story_server/prototype/javascripts/effects.js +1117 -0
- data/story_server/prototype/javascripts/prototype.js +4140 -0
- data/story_server/prototype/javascripts/rspec.js +149 -0
- data/story_server/prototype/javascripts/scriptaculous.js +58 -0
- data/story_server/prototype/javascripts/slider.js +276 -0
- data/story_server/prototype/javascripts/sound.js +55 -0
- data/story_server/prototype/javascripts/unittest.js +568 -0
- data/story_server/prototype/lib/server.rb +24 -0
- data/story_server/prototype/stories.html +176 -0
- data/story_server/prototype/stylesheets/rspec.css +136 -0
- data/story_server/prototype/stylesheets/test.css +90 -0
- metadata +166 -166
- data/README +0 -36
- data/UPGRADE +0 -7
- data/bin/spec_translator +0 -8
- data/lib/spec/mocks/argument_constraint_matchers.rb +0 -31
- data/lib/spec/translator.rb +0 -114
- data/spec/spec/example/example_spec.rb +0 -53
- data/spec/spec/runner/execution_context_spec.rb +0 -37
- data/spec/spec/translator_spec.rb +0 -265
data/{CHANGES → History.txt}
RENAMED
|
@@ -1,4 +1,55 @@
|
|
|
1
|
-
|
|
1
|
+
=== Version 1.1.5
|
|
2
|
+
|
|
3
|
+
IMPORTANT: use the new 'autospec' command instead of 'autotest'. We changed
|
|
4
|
+
the way autotest discovers rspec so the autotest executable won't
|
|
5
|
+
automatically load rspec anymore. This allows rspec to live side by side other
|
|
6
|
+
spec frameworks without always co-opting autotest through autotest's discovery
|
|
7
|
+
mechanism.
|
|
8
|
+
|
|
9
|
+
ALSO IMPORTANT: $rspec_options is gone. If you were using this for anything
|
|
10
|
+
(like your own runners), use Spec::Runner.options instead.
|
|
11
|
+
|
|
12
|
+
ADDITIONALLY IMPORTANT: If you have any custom formatters, you'll need to
|
|
13
|
+
modify #example_pending to accept three arguments instead of just two. See the
|
|
14
|
+
rdoc for Spec::Runner::Formatter::BaseFormatter#example_pending for more
|
|
15
|
+
information.
|
|
16
|
+
|
|
17
|
+
* Consider MinGW as valid RUBY_PLATFORM for --colour option. (patch from Luis Lavena). Closes #406.
|
|
18
|
+
* Added additional characters to be escaped in step strings (patch from Jake Cahoon). Closes #417.
|
|
19
|
+
* Disable color codes on STDOUT when STDOUT.tty? is false (patch from Tim Pope). Closes #413.
|
|
20
|
+
* mock(:null_object=>true) plays nice with HTML (patch from Gerrit Kaiser). Closes #230.
|
|
21
|
+
* a step definition with no block is treated as pending
|
|
22
|
+
* make sure consolidate_failures only grabs _spec files. Closes #369
|
|
23
|
+
* Simplifying ExampleGroupMethods#registration_backtrace. (From Wilson Bilkovich - http://metaclass.org/2008/6/7/calling-in-the-dark)
|
|
24
|
+
* Use 127.0.0.1 instead of localhost for drb (thanks Ola Bini)
|
|
25
|
+
* html story formatter correctly colors story/scenario red if step fails (Patch from Joseph Wilk). Closes #300
|
|
26
|
+
* plain text story formatter correctly colors story/scenario red if step fails (Patch from Joseph Wilk). Closes #439
|
|
27
|
+
* quiet deprecation warning on inflector - patch from RSL. Closes #430
|
|
28
|
+
* added autospec executable
|
|
29
|
+
* added configurable messages to simple_matcher
|
|
30
|
+
* should and should_not return true on success
|
|
31
|
+
* use hoe for build/release
|
|
32
|
+
* bye, bye translator
|
|
33
|
+
* autotest/rspec uses ruby command instead of spec command (no need for spec command unless loading directories)
|
|
34
|
+
* Avoid 'invalid option -O' in autotest (patch from Jonathan del Strother). Closes #486.
|
|
35
|
+
* Fix: Unimplemented step with new line throws error (patch from Ben Mabey). Closes #494.
|
|
36
|
+
* Only use color codes on tty; override for autospec (patch from Tim Pope). Closes #413.
|
|
37
|
+
* Warn when setting mock expectations on nil (patch from Ben Mabey). Closes #521.
|
|
38
|
+
* Support argument constraints as values in the hash_including contstraint. Thanks to Pirkka Hartikainen for failing code examples and the fix. Buttons up #501.
|
|
39
|
+
* mock(:null_object=>true) plays nice with HTML (patch from Gerrit Kaiser)
|
|
40
|
+
* Consider MinGW as valid RUBY_PLATFORM for --colour option. (patch from Luis Lavena). Closes #406.
|
|
41
|
+
* Add 2nd arg to respond_to? to align w/ core Ruby rdoc: http://www.ruby-doc.org/core/classes/Object.html#M000604
|
|
42
|
+
* quiet backtrace tweaker filters individual lines out of multiline (ala Rails) error messages (Pat Maddox)
|
|
43
|
+
* added ability to stub multiple methods in one stub! call (Pat Maddox)
|
|
44
|
+
* story progress bar formatter and more colourful summaries from the plain text story formatter (Joseph Wilk)
|
|
45
|
+
* Avoid ruby invocation errors when autotesting (Jonathan del Strother)
|
|
46
|
+
* added mock('foo').as_null_object
|
|
47
|
+
* add file and line number to pending_example for formatters (Scott Taylor)
|
|
48
|
+
* return last stubbed value for mock expectation with no explicit return (Pat Maddox)
|
|
49
|
+
* Fixed bug when should_receive(:foo).any_number_of_times is called after similar stub (Pat Maddox)
|
|
50
|
+
* Warning messages now issued when expectations are set on nil (Ben Mabey)
|
|
51
|
+
|
|
52
|
+
=== Version 1.1.4
|
|
2
53
|
|
|
3
54
|
Maintenance release.
|
|
4
55
|
|
|
@@ -6,6 +57,7 @@ Note: we've removed the metaclass method from Object. There were some
|
|
|
6
57
|
generated specs that used it, and they will now break. Just replace the
|
|
7
58
|
metaclass call with (class << self; self; end) and all will be well.
|
|
8
59
|
|
|
60
|
+
* added hash_including mock argument matcher. Closes #332 (patch from Rick DeNatale)
|
|
9
61
|
* pending steps print out yellow in stories (patch from Kyle Hargraves)
|
|
10
62
|
* Deprecation warnings for specs that assume auto-inclusion of modules. Closes #326 (patch from Scott Taylor)
|
|
11
63
|
* mock.should_not_receive(:anything) fails fast (once again)
|
|
@@ -29,9 +81,9 @@ metaclass call with (class << self; self; end) and all will be well.
|
|
|
29
81
|
* The after(:suite) callback lambda is passed a boolean representing whether the suite passed or failed
|
|
30
82
|
* Added NestedTextFormatter. Closes #366.
|
|
31
83
|
* decoupled mock framework from global extensions used by rspec - supports use of flexmock or mocha w/ rails
|
|
32
|
-
* Applied patch from Roman Chernyatchik to allow the user to pass in the
|
|
84
|
+
* Applied patch from Roman Chernyatchik to allow the user to pass in the ruby version into spectask. Closes #325, #370
|
|
33
85
|
|
|
34
|
-
|
|
86
|
+
=== Version 1.1.3
|
|
35
87
|
|
|
36
88
|
Maintenance release.
|
|
37
89
|
Notice to autotest users: you must also upgrade to ZenTest-3.9.0.
|
|
@@ -49,7 +101,7 @@ Notice to autotest users: you must also upgrade to ZenTest-3.9.0.
|
|
|
49
101
|
* More tweaks to regexp step names
|
|
50
102
|
* Fixed focused specs in nested ExampleGroups. Closes #225.
|
|
51
103
|
|
|
52
|
-
|
|
104
|
+
=== Version 1.1.2
|
|
53
105
|
|
|
54
106
|
Minor bug fixes/enhancements.
|
|
55
107
|
Notice to autotest users: you must also upgrade to ZenTest-3.8.0.
|
|
@@ -65,14 +117,14 @@ Notice to autotest users: you must also upgrade to ZenTest-3.8.0.
|
|
|
65
117
|
* Applied patch from Ian Dees to quiet the Story Runner backtrace. Closes #183.
|
|
66
118
|
* Complete support for defining steps with regexp 'names'.
|
|
67
119
|
|
|
68
|
-
|
|
120
|
+
=== Version 1.1.1
|
|
69
121
|
|
|
70
122
|
Bug fix release.
|
|
71
123
|
|
|
72
124
|
* Fix regression in 1.1.0 that caused transactions to not get rolled back between examples.
|
|
73
125
|
* Applied patch from Bob Cotton to reintroduce ExampleGroup.description_options. Closes LH[#186]
|
|
74
126
|
|
|
75
|
-
|
|
127
|
+
=== Version 1.1.0
|
|
76
128
|
|
|
77
129
|
The "tell me a story and go nest yourself" release.
|
|
78
130
|
|
|
@@ -83,7 +135,7 @@ The "tell me a story and go nest yourself" release.
|
|
|
83
135
|
* Applied LH[#178] small annoyances running specs with warnings enabled (Patch from Mikko Lehtonen)
|
|
84
136
|
* Tighter integration with Rails fixtures. Take advantage of fixture caching to get performance improvements (Thanks to Pat Maddox, Nick Kallen, Jonathan Barnes, and Curtis)
|
|
85
137
|
|
|
86
|
-
|
|
138
|
+
=== Version 1.1.0-RC1
|
|
87
139
|
|
|
88
140
|
Textmate Bundle users - this release adds a new RSpec bundle that highlights describe, it, before and after and
|
|
89
141
|
provides navigation to descriptions and examples (rather than classes and methods). When you first install this,
|
|
@@ -193,18 +245,18 @@ rspec_on_rails users - don't forget to run script/generate rspec
|
|
|
193
245
|
* Added (back) the verbose attribute in Spec::Rake::SpecTask
|
|
194
246
|
* Changed documentation to point at the new http svn URL, which is more accessible.
|
|
195
247
|
|
|
196
|
-
|
|
248
|
+
=== Version 1.0.8
|
|
197
249
|
|
|
198
250
|
Another bugfix release - this time to resolve the version mismatch
|
|
199
251
|
|
|
200
|
-
|
|
252
|
+
=== Version 1.0.7
|
|
201
253
|
|
|
202
254
|
Quick bugfix release to ensure that you don't have to have the rspec gem installed
|
|
203
255
|
in order to use autotest with rspec_on_rails.
|
|
204
256
|
|
|
205
257
|
* Fixed [#13015] autotest gives failure in 'spec_command' after upgrade 1.0.5 to 1.0.6
|
|
206
258
|
|
|
207
|
-
|
|
259
|
+
=== Version 1.0.6
|
|
208
260
|
|
|
209
261
|
The "holy cow, batman, it's been a long time since we released and there are a ton of bug
|
|
210
262
|
fixes, patches and even new features" release.
|
|
@@ -281,7 +333,7 @@ able to use the passed Example instance as if it were a String.
|
|
|
281
333
|
* Documented environment variables for Spec::Rake::SpecTask. Renamed SPECOPTS and RCOVOPTS to SPEC_OPTS and RCOV_OPTS.
|
|
282
334
|
* Fixed [#10534] Windows: undefined method 'controller_name'
|
|
283
335
|
|
|
284
|
-
|
|
336
|
+
=== Version 1.0.5
|
|
285
337
|
Bug fixes. Autotest plugin tweaks.
|
|
286
338
|
|
|
287
339
|
* Fixed [#11378] fix to 10814 broke drb (re-opened #10814)
|
|
@@ -293,7 +345,7 @@ Bug fixes. Autotest plugin tweaks.
|
|
|
293
345
|
* Fixed [#11247] standalone autotest doesn't work because of unneeded autotest.rb
|
|
294
346
|
* Applied [#11221] Autotest support does not work w/o Rails Gem installed (Patch from Josh Knowles)
|
|
295
347
|
|
|
296
|
-
|
|
348
|
+
=== Version 1.0.4
|
|
297
349
|
The getting ready for JRuby release.
|
|
298
350
|
|
|
299
351
|
* Fixed [#11181] behaviour_type scoping of config.before(:each) is not working
|
|
@@ -305,7 +357,7 @@ The getting ready for JRuby release.
|
|
|
305
357
|
* Fixed [#11143] Views code for ActionController::Base#render broke between 1.0.0 and 1.0.3 on Rails Edge r6731
|
|
306
358
|
* Added raise_controller_errors for controller examples in Spec::Rails
|
|
307
359
|
|
|
308
|
-
|
|
360
|
+
=== Version 1.0.3
|
|
309
361
|
Bug fixes.
|
|
310
362
|
|
|
311
363
|
* Fixed [#11104] Website uses old specify notation
|
|
@@ -316,10 +368,10 @@ Bug fixes.
|
|
|
316
368
|
* Fixed [#11082] RspecResourceGenerator should be RspecScaffoldGenerator
|
|
317
369
|
* Fixed [#10959] Focused Examples do not work for Behaviour defined with constant with modules
|
|
318
370
|
|
|
319
|
-
|
|
371
|
+
=== Version 1.0.2
|
|
320
372
|
This is just to align the version numbers in rspec and rspec_on_rails.
|
|
321
373
|
|
|
322
|
-
|
|
374
|
+
=== Version 1.0.1
|
|
323
375
|
This is a maintenance release with mostly cleaning up, and one minor enhancement -
|
|
324
376
|
Modules are automatically included when described directly.
|
|
325
377
|
|
|
@@ -331,7 +383,7 @@ Modules are automatically included when described directly.
|
|
|
331
383
|
* Improved integration with autotest (Patches from Ryan Davis and David Goodland)
|
|
332
384
|
* Some small fixes to make all specs run on JRuby.
|
|
333
385
|
|
|
334
|
-
|
|
386
|
+
=== Version 1.0.0
|
|
335
387
|
The stake in the ground release. This represents a commitment to the API as it is. No significant
|
|
336
388
|
backwards compatibility changes in the API are expected after this release.
|
|
337
389
|
|
|
@@ -356,7 +408,7 @@ backwards compatibility changes in the API are expected after this release.
|
|
|
356
408
|
* Applied [#10698] Running with --drb executes specs twice (patch from Ruy Asan)
|
|
357
409
|
* Fixed [#10871] 0.9.4 - Focussed spec runner fails to run specs in descriptions with type and string when there is no leading space in the string
|
|
358
410
|
|
|
359
|
-
|
|
411
|
+
=== Version 0.9.4
|
|
360
412
|
This release introduces massive improvements to Spec::Ui - the user interface functional testing
|
|
361
413
|
extension to RSpec. There are also some minor bug fixes to the RSpec core.
|
|
362
414
|
|
|
@@ -369,7 +421,7 @@ extension to RSpec. There are also some minor bug fixes to the RSpec core.
|
|
|
369
421
|
* Each formatter now flushes their own IO. This is to avoid buffering of output.
|
|
370
422
|
* Fixed [#10670] IVarProxy#delete raises exception when instance variable does not exist
|
|
371
423
|
|
|
372
|
-
|
|
424
|
+
=== Version 0.9.3
|
|
373
425
|
This is a bugfix release.
|
|
374
426
|
|
|
375
427
|
* Fixed [#10594] Failing Custom Matcher show NAME NOT GENERATED description
|
|
@@ -378,7 +430,7 @@ This is a bugfix release.
|
|
|
378
430
|
* Applied [#10566] prepend_before and prepend_after callbacks
|
|
379
431
|
* Applied [#10567] Call setup and teardown using before and after callbacks
|
|
380
432
|
|
|
381
|
-
|
|
433
|
+
=== Version 0.9.2
|
|
382
434
|
This is a quick maintenance release.
|
|
383
435
|
|
|
384
436
|
* Added some website love
|
|
@@ -388,7 +440,7 @@ This is a quick maintenance release.
|
|
|
388
440
|
* Fixed --colour support for Windows. This is a regression that was introduced in 0.9.1
|
|
389
441
|
* Applied [#10460] Make SpecRunner easier to instantiate without using commandline args
|
|
390
442
|
|
|
391
|
-
|
|
443
|
+
=== Version 0.9.1
|
|
392
444
|
|
|
393
445
|
This release introduces #describe and #it (aliased as #context and #specify for
|
|
394
446
|
backwards compatibility). This allows you to express specs like this:
|
|
@@ -505,15 +557,15 @@ See Spec::DSL::Behaviour for more on predicate_matchers
|
|
|
505
557
|
* Applied [#8994] trunk: generated names for be_ specs (Multiple patches from Yurii Rashkovskii)
|
|
506
558
|
* Applied [#9983]: Allow before and after to be called in BehaviourEval. This is useful for shared examples.
|
|
507
559
|
|
|
508
|
-
|
|
560
|
+
=== Version 0.8.2
|
|
509
561
|
|
|
510
562
|
Replaced assert_select fork with an assert_select wrapper for have_tag. This means that "should have_rjs" no longer supports :hide or :effect, but you can still use should_have_rjs for those.
|
|
511
563
|
|
|
512
|
-
|
|
564
|
+
=== Version 0.8.1
|
|
513
565
|
|
|
514
566
|
Quick "in house" bug-fix
|
|
515
567
|
|
|
516
|
-
|
|
568
|
+
=== Version 0.8.0
|
|
517
569
|
|
|
518
570
|
This release introduces a new approach to handling expectations using Expression Matchers.
|
|
519
571
|
|
|
@@ -573,11 +625,11 @@ It also sports myriad new features, bug fixes, patches and general goodness:
|
|
|
573
625
|
* Applied [#7393] Fix for rake task (Patch from Pat Maddox)
|
|
574
626
|
* Reinstated support for response.should_render (in addition to controller.should_render)
|
|
575
627
|
|
|
576
|
-
|
|
628
|
+
=== Version 0.7.5.1
|
|
577
629
|
|
|
578
630
|
Bug fix release to allow downloads of rspec gem using rubygems 0.9.1.
|
|
579
631
|
|
|
580
|
-
|
|
632
|
+
=== Version 0.7.5
|
|
581
633
|
This release adds support for Heckle - Seattle'rb's code mutation tool.
|
|
582
634
|
There are also several bug fixes to the RSpec core and the RSpec on Rails plugin.
|
|
583
635
|
|
|
@@ -600,7 +652,7 @@ There are also several bug fixes to the RSpec core and the RSpec on Rails plugin
|
|
|
600
652
|
* Applied [#6989] partials with locals (patch from Micah Martin)
|
|
601
653
|
* Applied [#7023] Typo in team.page
|
|
602
654
|
|
|
603
|
-
|
|
655
|
+
=== Version 0.7.4
|
|
604
656
|
|
|
605
657
|
This release features a complete redesign of the reports generated with --format html.
|
|
606
658
|
As usual there are many bug fixes - mostly related to spec/rails.
|
|
@@ -622,7 +674,7 @@ As usual there are many bug fixes - mostly related to spec/rails.
|
|
|
622
674
|
* Using obj.inspect for all messages
|
|
623
675
|
* Improved performance by getting rid of instance_exec (instance_eval is good enough because we never need to pass it args)
|
|
624
676
|
|
|
625
|
-
|
|
677
|
+
=== Version 0.7.3
|
|
626
678
|
|
|
627
679
|
Almost normal bug fix/new feature release.
|
|
628
680
|
|
|
@@ -643,7 +695,7 @@ A couple of things you need to change in your rails specs:
|
|
|
643
695
|
* Fixed [#6643] script/generate rspec_controller: invalid symbol generation for 'controller_name' for *modularized* controllers
|
|
644
696
|
* The script/rails_spec command has been moved to bin/drbspec in RSpec core (installed by the gem)
|
|
645
697
|
|
|
646
|
-
|
|
698
|
+
=== Version 0.7.2
|
|
647
699
|
|
|
648
700
|
This release introduces a brand new RSpec bundle for TextMate, plus some small bugfixes.
|
|
649
701
|
|
|
@@ -655,7 +707,7 @@ This release introduces a brand new RSpec bundle for TextMate, plus some small b
|
|
|
655
707
|
* Added [#6589] New -l --line option. This is useful for IDE/editor runners/extensions.
|
|
656
708
|
* Fixed [#6615] controller.should_render_rjs should support :partial => 'path/to/template'
|
|
657
709
|
|
|
658
|
-
|
|
710
|
+
=== Version 0.7.1
|
|
659
711
|
|
|
660
712
|
Bug fixes and a couple o' new features.
|
|
661
713
|
|
|
@@ -674,7 +726,7 @@ Bug fixes and a couple o' new features.
|
|
|
674
726
|
* Different printing and colours for unmet expectations (red) and other exceptions (magenta)
|
|
675
727
|
* Simplified method_missing on mock_methods to make it less invasive on partial mocks.
|
|
676
728
|
|
|
677
|
-
|
|
729
|
+
=== Version 0.7.0
|
|
678
730
|
|
|
679
731
|
This is the "Grow up and eat your own dog food release". RSpec is now used on itself and
|
|
680
732
|
we're no longer using Test::Unit to test it. Although, we are still extending Test::Unit
|
|
@@ -761,7 +813,7 @@ As usual, there are also other new features and bug fixes:
|
|
|
761
813
|
* Added [#6334] subject.should_have_xyz will try to call subject.has_xyz? - use this for hash.should_have_key(key)
|
|
762
814
|
* Fixed [#6017] Rake task should ignore empty or non-existent spec-dirs
|
|
763
815
|
|
|
764
|
-
|
|
816
|
+
=== Version 0.6.4
|
|
765
817
|
|
|
766
818
|
In addition to a number of bug fixes and patches, this release begins to formalize the support for
|
|
767
819
|
RSpec on Rails.
|
|
@@ -787,7 +839,7 @@ RSpec on Rails.
|
|
|
787
839
|
* Restructured directories and Modules in order to separate rspec into three distinct Modules: Spec::Expectations, Spec::Runner and Spec::Mocks. This will allow us to more easily integrate other mock frameworks and/or allow test/unit users to take advantage of the expectation API.
|
|
788
840
|
* Applied [#5620] support any boolean method and arbitrary comparisons (5.should_be < 6) (Patch from Mike Williams)
|
|
789
841
|
|
|
790
|
-
|
|
842
|
+
=== Version 0.6.3
|
|
791
843
|
|
|
792
844
|
This release fixes some minor bugs related to RSpec on Rails
|
|
793
845
|
Note that if you upgrade a rails app with this version of the rspec_on_rails plugin
|
|
@@ -797,14 +849,14 @@ you should remove your lib/tasks/rspec.rake if it exists.
|
|
|
797
849
|
* Applied [#5557] Put rspec.rake into the task directory of the RSpec on Rails plugin (Patch from Daniel Siemssen)
|
|
798
850
|
* Applied [#5556] rails_spec_server loads environment.rb twice (Patch from Daniel Siemssen)
|
|
799
851
|
|
|
800
|
-
|
|
852
|
+
=== Version 0.6.2
|
|
801
853
|
This release fixes a couple of regressions with the rake task that were introduced in the previous version (0.6.1)
|
|
802
854
|
|
|
803
855
|
* Fixed [#5518] ruby -w: warnings in 0.6.1
|
|
804
856
|
* Applied [#5525] fix rake task path to spec tool for gem-installed rspec (patch from Riley Lynch)
|
|
805
857
|
* Fixed a teensey regression with the rake task - introduced in 0.6.1. The spec command is now quoted so it works on windows.
|
|
806
858
|
|
|
807
|
-
|
|
859
|
+
=== Version 0.6.1
|
|
808
860
|
This is the "fix the most annoying bugs release" of RSpec. There are 9 bugfixes this time.
|
|
809
861
|
Things that may break backwards compatibility:
|
|
810
862
|
1) Spec::Rake::SpecTask no longer has the options attribute. Use ruby_opts, spec_opts and rcov_opts instead.
|
|
@@ -819,7 +871,7 @@ Things that may break backwards compatibility:
|
|
|
819
871
|
* Applied fixes to rails_spec_server to improve its ability to run several times. (Patch from Daniel Siemssen)
|
|
820
872
|
* Changed RCov::VerifyTask to fail if the coverage is above the threshold. This is to ensure it gets bumped when coverage improves.
|
|
821
873
|
|
|
822
|
-
|
|
874
|
+
=== Version 0.6.0
|
|
823
875
|
This release makes an official commitment to underscore_syntax (with no more support for dot.syntax)
|
|
824
876
|
|
|
825
877
|
* Fixed bug (5292) that caused mock argument matching to fail
|
|
@@ -831,7 +883,7 @@ This release makes an official commitment to underscore_syntax (with no more sup
|
|
|
831
883
|
* Added support for should_not_receive(:msg) (will be removing should_receive(:msg).never some time soon)
|
|
832
884
|
* Added support for should_have_exactly(5).items_in_collection
|
|
833
885
|
|
|
834
|
-
|
|
886
|
+
=== Version 0.5.16
|
|
835
887
|
This release improves Rails support and test2spec translation.
|
|
836
888
|
|
|
837
889
|
* Fixed underscore problems that occurred when RSpec was used in Rails
|
|
@@ -841,12 +893,12 @@ This release improves Rails support and test2spec translation.
|
|
|
841
893
|
* Added failure_message to RSpec Rake task
|
|
842
894
|
* test2spec now defines converted helper methods outside of the setup block (bug #5057).
|
|
843
895
|
|
|
844
|
-
|
|
896
|
+
=== Version 0.5.15
|
|
845
897
|
This release removes a prematurely added feature that shouldn't have been added.
|
|
846
898
|
|
|
847
899
|
* Removed support for differences that was added in 0.5.14. The functionality is not aligned with RSpec's vision.
|
|
848
900
|
|
|
849
|
-
|
|
901
|
+
=== Version 0.5.14
|
|
850
902
|
This release introduces better ways to extend specs, improves some of the core API and
|
|
851
903
|
a experimental support for faster rails specs.
|
|
852
904
|
|
|
@@ -858,7 +910,7 @@ a experimental support for faster rails specs.
|
|
|
858
910
|
* Fixed bug that caused should_render to break if given a :symbol (in Rails)
|
|
859
911
|
* Added support for comparing exception message in should_raise and should_not_raise
|
|
860
912
|
|
|
861
|
-
|
|
913
|
+
=== Version 0.5.13
|
|
862
914
|
This release fixes some subtle bugs in the mock API.
|
|
863
915
|
|
|
864
916
|
* Use fully-qualified class name of Exceptions in failure message. Easier to debug that way.
|
|
@@ -866,7 +918,7 @@ This release fixes some subtle bugs in the mock API.
|
|
|
866
918
|
* Mocks not raise AmbiguousReturnError if an explicit return is used at the same time as an expectation block.
|
|
867
919
|
* Blocks passed to yielding mocks can now raise without causing mock verification to fail.
|
|
868
920
|
|
|
869
|
-
|
|
921
|
+
=== Version 0.5.12
|
|
870
922
|
This release adds diff support for failure messages, a HTML formatter plus some other
|
|
871
923
|
minor enhancements.
|
|
872
924
|
|
|
@@ -878,26 +930,26 @@ minor enhancements.
|
|
|
878
930
|
* Added --verbose mode for test2spec - useful for debugging when classes fail to translate.
|
|
879
931
|
* Output of various formatters is now flushed - to get more continuous output.
|
|
880
932
|
|
|
881
|
-
|
|
933
|
+
=== Version 0.5.11
|
|
882
934
|
This release makes test2spec usable with Rails (with some manual steps).
|
|
883
935
|
See http://rspec.rubyforge.org/tools/rails.html for more details
|
|
884
936
|
|
|
885
937
|
* test2spec now correctly translates bodies of helper methods (non- test_*, setup and teardown ones).
|
|
886
938
|
* Added more documentation about how to get test2spec to work with Rails.
|
|
887
939
|
|
|
888
|
-
|
|
940
|
+
=== Version 0.5.10
|
|
889
941
|
This version features a second rewrite of test2spec - hopefully better than the previous one.
|
|
890
942
|
|
|
891
943
|
* Improved test2spec's internals. It now transforms the syntax tree before writing out the code.
|
|
892
944
|
|
|
893
|
-
|
|
945
|
+
=== Version 0.5.9
|
|
894
946
|
This release improves test2spec by allowing more control over the output
|
|
895
947
|
|
|
896
948
|
* Added --template option to test2spec, which allows for custom output driven by ERB
|
|
897
949
|
* Added --quiet option to test2spec
|
|
898
950
|
* Removed unnecessary dependency on RubyToC
|
|
899
951
|
|
|
900
|
-
|
|
952
|
+
=== Version 0.5.8
|
|
901
953
|
This release features a new Test::Unit to RSpec translation tool.
|
|
902
954
|
Also note that the RubyGem of the previous release (0.5.7) was corrupt.
|
|
903
955
|
We're close to being able to translate all of RSpec's own Test::Unit
|
|
@@ -906,7 +958,7 @@ tests and have them run successfully!
|
|
|
906
958
|
* Updated test2spec documentation.
|
|
907
959
|
* Replaced old test2rspec with a new test2spec, which is based on ParseTree and RubyInline.
|
|
908
960
|
|
|
909
|
-
|
|
961
|
+
=== Version 0.5.7
|
|
910
962
|
This release changes examples and documentation to recommend underscores rather than dots,
|
|
911
963
|
and addresses some bugfixes and changes to the spec commandline.
|
|
912
964
|
|
|
@@ -914,12 +966,12 @@ and addresses some bugfixes and changes to the spec commandline.
|
|
|
914
966
|
* All documentation and examples are now using '_' instead of '.'
|
|
915
967
|
* Custom external formatters can now be specified via --require and --format.
|
|
916
968
|
|
|
917
|
-
|
|
969
|
+
=== Version 0.5.6
|
|
918
970
|
This release fixes a bug in the Rails controller generator
|
|
919
971
|
|
|
920
972
|
* The controller generator did not write correct source code (missing 'do'). Fixed.
|
|
921
973
|
|
|
922
|
-
|
|
974
|
+
=== Version 0.5.5
|
|
923
975
|
This release adds initial support for Ruby on Rails in the rspec_generator gem.
|
|
924
976
|
|
|
925
977
|
* [Rails] Reorganised Lachie's original code to be a generator packaged as a gem rather than a plugin.
|
|
@@ -927,7 +979,7 @@ This release adds initial support for Ruby on Rails in the rspec_generator gem.
|
|
|
927
979
|
* Remove stack trace lines from TextMate's Ruby bundle
|
|
928
980
|
* Better error message from spectask when no spec files are found.
|
|
929
981
|
|
|
930
|
-
|
|
982
|
+
=== Version 0.5.4
|
|
931
983
|
The "the tutorial is ahead of the gem" release
|
|
932
984
|
|
|
933
985
|
* Support for running a single spec with --spec
|
|
@@ -952,7 +1004,7 @@ The "the tutorial is ahead of the gem" release
|
|
|
952
1004
|
* backtrace excludes rspec code - use -b to include it
|
|
953
1005
|
* split examples into examples (passing) and failing_examples
|
|
954
1006
|
|
|
955
|
-
|
|
1007
|
+
=== Version 0.5.3
|
|
956
1008
|
The "hurry up, CoR is in two days" release.
|
|
957
1009
|
|
|
958
1010
|
* Don't run rcov by default
|
|
@@ -961,14 +1013,14 @@ The "hurry up, CoR is in two days" release.
|
|
|
961
1013
|
* Even more failure output cleanup (simplification)
|
|
962
1014
|
* Added duck_type constraint for mocks
|
|
963
1015
|
|
|
964
|
-
|
|
1016
|
+
=== Version 0.5.2
|
|
965
1017
|
This release has minor improvements to the commandline and fixes some gem warnings
|
|
966
1018
|
|
|
967
1019
|
* Readded README to avoid RDoc warnings
|
|
968
1020
|
* Added --version switch to commandline
|
|
969
1021
|
* More changes to the mock API
|
|
970
1022
|
|
|
971
|
-
|
|
1023
|
+
=== Version 0.5.1
|
|
972
1024
|
This release is the first release of RSpec with a new website. It will look better soon.
|
|
973
1025
|
|
|
974
1026
|
* Added initial documentation for API
|
|
@@ -978,7 +1030,7 @@ This release is the first release of RSpec with a new website. It will look bett
|
|
|
978
1030
|
* Various changes to the mock API,
|
|
979
1031
|
* Various improvements to failure reporting
|
|
980
1032
|
|
|
981
|
-
|
|
1033
|
+
=== Version 0.5.0
|
|
982
1034
|
This release introduces a new API and obsolesces previous versions.
|
|
983
1035
|
|
|
984
1036
|
* Moved source code to separate subfolders
|
|
@@ -988,20 +1040,20 @@ This release introduces a new API and obsolesces previous versions.
|
|
|
988
1040
|
* this would be 0.5.0 if I updated the documentation
|
|
989
1041
|
* it breaks all of your existing specifications. We're not sorry.
|
|
990
1042
|
|
|
991
|
-
|
|
1043
|
+
=== Version 0.3.2
|
|
992
1044
|
|
|
993
1045
|
The "srbaker is an idiot" release.
|
|
994
1046
|
|
|
995
1047
|
* also forgot to update the path to the actual Subversion repository
|
|
996
1048
|
* this should be it
|
|
997
1049
|
|
|
998
|
-
|
|
1050
|
+
=== Version 0.3.1
|
|
999
1051
|
|
|
1000
1052
|
This is just 0.3.0, but with the TUTORIAL added to the documentation list.
|
|
1001
1053
|
|
|
1002
1054
|
* forgot to include TUTORIAL in the documentation
|
|
1003
1055
|
|
|
1004
|
-
|
|
1056
|
+
=== Version 0.3.0
|
|
1005
1057
|
|
|
1006
1058
|
It's been a while since last release, lots of new stuff is available. For instance:
|
|
1007
1059
|
|
|
@@ -1010,7 +1062,7 @@ It's been a while since last release, lots of new stuff is available. For insta
|
|
|
1010
1062
|
* some documentation improvements
|
|
1011
1063
|
* RSpec usable as a DSL
|
|
1012
1064
|
|
|
1013
|
-
|
|
1065
|
+
=== Version 0.2.0
|
|
1014
1066
|
|
|
1015
1067
|
This release provides a tutorial for new users wishing to get started with
|
|
1016
1068
|
RSpec, and many improvements.
|
|
@@ -1019,7 +1071,7 @@ RSpec, and many improvements.
|
|
|
1019
1071
|
* update the examples to the new mock api
|
|
1020
1072
|
* added TUTORIAL, a getting started document for new users of RSpec
|
|
1021
1073
|
|
|
1022
|
-
|
|
1074
|
+
=== Version 0.1.7
|
|
1023
1075
|
|
|
1024
1076
|
This release improves installation and documentation, mock integration and error reporting.
|
|
1025
1077
|
|
|
@@ -1034,27 +1086,27 @@ This release improves installation and documentation, mock integration and error
|
|
|
1034
1086
|
* Made more parts of the Spec::Context API private to avoid accidental usage.
|
|
1035
1087
|
* Added more RDoc to Spec::Context.
|
|
1036
1088
|
|
|
1037
|
-
|
|
1089
|
+
=== Version 0.1.6
|
|
1038
1090
|
|
|
1039
1091
|
More should methods.
|
|
1040
1092
|
|
|
1041
1093
|
* Added should_match and should_not_match.
|
|
1042
1094
|
|
|
1043
|
-
|
|
1095
|
+
=== Version 0.1.5
|
|
1044
1096
|
|
|
1045
1097
|
Included examples and tests in gem.
|
|
1046
1098
|
|
|
1047
|
-
|
|
1099
|
+
=== Version 0.1.4
|
|
1048
1100
|
|
|
1049
1101
|
More tests on block based Mock expectations.
|
|
1050
1102
|
|
|
1051
|
-
|
|
1103
|
+
=== Version 0.1.3
|
|
1052
1104
|
|
|
1053
1105
|
Improved mocking:
|
|
1054
1106
|
|
|
1055
1107
|
* block based Mock expectations.
|
|
1056
1108
|
|
|
1057
|
-
|
|
1109
|
+
=== Version 0.1.2
|
|
1058
1110
|
|
|
1059
1111
|
This release adds some improvements to the mock API and minor syntax improvements
|
|
1060
1112
|
|
|
@@ -1065,14 +1117,14 @@ This release adds some improvements to the mock API and minor syntax improvement
|
|
|
1065
1117
|
* Improved exception trace by adding exception class name to error message.
|
|
1066
1118
|
* Renamed some tests for better consistency.
|
|
1067
1119
|
|
|
1068
|
-
|
|
1120
|
+
=== Version 0.1.1
|
|
1069
1121
|
|
|
1070
1122
|
This release adds some shoulds and improves error reporting
|
|
1071
1123
|
|
|
1072
1124
|
* Added should be_same_as and should_not be_same_as.
|
|
1073
1125
|
* Improved error reporting for comparison expectations.
|
|
1074
1126
|
|
|
1075
|
-
|
|
1127
|
+
=== Version 0.1.0
|
|
1076
1128
|
|
|
1077
1129
|
This is the first preview release of RSpec, a Behaviour-Driven Development library for Ruby
|
|
1078
1130
|
|