Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get stories to work with restful_authentication and cucumber?
    text
    copied!<p>After cloning the latest stable versions of </p> <ul> <li><a href="http://github.com/rails/rails/tree/master" rel="nofollow noreferrer">rails</a> (2.3.2),</li> <li><a href="http://github.com/dchelimsky/rspec/tree/master" rel="nofollow noreferrer">rspec</a> (1.2.2),</li> <li><a href="http://wiki.github.com/aslakhellesoy/cucumber" rel="nofollow noreferrer">cucumber</a> (0.2.0.4...came out 2009-03-24),</li> <li><a href="http://wiki.github.com/dchelimsky/rspec-rails" rel="nofollow noreferrer">rspec-rails</a> (1.2.2), </li> <li><a href="http://github.com/technoweenie/restful-authentication/tree/master" rel="nofollow noreferrer">restful-authentication</a> (fixed formatted_user_path and a few other problems),</li> <li><a href="http://wiki.github.com/brynary/webrat" rel="nofollow noreferrer">webrat</a>, </li> <li><a href="http://github.com/rubyist/aasm/tree/master" rel="nofollow noreferrer">rubyist-aasm</a> (and a few others)</li> </ul> <p>into a clean rails application, and following (what I believe are) all the instructions for each plugin, cucumber stories still are failing :-(. Here's a summary of the problems:</p> <ol> <li>redirects are not working right off the bat despite having created the 'map.root :controller => "my_controller"' route : <pre> expected redirect to "/", got no redirect (Spec::Expectations::ExpectationNotMetError) /cygdrive/c/development/test/vendor/plugins/rspec/lib/spec/expectations.rb:57:in `fail_with' /cygdrive/c/development/test/vendor/plugins/rspec/lib/spec/expectations/handler.rb:14:in `handle_matcher' /cygdrive/c/development/test/vendor/plugins/rspec/lib/spec/expectations/extensions/object.rb:31:in `should'. /features/step_definitions/user_steps.rb:111:in `/^an? (.*) user named '(.*)'$/' features/sessions.feature:25:in `And an activated user named 'reggie'' </pre></li> <li>the story says the <code>logged_in?</code> method is protected despite the <code>features/step_definitions/ra_env.rb</code> file calling: <pre>ApplicationController.send(:public, :logged\_in?, :current\_user, :authorized?)</pre> Doesn't that call make those methods available without needing stubbing?</li> </ol> <p>Oh, and I'm trying to run autospec, so I've done the following commands to get it started:</p> <pre> export AUTOFEATURE=true rake spec:server:start ruby script/autospec </pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload