What's the appropriate way to test namespaced routes with rspec-2 &
rails 3?
I imagined that the following would work but it does not.
describe Admin::UsersController do
describe "routing" do
it "recognizes and generates #index" do
{ :get => "/admin/users" }.should route_to(:controlle
Hi again,
I figured out the issue. RSpec's route_to wraps Rails' assert_routing,
which checks two things:
- Rails recognizes the given path and routes it to a particular spot
in your application (via assert_recognizes)
- a particular set of options generate a particular path (via assert_generates)
Hi all
Apologies for cross-posting and spam in the same post. Hopefully you'll let me
off this once...
I just released my first gem (woo!), database_resetter[1]. It's designed to
completely rebuild your Rails/Merb etc database before a Cucumber/RSpec every
time a migration changes. Basicall