Releases: rspec/rspec-rails
Releases · rspec/rspec-rails
4.0.2
4.0.2 / 2020-12-26
Bug Fixes:
- Indent all extra failure lines output from system specs. (Alex Robbin, #2321)
- Generated request spec for update now uses the correct let. (Paul Hanyzewski, #2344)
- Return
true/falsefrom predicate methods in config rather than raw values.
(Phil Pirozhkov, Jon Rowe, #2353, #2354) - Remove old #fixture_path feature detection code which broke under newer Rails.
(Koen Punt, Jon Rowe, #2370)
3.0.0.beta2
3.0.0.beta2 / 2014-02-17
Bug fixes
- Use
__send__rather thansendto prevent naming collisions (Bradley Schaefer) - Supports Rails 4.1. (Andy Lindeman)
- Routes are drawn correctly for anonymous controllers with abstract
parents. (Billy Chan) - Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)
- Anonymous controllers inherit from
ActionController::BaseifApplicationController
is not present. (Jon Rowe) - Require
rspec/collection_matcherswhenrspec/railsis required. (Yuji Nakayama)
Enhancements
- Improve be_valid matcher for non-ActiveModel::Errors implementations (Ben Hamill)
Breaking Changes for 3.0.0:
- Removes the
--webratoption for the request spec generator (Andy Lindeman) - Methods from
Capybara::DSL(e.g.,visit) are no longer available in
controller specs. It is more appropriate to use capybara in feature specs
(spec/features) instead. (Andy Lindeman) infer_base_class_for_anonymous_controllersis
enabled by default. (Thomas Holmes)- Capybara 2.2.0 or above is required for feature specs. (Andy Lindeman)
2.99.0.beta2
2.99.0.beta2 / 2014-02-17
Bug fixes
- Use
__send__rather thansendto prevent naming collisions (Bradley Schaefer) - Supports Rails 4.1. (Andy Lindeman)
- Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)
- Anonymous controllers inherit from
ActionController::BaseifApplicationController
is not present. (Jon Rowe)
Deprecations
- Deprecates the
--webratoption to the scaffold and request spec generator (Andy Lindeman) - Deprecates the use of
Capybara::DSL(e.g.,visit) in controller specs.
It is more appropriate to use capybara in feature specs (spec/features)
instead. (Andy Lindeman)
v2.14.1
2.14.1 / 2013-12-29
Bug fixes
- Fixes "warning: instance variable @orig_routes not initialized" raised by
controller specs when--warningsare enabled. (Andy Lindeman) - Where possible, check against the version of ActiveRecord, rather than
Rails. It is possible to use some of rspec-rails without all of Rails.
(Darryl Pogue) - Supports Rails 4.1 and Minitest 5. (Patrick Van Stee, Andy Lindeman)
- Explicitly depends on
activemodel. This allows libraries that do not bring
in all ofrailsto userspec-rails. (John Firebaugh) - Use
__send__rather thansendto prevent naming collisions (Bradley Schaefer)
3.0.0.beta1
3.0.0.beta1 / 2013-11-07
Breaking Changes for 3.0.0:
- Extracts
autotestandautotest-railssupport torspec-autotestgem.
(Andy Lindeman)
2.99.0.beta1
2.99.0.beta1 / 2013-11-07
Deprecations
- Deprecates autotest integration in favor of the
rspec-autotestgem. (Andy
Lindeman)
Enhancements
- Supports Rails 4.1 and Minitest 5. (Patrick Van Stee)
Bug fixes
- Fixes "warning: instance variable @orig_routes not initialized" raised by
controller specs when--warningsare enabled. (Andy Lindeman) - Where possible, check against the version of ActiveRecord, rather than
Rails. It is possible to use some of rspec-rails without all of Rails.
(Darryl Pogue) - Explicitly depends on
activemodel. This allows libraries that do not bring
in all ofrailsto userspec-rails. (John Firebaugh)
2.14.0
2.14.0 / 2013-07-06
Bug fixes
- Rake tasks do not define methods that might interact with other libraries.
(Fujimura Daisuke) - Reverts fix for out-of-order
letdefinitions in controller specs after the
issue was fixed upstream in rspec-core. (Andy Lindeman) - Fixes deprecation warning when using
expect(Model).to have(n).recordswith
Rails 4. (Andy Lindeman)
2.14.0.rc1 / 2013-05-27
Enhancements
- Prelimiarily support Rails 4.1 by updating adapters to support Minitest 5.0.
(Andy Lindeman)
Bug fixes
rake statsruns correctly when spec files exist at the top level of the
spec/ directory. (Benjamin Fleischer)