After cloning the latest stable versions of
- rails (2.3.2),
- rspec (1.2.2),
- cucumber (0.2.0.4...came out 2009-03-24),
- rspec-rails (1.2.2),
- restful-authentication (fixed formatted_user_path and a few other problems),
- webrat,
- rubyist-aasm (and a few others)
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:
- redirects are not working right off the bat despite having created the 'map.root :controller => "my_controller"' route :
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:inshould'. /features/step_definitions/user_steps.rb:111:in
/^an? (.) user named '(.)'$/' features/sessions.feature:25:in `And an activated user named 'reggie'' - the story says the
logged_in?
method is protected despite thefeatures/step_definitions/ra_env.rb
file calling:ApplicationController.send(:public, :logged_in?, :current_user, :authorized?)
Doesn't that call make those methods available without needing stubbing?
Oh, and I'm trying to run autospec, so I've done the following commands to get it started:
export AUTOFEATURE=true rake spec:server:start ruby script/autospec