### 2.13.0 / 2013-02-23
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.12.2...v2.13.0)
Enhancements
* `be_valid` matcher 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.rb` in Rails 4 includes a check for pending
migrations. (Andy Lindeman)
* Adds `rake spec:features` task. (itzki)
* Rake tasks are automatically generated for each spec/ directory.
(Rudolf Schmidt)
### 2.12.2 / 2013-01-12
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.12.1...v2.12.2)
Bug fixes
* Reverts earlier fix where anonymous controllers defined the `_routes` method
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
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.12.0...master)
Bug fixes
* Operates correctly when ActiveRecord is only partially loaded (e.g., with
older versions of Mongoid). (Eric Marden)
* `expect(subject).to have(...).errors_on` operates correctly for
ActiveResource models where `valid?` does not accept an argument. (Yi Wen)
* Rails 4 support for routing specs. (Andy Lindeman)
* Rails 4 support for `ActiveRecord::Relation` and the `=~` operator matcher.
(Andy Lindeman)
* Anonymous controllers define `_routes` to support testing of redirection
and generation of URLs from other contexts. (Andy Lindeman)
### 2.12.1 / 2013-01-07
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.12.0...master)
Bug fixes
* Operates correctly when ActiveRecord is only partially loaded (e.g., with
older versions of Mongoid). (Eric Marden)
* `expect(subject).to have(...).errors_on` operates correctly for
ActiveResource models where `valid?` does not accept an argument. (Yi Wen)
* Rails 4 support for routing specs. (Andy Lindeman)
* Rails 4 support for `ActiveRecord::Relation` and the `=~` operator matcher.
(Andy Lindeman)
* Anonymous controllers define `_routes` to support testing of redirection
and generation of URLs from other contexts. (Andy Lindeman)
### 2.12.0 / 2012-11-12
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.11.4...2.12.0)
Enhancements
* Support validation contexts when using `#errors_on` (Woody Peterson)
* Include RequestExampleGroup in groups in spec/api
Bug fixes
* Add `should` and `should_not` to `CollectionProxy` (Rails 3.1+) and
`AssociationProxy` (Rails 3.0). (Myron Marston)
* `controller.controller_path` is set correctly for view specs in Rails 3.1+.
(Andy Lindeman)
* Generated specs support module namespacing (e.g., in a Rails engine).
(Andy Lindeman)
* `render` properly 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_record` are more useful (Andy Lindeman)
### 2.11.4 / 2012-10-14
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.11.0...v2.11.4)
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
See [https://github.com/jnicklas/capybara/pull/809](https://github.com/jnicklas/capybara/pull/809)
and [http://rubydoc.info/gems/rspec-rails/file/Capybara.md](http://rubydoc.info/gems/rspec-rails/file/Capybara.md)
for background.
2.11.1, .2, .3 were yanked due to errant documentation.
2.11.0 / 2012-07-07
full changelog
Enhancements
* The generated spec/spec_helper.rb sets config.order = "random" so that specs
run in random order by default.
* rename render_template to have_rendered (and alias to render_template for
backward compatibility)
Bug fixes
* "uninitialized constant" errors are avoided when using using gems like
rspec-rails-uncommitted that define Rspec::Rails before rspec-rails loads
(Andy Lindeman)
### 2.10.1 / 2012-05-03
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.10.0...v2.10.1)
Bug fixes
* fix regression introduced in 2.10.0 that broke integration with Devise
(https://github.com/rspec/rspec-rails/issues/534)
### 2.10.0 / 2012-05-03
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.9.0...v2.10.0)
Bug fixes
* `render_views` called in a spec can now override the config setting. (martinsvalin)
* Fix `render_views` for anonymous controllers on 1.8.7. (hudge, mudge)
* Eliminate use of deprecated `process_view_paths`
* Fix false negatives when using `route_to` matcher with `should_not`
* `controller` is no longer nil in `config.before` hooks
* Change `request.path_parameters` keys to symbols to match real Rails
environment (Nathan Broadbent)
* Silence deprecation warnings in pre-2.9 generated view specs (Jonathan del
Strother)
Remove restriction for version of Ruby on Rails.
### 2.9.0 / 2012-03-17
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.8.1...v2.9.0)
Enhancments
* add description method to RouteToMatcher (John Wulff)
* Run "db:test:clone_structure" instead of "db:test:prepare" if Active Record's
schema format is ":sql". (Andrey Voronkov)
Bug fixes
* mock_model(XXX).as_null_object.unknown_method returns self again
* Generated view specs use different IDs for each attribute.
2.8.1 / 2012-01-04
full changelog
NOTE: there was a change in rails-3.2.0.rc2 which broke compatibility
with stub_model in rspec-rails. This release fixes that issue, but it
means that you'll have to upgrade to rspec-rails-2.8.1 when you upgrade
to rails >= 3.2.0.rc2.
* Bug fixes
- Explicitly stub valid? in stubmodel. Fixes stubmodel for rails
versions >= 3.2.0.rc2.
2.8.0 / 2012-01-04
full changelog
* Enhancements
- Eliminate deprecation warnings in generated view specs in Rails 3.2
- Ensure namespaced helpers are included automatically (Evgeniy Dolzhenko)
- Added cuke scenario documenting which routes are generated for
anonymous controllers (Alan Shields) 2.8.0.rc2 / 2011-12-19
full changelog
* Enhancements
- Add session hash to generated controller specs (Thiago Almeida)
- Eliminate deprecation warnings about InstanceMethods modules in Rails 3.2
* Bug fixes
- Stub attribute accessor after respond_to? call on mocked model (Igor Afonov)
2.8.0.rc1 / 2011-11-06
full changelog
* Enhancements
- Removed unnecessary "config.mockwith :rspec" from spechelper.rb
(Paul Annesley)
* Changes
- No API changes for rspec-rails in this release, but some internals
changed to align with rspec-core-2.8
* rspec-core
* rspec-expectations
* rspec-mocks