[rspec-users] spec'ing namespaced routes

2010-07-04 Thread Frank Mattia
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

Re: [rspec-users] Help with nested routes test in Rails 3

2010-07-04 Thread Lalish-Menagh, Trevor
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)

[rspec-users] [ANN] database_resetter 0.1.0

2010-07-04 Thread Ashley Moran
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