RSpec / RSpec Rails / Docs
2.12.2 / 2013-01-12
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.
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