Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken 2 99 build #1273

Closed
wants to merge 205 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
395db96
we need to be able to overide call_site for it to be useful
JonRowe Jun 2, 2013
21a5d35
Fix brittle tests.
myronmarston Jun 8, 2013
dd24bb9
Demonstrates problem where a module can affect how `LetDefinition`s a…
alindeman May 15, 2013
4ee2f2b
Rewrite SharedContext to use a simple record/playback mechanism.
myronmarston Jun 10, 2013
583759a
Move definition of implicit subject.
myronmarston Jun 10, 2013
3dd88a5
Delay inclusion of `LetDefinitions` module.
myronmarston Jun 10, 2013
c635c20
Get the current list of shared context methods from the modules.
myronmarston Jun 11, 2013
3e9fc96
Small refactor to add intention revealing message
alindeman Jun 11, 2013
54991f9
Changelog entry.
myronmarston Jun 11, 2013
0247d2c
Fixes 1.8.7: apparently you cannot do multiple splats there
alindeman Jun 11, 2013
d2bb21f
Skips one-by-one spec runs for JRuby
alindeman Jun 11, 2013
3dea920
deprecation message for 1.8.6 and 1.9.1
JonRowe Jun 14, 2013
58deb8b
1.8.6 fix for reporter notifications
JonRowe Jun 14, 2013
74d638b
update message to make more sense
JonRowe Jun 15, 2013
3b6b83c
Merge pull request #946 from rspec/deprecate_186_191
JonRowe Jun 15, 2013
da4817d
yield example to it, hooks, let, and subject
dchelimsky Jun 26, 2013
e251dec
update cukes to use block arg instead of example method to access exa…
dchelimsky Jun 26, 2013
92e7652
Run tests using the client mode JVM (or as close as we can get to it)
JonRowe Jun 28, 2013
2f945af
trim ws for consistency
JonRowe Jun 28, 2013
c8aebee
lock to 2-99
JonRowe Jun 29, 2013
be3cc50
work around different lambda inspect output on 2-99 with JRuby due to…
JonRowe Jun 29, 2013
3922d57
Define `fit` for example groups as a shortcut to define examples with…
JonRowe Jun 29, 2013
aa1f7d5
Merge pull request #959 from rspec/fit_focus_alias_299
JonRowe Jun 29, 2013
becdc86
This 3.0.0 change isn't in 2.99.
myronmarston Jul 6, 2013
9be9d17
The changelog is for user-facing changes.
myronmarston Jul 6, 2013
5dce785
This change is in master but not 2.14.
myronmarston Jul 6, 2013
69d4a96
Nukes deprecation warning
alindeman Jul 6, 2013
d364851
Update changelog to reflect 2.14.0 release.
myronmarston Jul 7, 2013
26dba3f
Bump version to reflect that this branch is 2.99.0.pre.
myronmarston Jul 7, 2013
917b3a9
Add changelog entry for #666,
myronmarston Jul 7, 2013
d2ce86b
Run features without rubinius code compilation
alindeman Jul 7, 2013
84efd68
Disables certain scenarios on Rubinius
alindeman Jul 7, 2013
5f561a9
The backtrace appears to be shifted by 1 in Rubinius
alindeman Jul 7, 2013
c4eb1fa
rbx build is green; let us try to keep it that way
alindeman Jul 7, 2013
54910d5
Finds the backtrace line in a more robust way
alindeman Jul 7, 2013
c3c909b
Revert "rbx build is green; let us try to keep it that way"
alindeman Jul 8, 2013
c3f78ce
Merge pull request #967 from rspec/quick_fix_for_deprecation_formatte…
myronmarston Jul 9, 2013
7eba6d2
Add 2.14.1 release notes.
myronmarston Jul 9, 2013
1b18a47
Update changelog with 2.14.2 release notes.
myronmarston Jul 10, 2013
358c46d
Merge pull request #970 from rspec/restore_simpler_deprecation_format…
JonRowe Jul 10, 2013
2a32c1f
deprecate autotest support
JonRowe Jul 13, 2013
9ed8c1e
reword deprecation message
JonRowe Jul 13, 2013
d9eb203
Merge pull request #978 from rspec/deprecate_autotest_support
myronmarston Jul 13, 2013
2ee5fdb
changelog for deprecated autotest support
JonRowe Jul 14, 2013
3ce7c05
Fixup Rakefile deprecations
JonRowe Jul 14, 2013
969768c
Add helper methods to assist with spec'ing deprecations.
myronmarston Jul 14, 2013
429291c
Deprecate RSpec's debugger support.
myronmarston Jul 14, 2013
72ae382
Merge pull request #985 from rspec/fixup_rake_deprecate_299
myronmarston Jul 14, 2013
c3c9c04
Add release notes for 2.14.3 release.
myronmarston Jul 14, 2013
c0cc8ef
Merge pull request #986 from rspec/deprecate_debugger
myronmarston Jul 14, 2013
aa89f68
deprecate rake task rcov options
JonRowe Jul 11, 2013
eee9288
deprecate rcov readers too
JonRowe Jul 14, 2013
8ce0193
Fix the call site to be the stack frame before one of rspec's.
myronmarston Jul 14, 2013
cace322
Use ivars rather than the deprecated methods.
myronmarston Jul 14, 2013
013a04c
Merge pull request #974 from rspec/deprecate_rcov_integration
myronmarston Jul 14, 2013
c07c4cf
Remove old deprecation API.
myronmarston Jul 15, 2013
bc40c59
Merge pull request #990 from rspec/remove_old_deprecatio_api_2_99
JonRowe Jul 15, 2013
86d205c
expose exe file location
JonRowe Jul 15, 2013
1ff7a01
Merge pull request #991 from rspec/expose_exe_299
JonRowe Jul 15, 2013
0b36924
refactor configuration so that requires happen before spec files are …
JonRowe Jul 16, 2013
abbbecb
Merge pull request #996 from rspec/force_require_before_specfiles_loa…
JonRowe Jul 18, 2013
cfae1e4
Autoload RSpec::Mocks and RSpec::Expectations.
myronmarston Jul 18, 2013
50efee4
Adds `RSpec.current_example`
alindeman Jul 19, 2013
72237b7
The example shows how to "memoize" the result of RSpec.respond_to?(:c…
alindeman Jul 21, 2013
abb235b
Uses thread-local variables
alindeman Jul 21, 2013
05d9c84
Merge pull request #1011 from alindeman/current_example
alindeman Jul 21, 2013
ec30674
Corrects typo in lambda vs. proc syntax
alindeman Jul 22, 2013
55dc18c
Merge pull request #1001 from rspec/autoload_other_rspec_libs_299
myronmarston Jul 22, 2013
f01fc9e
Warn about non integer profile arguments
JonRowe Jul 18, 2013
901ec75
refactor to cast to Integer and rescue ArgumentError instead of using…
JonRowe Jul 19, 2013
7398423
Update changelog with 2.14.4 release notes.
myronmarston Jul 22, 2013
620c9b8
Merge pull request #1016 from rspec/safely_clear_shared_example_group…
JonRowe Jul 22, 2013
43272b6
update to truthy/falsey to remove deprecation warnings
JonRowe Jul 22, 2013
b464b01
Merge pull request #1017 from rspec/change_to_truthy_falsey
JonRowe Jul 23, 2013
43deda5
Merge pull request #1015 from rspec/safely_clear_shared_example_groups
JonRowe Jul 24, 2013
b155854
update more shared example group methods to use registry class
JonRowe Jul 24, 2013
110a6f2
Merge --pattern warning into 2-99
JonRowe Jul 25, 2013
a930008
Merge PR#1023 into 2-99-mainteance
JonRowe Jul 29, 2013
166c000
Merge pull request #1026 from rspec/run_consecutive_after_all_hooks_w…
JonRowe Aug 8, 2013
1d4c58d
remove option to profile which has never worked
JonRowe Aug 13, 2013
926ddd6
spec to check we ignore the profile option
JonRowe Aug 13, 2013
e2485ad
Update changelog with 2.14.5 release notes.
myronmarston Aug 14, 2013
8895a71
Deprecate `treat_symbols_as...` option being set to false.
myronmarston Aug 14, 2013
9bced6c
Merge pull request #1043 from rspec/deprecate_treat_symbols_option_false
JonRowe Aug 14, 2013
4a1e522
Ported CallerFilter from rspec-mocks.
myronmarston Aug 23, 2013
376dd00
Add caller benchmark script from rspec-mocks.
myronmarston Aug 23, 2013
0a41363
Address warning.
myronmarston Aug 23, 2013
77a8dec
Limit the spamminess of default deprecation messages
soulcutter Jul 30, 2013
27c2417
Add spec for File deprecation_stream output
soulcutter Jul 30, 2013
9c7d8af
Changelog entry
soulcutter Jul 30, 2013
bf222f7
Simplify Hash initialization
soulcutter Jul 30, 2013
a2e715d
Extract classes for File and IO behaviors in DeprecationFormatter
soulcutter Aug 1, 2013
73422fd
Defer printing deprecation warnings until summary
soulcutter Aug 1, 2013
69aa3fa
Remove factory method for DeprecationFormatter
soulcutter Aug 3, 2013
6012000
Move away from Struct-based formatter implementations
soulcutter Aug 11, 2013
78f99f0
Use formatter pluralize helper
soulcutter Aug 11, 2013
2840da1
Refactor deprecation formatter
soulcutter Aug 22, 2013
7759370
Make source_location conditional static.
myronmarston Aug 24, 2013
272cc7e
Indicate the version that needs particular work-arounds.
myronmarston Aug 24, 2013
5361c79
Add a spec for caller filter.
myronmarston Aug 23, 2013
02d7978
Rename constant for clarity.
myronmarston Aug 24, 2013
f9eb4ca
fix typo in Changelog [ci skip]
dchelimsky Aug 24, 2013
69a6180
Improve travis build.
myronmarston Aug 23, 2013
c0bfac7
Relax assertion.
myronmarston Aug 26, 2013
f920cc9
Update caller filter.
myronmarston Aug 26, 2013
dbd07af
Remove duplicate spec file.
myronmarston Aug 26, 2013
53945d2
Fix spec so it passes.
myronmarston Aug 26, 2013
2ec76e8
Remove temp code we don't need anymore.
myronmarston Aug 26, 2013
a5ff9fa
Warn when the name of more than one example group is submitted to `in…
dchelimsky Aug 31, 2013
4d95ef8
Merge pull request #1061 from rspec/limit-deprecation-messages-backport
soulcutter Sep 3, 2013
29745c8
refactor @myronmarstons #1078 changes to deprecate let/subject access…
JonRowe Sep 21, 2013
2375a0b
ammend changelog
JonRowe Sep 23, 2013
a807624
Merge pull request #1081 from rspec/deprecation_warning_let_subject_b…
JonRowe Sep 23, 2013
0f99d62
Use explicit conversion methods for stringified numbers
iamvery Sep 27, 2013
e5b18b7
Merge pull request #1106 from lgierth/dont-extend-exception
JonRowe Oct 8, 2013
ccc3a73
Correct changelog
JonRowe Oct 8, 2013
a6df4eb
Deprecate 'its' support in favor of rspec-its gem
palfvin Oct 7, 2013
0928c69
Merge pull request #1104 from palfvin/2-99-its
JonRowe Oct 10, 2013
5ebfc6d
Prefer backticks for wrapping code elements in comments.
myronmarston Oct 12, 2013
cbafda9
Fix spec to match the deprecation change in the last commit.
myronmarston Oct 12, 2013
649d087
Update changelog based on 2.14.6 release.
myronmarston Oct 16, 2013
07506ef
Limit deprecation output for non-generated messages
soulcutter Oct 15, 2013
b62d78b
Eliminate DeprecationMessage mixin module
soulcutter Oct 15, 2013
bb68c1a
Add period to end of message
soulcutter Oct 15, 2013
6b45314
Remove DeprecationWarning base class
soulcutter Oct 15, 2013
bca50bd
Merge pull request #1125 from rspec/deprecation-formatter-2-99-cherry…
myronmarston Oct 24, 2013
89c5da6
Merge pull request #1124 from rspec/allow_suppression_of_local_repos
JonRowe Oct 24, 2013
35850da
Fixe a regression in 2.14.6 w/ Fivemat formatter.
myronmarston Oct 29, 2013
13fa119
Add 2.14.7 release notes.
myronmarston Oct 30, 2013
adfb5c0
Deprecate RSpec::Core::PendingExampleFixedError.
myronmarston Oct 30, 2013
64ba913
Merge pull request #1131 from rspec/deprecate-pending-example-fixed-c…
myronmarston Oct 30, 2013
e498174
defer to configuration and default to stdout/stderr
JonRowe Oct 28, 2013
108f21c
dont capture printer if we havent configured yet (fallback)
JonRowe Oct 28, 2013
8c04fcc
send file when file
JonRowe Oct 28, 2013
3fcaa6d
bow to peer pressure
JonRowe Oct 29, 2013
c63dc74
Merge pull request #1130 from rspec/deprecation_formatter_fix_299
myronmarston Nov 2, 2013
17eb4fe
Add `expose_current_running_example_as` config option.
myronmarston Nov 1, 2013
73f079f
Ensure the current example can be exposed via multiple helper methods.
myronmarston Nov 1, 2013
ff7cc7d
Isolate this spec from "leaking" changes to the helper module.
myronmarston Nov 1, 2013
d00a626
When using `expose_current_running…` no deprecation should be printed.
myronmarston Nov 1, 2013
7d6d2ca
Improve example/running_example deprecation warning.
myronmarston Nov 2, 2013
eb5bd2b
Add changelog entry.
myronmarston Nov 2, 2013
0c9c2ab
Merge pull request #1135 from rspec/expose-current-running-example-2-99
myronmarston Nov 2, 2013
e9d069d
Silence deprecations about `its` since we need to test it here.
myronmarston Nov 2, 2013
fd01e39
Improve wording of deprecation.
myronmarston Nov 2, 2013
1db3910
Merge pull request #1138 from rspec/its-warnings
myronmarston Nov 2, 2013
2c54f2d
Prevent CallerFilter specs from trawling my entire hard-drive.
xaviershay Nov 2, 2013
585f904
Merge pull request #1139 from rspec/caller-filter-fix
myronmarston Nov 2, 2013
fdcd136
Revert "Merge pull request #1130 from rspec/deprecation_formatter_fix…
myronmarston Nov 2, 2013
68c959f
Default `output_stream` to $stdout.
myronmarston Nov 2, 2013
33f600e
Fix a couple specs so that they explicitly redirect unwanted output.
myronmarston Nov 2, 2013
106eda2
Use `output_stream` as the standardized method name.
myronmarston Nov 3, 2013
d436453
Warn if output_stream is changed after it has already been used by th…
myronmarston Nov 3, 2013
078f493
Deprecate `out` and `output` aliases of `output_stream`.
myronmarston Nov 3, 2013
f7038dc
Address ruby warning.
myronmarston Nov 3, 2013
1aa63a7
Add changelog entry.
myronmarston Nov 3, 2013
78f7cf9
Ruby 1.8 lacks public_send.
myronmarston Nov 3, 2013
7fd920d
Merge pull request #1141 from rspec/fix-1127
myronmarston Nov 4, 2013
466b674
Deprecate old ordering APIs.
myronmarston Oct 18, 2013
73e660c
Deprecate `--order default` in favor of `--order defined`.
myronmarston Oct 28, 2013
5dfb16e
Add changelog entry.
myronmarston Nov 4, 2013
55cd1be
Merge pull request #1146 from rspec/ordering-api-deprecations
myronmarston Nov 4, 2013
cd1c661
Add newlines after too many deprecations warnings
soulcutter Nov 4, 2013
01e291b
Group deprecations together separated by newlines
soulcutter Nov 4, 2013
acca274
Consistent formatting of changelog.
xaviershay Nov 5, 2013
f8a428b
Merge pull request #1155 from rspec/2-99-changelog
myronmarston Nov 5, 2013
4fe5bdf
Don't warn about shared example group args when it has a default arg.
myronmarston Nov 6, 2013
ea3a117
Merge pull request #1157 from rspec/fix-inaccurate-shared-example-arg…
myronmarston Nov 6, 2013
248b4f0
Sync the deprecation formatter file to avoid odd duplicate lines.
myronmarston Nov 6, 2013
97be6e5
Don't print duplicate deprecation messages.
myronmarston Nov 6, 2013
9e876e6
Add `require 'set'`.
myronmarston Nov 6, 2013
0cfe064
Merge pull request #1159 from rspec/fix-duplicate-deprecations-2-99
myronmarston Nov 6, 2013
686b7c3
Remove unnecessary .rb from require.
myronmarston Nov 7, 2013
ec11ee7
Add config option to raise errors on deprecations.
myronmarston Nov 7, 2013
6697c95
Add notice about the new option so users are made aware of it.
myronmarston Nov 7, 2013
a16104a
Add changelog entry for new config option.
myronmarston Nov 7, 2013
cc243a4
This is more of an enhancement than a bug fix.
myronmarston Nov 7, 2013
c96962a
Rename deprecation printer classes.
myronmarston Nov 7, 2013
0cbab87
Merge pull request #1162 from rspec/turn-deprecations-into-errors-2-99
myronmarston Nov 7, 2013
e1e7a10
Fixup changelog.
myronmarston Nov 7, 2013
494f302
Update changelog for v2.99.0.beta1 [ci skip]
myronmarston Nov 7, 2013
06ce5b6
Release 2.99.0.beta1
myronmarston Nov 7, 2013
91f83a0
Fix failure in end-of-run summary for the error stream.
myronmarston Nov 11, 2013
31d87d8
Merge pull request #1172 from rspec/fix-1170-for-2.99
soulcutter Nov 11, 2013
5cd5235
deprecate old reporter method
JonRowe Nov 12, 2013
464fd3f
more verbose deprecation
JonRowe Nov 12, 2013
2f372eb
Merge pull request #1175 from rspec/deprecate_reporter_abort
myronmarston Nov 13, 2013
4deadc5
dont redefine caller filter if it's already defined, fixes rspec/rspe…
JonRowe Nov 14, 2013
1b14866
Merge pull request #1177 from rspec/dont_redefine_caller_filter
myronmarston Nov 14, 2013
f65149e
Add `is_expected` for expect-based one-liner syntax.
myronmarston Nov 14, 2013
25c326a
Merge pull request #1182 from rspec/is_expected_2.99
myronmarston Nov 15, 2013
c598182
Deprecate inexact mock_with options.
myronmarston Nov 17, 2013
4990cc7
Merge pull request #1189 from rspec/mock-adapter-deprecations
myronmarston Nov 17, 2013
7378736
Rubinius uses slightly different phrasing for this error.
myronmarston Nov 18, 2013
2c89752
Merge pull request #1190 from rspec/fix-test-on-rbx
myronmarston Nov 18, 2013
134265b
Fix issue where ordering isn't forced properly.
JonRowe Nov 24, 2013
cf8adfe
Fix typo.
myronmarston Nov 28, 2013
cedab5c
Change log entry for ordering fix
JonRowe Dec 2, 2013
267598d
Merge pull request #1194 from rspec/fix_issue_with_ordering_preference
JonRowe Dec 2, 2013
81b9075
Add test fixture for 2.1.
myronmarston Dec 21, 2013
18dc82d
Build against 2.1.0-rc1.
myronmarston Dec 21, 2013
3f0cc11
Deal with JRuby 1.7.8 output still being problematic.
myronmarston Dec 21, 2013
d2962a5
Merge pull request #1230 from rspec/build-2-99-against-2.1
JonRowe Dec 21, 2013
eed459f
2.1.0 is out.
myronmarston Dec 31, 2013
1a24527
Redefine rspec-mocks method to make our sandboxing work properly.
myronmarston Jan 28, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -5,12 +5,13 @@ rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- ree
- jruby-18mode
- jruby-19mode
- rbx-18mode
- rbx-19mode
- 2.0.0
matrix:
allow_failures:
- rvm: rbx-19mode
Expand Down
187 changes: 186 additions & 1 deletion Changelog.md
@@ -1,3 +1,188 @@
### 2.99.0.beta2 Development
[full changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.beta1...2-99-maintenance)

Enhancements:

* Add `is_expected` for one-liners that read well with the
`expect`-based syntax. `is_expected` is simply defined as
`expect(subject)` and can be used in an expression like:
`it { is_expected.to read_well }`. (Myron Marston)

Deprecations:

* Deprecate inexact `mock_with` config options. RSpec 3 will only support
the exact symbols `:rspec`, `:mocha`, `:flexmock`, `:rr` or `:nothing`
(or any module that implements the adapter interface). RSpec 2 did
fuzzy matching but this will not be supported going forward.
(Myron Marston)

Bug Fixes:

* Fix failure (undefined method `path`) in end-of-run summary
when `raise_errors_for_deprecations!` is configured. (Myron Marston)
* Fix issue were overridding spec ordering from the command line wasnt
fully recognised interally. (Jon Rowe)

### 2.99.0.beta1 / 2013-11-07
[full changelog](http://github.com/rspec/rspec-core/compare/v2.14.7...v2.99.0.beta1)

Enhancements

* Block-based DSL methods that run in the context of an example
(`it`, `before(:each)`, `after(:each)`, `let` and `subject`)
now yield the example as a block argument. (David Chelimsky)
* Warn when the name of more than one example group is submitted to
`include_examples` and it's aliases. (David Chelimsky)
* Add `expose_current_running_example_as` config option for
use during the upgrade process when external gems use the
deprecated `RSpec::Core::ExampleGroup#example` and
`RSpec::Core::ExampleGroup#running_example` methods. (Myron Marston)
* Limit spamminess of deprecation messages. (Bradley Schaefer, Loren Segal)
* Add `config.raise_errors_for_deprecations!` option, which turns
deprecations warnings into errors to surface the full backtrace
of the call site. (Myron Marston)

Deprecations

* Deprecate `RSpec::Core::ExampleGroup#example` and
`RSpec::Core::ExampleGroup#running_example` methods. If you need
access to the example (e.g. to get its metadata), use a block argument
instead. (David Chelimsky)
* Deprecate use of `autotest/rspec2` in favour of `rspec-autotest`. (Jon Rowe)
* Deprecate RSpec's built-in debugger support. Use a CLI option like
`-rruby-debug` (for the ruby-debug gem) or `-rdebugger` (for the
debugger gem) instead. (Myron Marston)
* Deprecate `RSpec.configuration.treat_symbols_as_metadata_keys_with_true_values = false`.
RSpec 3 will not support having this option set to `false`. (Myron Marston)
* Deprecate accessing a `let` or `subject` declaration in
a `after(:all)` hook. (Myron Marston, Jon Rowe)
* Deprecate built-in `its` usage in favor of `rspec-its` gem due to planned
removal in RSpec 3. (Peter Alfvin)
* Deprecate `RSpec::Core::PendingExampleFixedError` in favor of
`RSpec::Core::Pending::PendingExampleFixedError`. (Myron Marston)
* Deprecate `RSpec::Core::Configuration#out` and
`RSpec::Core::Configuration#output` in favor of
`RSpec::Core::Configuration#output_stream`. (Myron Marston)
* Deprecate legacy ordering APIs.
* You should use `register_ordering(:global)` instead of these:
* `RSpec::Core::Configuration#order_examples`
* `RSpec::Core::Configuration#order_groups`
* `RSpec::Core::Configuration#order_groups_and_examples`
* These are deprecated with no replacement because in RSpec 3
ordering is a property of individual example groups rather than
just a global property of the entire test suite:
* `RSpec::Core::Configuration#order`
* `RSpec::Core::Configuration#randomize?`
* `--order default` is deprecated in favor of `--order defined`
(Myron Marston)

### 2.14.7 / 2013-10-29
[full changelog](http://github.com/rspec/rspec-core/compare/v2.14.6...v2.14.7)

Bug fixes:

* Fix regression in 2.14.6 that broke the Fivemat formatter.
It depended upon either
`example.execution_result[:exception].pending_fixed?` (which
was removed in 2.14.6 to fix an issue with frozen error objects)
or `RSpec::Core::PendingExampleFixedError` (which was renamed
to `RSpec::Core::Pending::PendingExampleFixedError` in 2.8.
This fix makes a constant alias for the old error name.
(Myron Marston)

### 2.14.6 / 2013-10-15
[full changelog](http://github.com/rspec/rspec-core/compare/v2.14.5...v2.14.6)

Bug fixes:

* Format stringified numbers correctly when mathn library is loaded.
(Jay Hayes)
* Fix an issue that prevented the use of frozen error objects. (Lars
Gierth)

### 2.14.5 / 2013-08-13
[full changelog](http://github.com/rspec/rspec-core/compare/v2.14.4...v2.14.5)

Bug fixes:

* Fix a `NoMethodError` that was being raised when there were no shared
examples or contexts declared and `RSpec.world.reset` is invoked.
(thepoho, Jon Rowe, Myron Marston)
* Fix a deprecation warning that was being incorrectly displayed when
`shared_examples` are declared at top level in a `module` scope.
(Jon Rowe)
* Fix after(:all) hooks so consecutive (same context) scopes will run even if
one raises an error. (Jon Rowe, Trejkaz)
* JsonFormatter no longer dies if `dump_profile` isn't defined (Alex / @MasterLambaster, Jon Rowe)

### 2.14.4 / 2013-07-21
[full changelog](http://github.com/rspec/rspec-core/compare/v2.14.3...v2.14.4)

Bug fixes

* Fix regression in 2.14: ensure configured requires (via `-r` option)
are loaded before spec files are loaded. This allows the spec files
to programatically change the file pattern (Jon Rowe).
* Autoload `RSpec::Mocks` and `RSpec::Expectations` when referenced if
they are not already loaded (`RSpec::Matches` has been autoloaded
for a while). In the `rspec` gem, we changed it recently to stop
loading `rspec/mocks` and `rspec/expectations` by default, as some
users reported problems where they were intending to use mocha,
not rspec-mocks, but rspec-mocks was loaded and causing a conflict.
rspec-core loads mocks and expectations at the appropriate time, so
it seemed like a safe change -- but caused a problem for some authors
of libraries that integrate with RSpec. This fixes that problem.
(Myron Marston)
* Gracefully handle a command like `rspec --profile path/to/spec.rb`:
the `path/to/spec.rb` arg was being wrongly treated as the `profile`
integer arg, which got cast `0` using `to_i`, causing no profiled
examples to be printed. (Jon Rowe)

### 2.14.3 / 2013-07-13
[full changelog](http://github.com/rspec/rspec-core/compare/v2.14.2...v2.14.3)

Bug fixes

* Fix deprecation notices issued from `RSpec::Core::RakeTask` so
that they work properly when all of rspec-core is not loaded.
(This was a regression in 2.14) (Jon Rowe)

### 2.14.2 / 2013-07-09
[full changelog](http://github.com/rspec/rspec-core/compare/v2.14.1...v2.14.2)

Bug fixes

* Fix regression caused by 2.14.1 release: formatters that
report that they `respond_to?` a notification, but had
no corresponding method would raise an error when registered.
The new fix is to just implement `start` on the deprecation
formatter to fix the original JRuby/ruby-debug issue.
(Jon Rowe)

### 2.14.1 / 2013-07-08
[full changelog](http://github.com/rspec/rspec-core/compare/v2.14.0...v2.14.1)

Bug fixes

* Address deprecation formatter failure when using `ruby-debug` on
JRuby: fix `RSpec::Core::Reporter` to not send a notification
when the formatter's implementation of the notification method
comes from `Kernel` (Alex Portnov, Jon Rowe).

### 2.14.0 / 2013-07-06
[full changelog](http://github.com/rspec/rspec-core/compare/v2.14.0.rc1...v2.14.0)

Enhancements

* Apply focus to examples defined with `fit` (equivalent of
`it "description", focus: true`) (Michael de Silva)

Bug fix

* Ensure methods defined by `let` take precedence over others
when there is a name collision (e.g. from an included module).
(Jon Rowe, Andy Lindeman and Myron Marston)

### 2.14.0.rc1 / 2013-05-27
[full changelog](http://github.com/rspec/rspec-core/compare/v2.13.1...v2.14.0.rc1)

Expand Down Expand Up @@ -27,7 +212,7 @@ Enhancements
(Konstantin Haase).
* Add cucumber documentation for --require command line option
(Bradley Schaefer)
* Expose configruation options via config:
* Expose configuration options via config:
* `config.libs` returns the libs configured to be added onto the load path
* `full_backtrace?` returns the state of the backtrace cleaner
* `debug?` returns true when the debugger is loaded
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Expand Up @@ -4,10 +4,10 @@ gemspec

%w[rspec rspec-expectations rspec-mocks].each do |lib|
library_path = File.expand_path("../../#{lib}", __FILE__)
if File.exist?(library_path)
if File.exist?(library_path) && !ENV['USE_GIT_REPOS']
gem lib, :path => library_path
else
gem lib, :git => "git://github.com/rspec/#{lib}.git"
gem lib, :git => "git://github.com/rspec/#{lib}.git", :branch => '2-99-maintenance'
end
end

Expand Down
81 changes: 81 additions & 0 deletions benchmarks/caller.rb
@@ -0,0 +1,81 @@
$LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__))

require 'benchmark'
require 'rspec/caller_filter'

n = 10000

puts "#{n} times - ruby #{RUBY_VERSION}"
puts

puts "* Using a chunked fetch is quicker than the old method of array-access."
Benchmark.bm(20) do |bm|
bm.report("CallerFilter") do
n.times do
RSpec::CallerFilter.first_non_rspec_line
end
end

bm.report("Direct caller access") do
n.times do
caller(1)[4]
end
end
end

puts
puts "* Chunking fetches of caller adds a ~17% overhead."
Benchmark.bm(20) do |bm|
bm.report("Chunked") do
n.times do
caller(1, 2)
caller(3, 2)
caller(5, 2)
end
end

bm.report("All at once") do
n.times do
caller(1, 6)
end
end
end

puts
puts "* `caller` scales linearly with length parameter."
Benchmark.bm(20) do |bm|
(1..10).each do |x|
bm.report(x) do
n.times do
caller(1, x)
end
end
end
end


# > ruby benchmarks/caller.rb
# 10000 times - ruby 2.0.0
#
# * Using a chunked fetch is quicker than the old method of array-access.
# user system total real
# CallerFilter 0.140000 0.010000 0.150000 ( 0.145381)
# Direct caller access 0.170000 0.000000 0.170000 ( 0.180610)
#
# * Chunking fetches of caller adds a ~17% overhead.
# user system total real
# Chunked 0.150000 0.000000 0.150000 ( 0.181162)
# All at once 0.130000 0.010000 0.140000 ( 0.138732)
#
# * `caller` scales linearly with length parameter.
# user system total real
# 1 0.030000 0.000000 0.030000 ( 0.035000)
# 2 0.050000 0.000000 0.050000 ( 0.059879)
# 3 0.080000 0.000000 0.080000 ( 0.098468)
# 4 0.090000 0.010000 0.100000 ( 0.097619)
# 5 0.110000 0.000000 0.110000 ( 0.126220)
# 6 0.130000 0.000000 0.130000 ( 0.136739)
# 7 0.150000 0.000000 0.150000 ( 0.159055)
# 8 0.160000 0.010000 0.170000 ( 0.172416)
# 9 0.180000 0.000000 0.180000 ( 0.203038)
# 10 0.200000 0.000000 0.200000 ( 0.210551)
4 changes: 2 additions & 2 deletions features/command_line/line_number_option.feature
Expand Up @@ -46,9 +46,9 @@ Feature: --line_number option

describe 9 do

it { should be > 8 }
it { is_expected.to be > 8 }

it { should be < 10 }
it { is_expected.not_to be < 10 }

end
"""
Expand Down
13 changes: 5 additions & 8 deletions features/command_line/order.feature
@@ -1,13 +1,10 @@
Feature: --order (new in rspec-core-2.8)

Use the `--order` option to tell RSpec how to order the files, groups, and
examples. Options are `default` and `rand`:
examples. Options are `defined` and `rand`.

Default is:

* files are ordered based on the underlying file system's order (typically
case-sensitive alpha on *nix OS's and case-insenstive alpha in Windows)
* groups/examples are loaded in the order in which they are declared
`defined` is the default, which executes groups and examples in the
order they are defined as the spec files are loaded.

Use `rand` to randomize the order of files, groups within files, and
examples within groups.*
Expand All @@ -20,10 +17,10 @@ Feature: --order (new in rspec-core-2.8)

<h3>Examples</h3>

--order default
--order defined
--order rand
--order rand:123
--seed 123 # same as --order rand:123

The `default` option is only necessary when you have `--order rand` stored in a
The `defined` option is only necessary when you have `--order rand` stored in a
config file (e.g. `.rspec`) and you want to override it from the command line.
18 changes: 18 additions & 0 deletions features/command_line/pattern_option.feature
Expand Up @@ -29,3 +29,21 @@ Feature: pattern option
"""
When I run `rspec --pattern "spec/**/*.spec"`
Then the output should contain "1 example, 0 failures"

Scenario: override the default pattern in configuration
Given a file named "spec/spec_helper.rb" with:
"""ruby
RSpec.configure do |config|
config.pattern << ',**/*.spec'
end
"""
And a file named "spec/example.spec" with:
"""ruby
describe "addition" do
it "adds things" do
(1 + 2).should eq(3)
end
end
"""
When I run `rspec -rspec_helper`
Then the output should contain "1 example, 0 failures"
2 changes: 2 additions & 0 deletions features/command_line/warnings_option.feature
Expand Up @@ -2,6 +2,7 @@ Feature: run with warnings enabled

You can use the `--warnings` option to run specs with warnings enabled

@unsupported-on-rbx
Scenario:
Given a file named "example_spec.rb" with:
"""ruby
Expand All @@ -14,6 +15,7 @@ Feature: run with warnings enabled
When I run `rspec --warnings example_spec.rb`
Then the output should contain "warning"

@unsupported-on-rbx
Scenario:
Given a file named "example_spec.rb" with:
"""ruby
Expand Down