После клонирования последних стабильных версий
- рельсы (2.3.2),
- rspec (1.2.2),
- огурец (0.2.0.4 ... вышла 24 марта 2009 г.),
- rspec-rails (1.2.2),
- restful-authentication (исправлено formatted_user_path и несколько других проблем),
- webrat,
- rubyist-aasm (и некоторые другие)
в чистое приложение rails и следуя (как я полагаю) всем инструкциям для каждого плагина, огуречные истории по-прежнему терпят неудачу :-(. Вот краткое изложение проблем:
- 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:in `should'. /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?
О, и я пытаюсь запустить autospec, поэтому для его запуска я выполнил следующие команды:
export AUTOFEATURE=true rake spec:server:start ruby script/autospec