-
Enhancements
- Move errors_on to ActiveModel to support other AM-compliant ORMs
-
Bug fixes
- Check for presence of ActiveRecord instead of checking Rails config (gets rspec out of the way of multiple ORMs in the same app)
-
Enhancements
- Add option to not generate request spec (--skip-request-specs)
-
Bug fixes
- Updated the mock_[model] method generated in controller specs so it adds any stubs submitted each time it is called.
- Fixed bug where view assigns weren't making it to the view in view specs in Rails-3.0.1. (Emanuele Vicentini)
- Changes
- route_to matcher delegates to assert_recognizes instead of assert_routing
- update generators to use as_new_record instead of :new_record => true
- Enhancements
- add --webrat-matchers flag to scaffold generator (for view specs)
- separate ActiveModel and ActiveRecord APIs in mock_model and stub_model
- ControllerExampleGroup uses controller as the implicit subject by default (Paul Rosania)
-
Enhancements
- autotest mapping improvements (Andreas Neuhaus)
-
Bug fixes
- delegate flunk to assertion delegate
-
Enhancements
- infer controller and action path_params in view specs
- more cucumber features (Justin Ko)
- clean up spec helper (Andre Arko)
- render views in controller specs if controller class is not ActionController::Base
- routing specs can access named routes
- add assign(name, value) to helper specs (Justin Ko)
- stub_model supports primary keys other than id (Justin Ko)
- encapsulate Test::Unit and/or MiniTest assertions in a separate object
- support choice between Webrat/Capybara (Justin Ko)
- removed hard dependency on Webrat
- support specs for 'abstract' subclasses of ActionController::Base (Mike Gehard)
- be_a_new matcher supports args (Justin Ko)
-
Bug fixes
- support T::U components in mailer and request specs (Brasten Sager)