Skip to content

Releases: rspec/rspec-rails

4.0.2

06 Mar 09:43
Compare
Choose a tag to compare

4.0.2 / 2020-12-26

Full Changelog

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/false from 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

18 Feb 06:49
Compare
Choose a tag to compare
3.0.0.beta2 Pre-release
Pre-release

3.0.0.beta2 / 2014-02-17

full changelog

Bug fixes

  • Use __send__ rather than send to 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::Base if ApplicationController
    is not present. (Jon Rowe)
  • Require rspec/collection_matchers when rspec/rails is required. (Yuji Nakayama)

Enhancements

  • Improve be_valid matcher for non-ActiveModel::Errors implementations (Ben Hamill)

Breaking Changes for 3.0.0:

  • Removes the --webrat option 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_controllers is
    enabled by default. (Thomas Holmes)
  • Capybara 2.2.0 or above is required for feature specs. (Andy Lindeman)

2.99.0.beta2

18 Feb 06:50
Compare
Choose a tag to compare
2.99.0.beta2 Pre-release
Pre-release

2.99.0.beta2 / 2014-02-17

full changelog

Bug fixes

  • Use __send__ rather than send to 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::Base if ApplicationController
    is not present. (Jon Rowe)

Deprecations

  • Deprecates the --webrat option 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

29 Dec 16:10
Compare
Choose a tag to compare

2.14.1 / 2013-12-29

full changelog

Bug fixes

  • Fixes "warning: instance variable @orig_routes not initialized" raised by
    controller specs when --warnings are 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 of rails to use rspec-rails. (John Firebaugh)
  • Use __send__ rather than send to prevent naming collisions (Bradley Schaefer)

3.0.0.beta1

08 Nov 04:56
Compare
Choose a tag to compare
3.0.0.beta1 Pre-release
Pre-release

3.0.0.beta1 / 2013-11-07

full changelog

Breaking Changes for 3.0.0:

  • Extracts autotest and autotest-rails support to rspec-autotest gem.
    (Andy Lindeman)

2.99.0.beta1

08 Nov 04:56
Compare
Choose a tag to compare
2.99.0.beta1 Pre-release
Pre-release

2.99.0.beta1 / 2013-11-07

full changelog

Deprecations

  • Deprecates autotest integration in favor of the rspec-autotest gem. (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 --warnings are 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 of rails to use rspec-rails. (John Firebaugh)

2.14.0

07 Jul 01:58
Compare
Choose a tag to compare

2.14.0 / 2013-07-06

full changelog

Bug fixes

  • Rake tasks do not define methods that might interact with other libraries.
    (Fujimura Daisuke)
  • Reverts fix for out-of-order let definitions in controller specs after the
    issue was fixed upstream in rspec-core. (Andy Lindeman)
  • Fixes deprecation warning when using expect(Model).to have(n).records with
    Rails 4. (Andy Lindeman)

2.14.0.rc1 / 2013-05-27

full changelog

Enhancements

  • Prelimiarily support Rails 4.1 by updating adapters to support Minitest 5.0.
    (Andy Lindeman)

Bug fixes

  • rake stats runs correctly when spec files exist at the top level of the
    spec/ directory. (Benjamin Fleischer)