RSpec / RSpec Rails / Docs
2.14.2 / 2014-03-22
2.14.2 / 2014-03-22
Bug fixes
- Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)
- Anonymous controllers inherit from
ActionController::BaseifApplicationControlleris not present. (Jon Rowe)
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)
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)
2.13.2 / 2013-05-18
Bug fixes
letdefinitions may override methods defined in modules brought in viaconfig.includein controller specs. Fixes regression introduced in 2.13. (Andy Lindeman, Jon Rowe)- Code that checks Rails version numbers is more robust in cases where Rails is not fully loaded. (Andy Lindeman)
2.13.1 / 2013-04-27
Bug fixes
- View specs are no longer generated if no template engine is specified (Kevin Glowacz)
ActionController::Base.allow_forgery_protectionis set to its original value after each example. (Mark Dimas)patchis supported in routing specs. (Chris Your)- Routing assertions are supported in controller specs in Rails 4. (Andy Lindeman)
- Fix spacing in the install generator template (Taiki ONO)
2.13.0 / 2013-02-23
Enhancements
be_validmatcher includes validation error messages. (Tom Scott)- Adds cucumber scenario showing how to invoke an anonymous controller's non-resourceful actions. (Paulo Luis Franchini Casaretto)
- Null template handler is used when views are stubbed. (Daniel Schierbeck)
- The generated
spec_helper.rbin Rails 4 includes a check for pending migrations. (Andy Lindeman) - Adds
rake spec:featurestask. (itzki) - Rake tasks are automatically generated for each spec/ directory. (Rudolf Schmidt)
2.12.2 / 2013-01-12
Bug fixes
- Reverts earlier fix where anonymous controllers defined the
_routesmethod to support testing of redirection and generation of URLs from other contexts. The implementation ended up breaking the ability to refer to non-anonymous routes in the context of the controller under test. - Uses
assert_selectcorrectly in view specs generated by scaffolding. (Andy Lindeman)
2.12.1 / 2013-01-07
Bug fixes
- Operates correctly when ActiveRecord is only partially loaded (e.g., with older versions of Mongoid). (Eric Marden)
expect(subject).to have(...).errors_onoperates correctly for ActiveResource models wherevalid?does not accept an argument. (Yi Wen)- Rails 4 support for routing specs. (Andy Lindeman)
- Rails 4 support for
ActiveRecord::Relationand the=~operator matcher. (Andy Lindeman) - Anonymous controllers define
_routesto support testing of redirection and generation of URLs from other contexts. (Andy Lindeman)
2.12.0 / 2012-11-12
Enhancements
- Support validation contexts when using
#errors_on(Woody Peterson) - Include RequestExampleGroup in groups in spec/api
Bug fixes
- Add
shouldandshould_nottoCollectionProxy(Rails 3.1+) andAssociationProxy(Rails 3.0). (Myron Marston) controller.controller_pathis set correctly for view specs in Rails 3.1+. (Andy Lindeman)- Generated specs support module namespacing (e.g., in a Rails engine). (Andy Lindeman)
renderproperly infers the view to be rendered in Rails 3.0 and 3.1 (John Firebaugh)- AutoTest mappings involving config/ work correctly (Brent J. Nordquist)
- Failures message for
be_new_recordare more useful (Andy Lindeman)
2.11.4 / 2012-10-14
Capybara-2.0 integration support:
- include RailsExampleGroup in spec/features (necessary when there is no AR)
- include Capybara::DSL and Capybara::RSpecMatchers in spec/features