This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
3.0.0.beta1
Pre-release
Pre-release
myronmarston
released this
08 Nov 04:53
·
2926 commits
to main
since this release
3.0.0.beta1 / 2013-11-07
Breaking Changes for 3.0.0:
- Remove explicit support for 1.8.6. (Jon Rowe)
- Remove
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 arg
instead. (David Chelimsky) - Remove
TextMateFormatter
, it has been moved torspec-tmbundle
.
(Aaron Kromer) - Remove RCov integration. (Jon Rowe)
- Remove deprecated support for RSpec 1 constructs (Myron Marston):
- The
Spec
andRspec
constants (rather thanRSpec
). Spec::Runner.configure
rather thanRSpec.configure
.Rake::SpecTask
rather thanRSpec::Core::RakeTask
.
- The
- Remove deprecated support for
share_as
. (Myron Marston) - Remove
--debug
option (and corresponding option on
RSpec::Core::Configuration
). Instead, use-r<debugger gem name>
to
load whichever debugger gem you wish to use (e.g.ruby-debug
,
debugger
, orpry
). (Myron Marston) - Extract Autotest support to a seperate gem. (Jon Rowe)
- Raise an error when a
let
orsubject
declaration is
accessed in abefore(:all)
orafter(:all)
hook. (Myron Marston) - Extract
its
support to a separate gem. (Peter Alfvin) - Disallow use of a shared example group from sibling contexts, making them
fully isolated. 2.14 and 2.99 allowed this but printed a deprecation warning.
(Jon Rowe) - Remove
RSpec::Core::Configuration#output
and
RSpec::Core::Configuration#out
aliases of
RSpec::Core::Configuration#output_stream
. (Myron Marston)
Enhancements
- Replace unmaintained syntax gem with coderay gem. (Xavier Shay)
- Times in profile output are now bold instead of
failure_color
.
(Matthew Boedicker) - Add
--no-fail-fast
command line option. (Gonzalo Rodríguez-Baltanás Díaz) - Runner now considers the local system ip address when running under Drb.
(Adrian CB) - JsonFormatter now includes
--profile
information. (Alex / @MasterLambaster) - Always treat symbols passed as metadata args as hash
keys with true values. RSpec 2 supported this with the
treat_symbols_as_metadata_keys_with_true_values
but
now this behavior is always enabled. (Myron Marston) - Add
--dry-run
option, which prints the formatter output
of your suite without running any examples or hooks.
(Thomas Stratmann, Myron Marston) - Document the configuration options and default values in the
spec_helper.rb
file that is generated by RSpec. (Parker Selbert) - Give generated example group classes a friendly name derived
from the docstring, rather than something like "Nested_2".
(Myron Marston) - Avoid affecting randomization of user code when shuffling
examples so that users can count on their own seeds
working. (Travis Herrick)
Deprecations
treat_symbols_as_metadata_keys_with_true_values
is deprecated and no
longer has an affect now that the behavior it enabled is always
enabled. (Myron Marston)