RSpec runner and formatters
Bug fixes
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)Enhancements
fit
(equivalent of
it "description", focus: true
) (Michael de Silva)Bug fix
let
take precedence over others
when there is a name collision (e.g. from an included module).
(Jon Rowe, Andy Lindeman and Myron Marston)Enhancements
--color
handling.--profile
option.
The output is sorted by the slowest average example groups.--fail-fast
and --profile
options are used (Paweł Gościcki).spec
to the load path, add the configured
--default-path
to the load path (which defaults to spec
). This
better supports folks who choose to put their specs in a different
directory (John Feminella).backtrace_inclusion_patterns
config option. Backtrace lines
that match one of these patterns will always be included in the
backtrace, even if they match an exclusion pattern, too (Sam Phippen).-
when parsing .rspec
as ERB
(Gabor Garami)..rspec-local
in the configuration documentation
(Sam Phippen){a,b}
shell expansion syntax in --pattern
option
(Konstantin Haase).config.libs
returns the libs configured to be added onto the load pathfull_backtrace?
returns the state of the backtrace cleanerdebug?
returns true when the debugger is loadedline_numbers
returns the line numbers we are filtering by (if any)full_description
returns the RegExp used to filter descriptions
(Jon Rowe)--warnings
(Jon Rowe)1.8.7
where Time.dup
wouldn't
allow access to Time.now
(Jon Rowe)shared_examples_for
context aware, so that keys may be safely reused
in multiple contexts without colliding. (Jon Rowe)deprecation_stream
(Jon Rowe)Bug fixes
--profile
as
the text formatter (Paweł Gościcki).subject
still retains the originally
declared value (Myron Marston).rand
in examples in
nested sibling contexts to return the same value (Max Shytikov).backtrace_inclusion_patterns
config option to ensure
that folks who develop code in a directory matching one of the default
exclusion patterns (e.g. gems
) still get the normal backtrace
filtering (Sam Phippen).before
hooks so that before
hooks declared in
RSpec.configure
run before before
hooks declared in a shared
context (Michi Huber and Tejas Dinkar).Example#full_description
so that it gets filled in by the last
matcher description (as Example#description
already did) when no
doc string has been provided (David Chelimsky).let
and subject
) leaking define_method
as a public
method. (Thomas Holmes and Jon Rowe) (#873)Deprecations
Configuration#backtrace_clean_patterns
in favor of
Configuration#backtrace_exclusion_patterns
for greater consistency
and symmetry with new backtrace_inclusion_patterns
config option
(Sam Phippen).Configuration#requires=
in favor of using ruby's
require
. Requires specified by the command line can still be
accessed by the Configuration#require
reader. (Bradley Schaefer)SharedExampleGroups
defined across sibling contexts
(Jon Rowe)