[rspec-users] RSpec story failing because of routing error on "/"
d at sofer.com
Sun Jun 15 05:33:54 EDT 2008
Here's the problem.
When running tests on the restful_authentication plugin, I am getting
a routing error on "/".
Which I don't really understand, because the route "/" certainly does
exist as I can confirm when I run ./script/server and point my browser
Here is an example of the error I am getting when I run "ruby stories/
Scenario: Anonymous user can get a login form.
Given an anonymous user (FAILED)
When she goes to /login
Then she should be at the new sessions page
And the page should look AWESOME (SKIPPED)
And she should see a <form> containing a textfield: Login,
password: Password, and submit: 'Log in'
1) Creating an account (Anonymous user can start creating an
ActionController::RoutingError: No route matches "/" with
./stories/steps/user_steps.rb:12:in `an anonymous user'
I am running:
And this is a completely fresh install with no code added by me.
Here are the steps to replicate (from my app root):
git clone git://github.com/rails/rails.git vendor/rails
git clone git://github.com/dchelimsky/rspec.git vendor/plugins/rspec
git clone git://github.com/dchelimsky/rspec-rails.git vendor/plugins/
git clone git://github.com/technoweenie/restful-authentication.git
./script/generate authenticated user sessions
mate app/controllers (and added " include AuthenticatedSystem" to the
Many thanks for your kind attention,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2458 bytes
Desc: not available
More information about the rspec-users