の最新の安定したバージョンのクローンを作成した後
- レール(2.3.2)、
- rspec(1.2.2)、
- きゅうり(0.2.0.4 ... 2009年3月24日発売)、
- rspec-rails(1.2.2)、
- restful-認証(formatted_user_pathおよびその他のいくつかの問題を修正)、
- webrat、
- rubyist-aasm(および他のいくつか)
クリーンなRailsアプリケーションに移行し、各プラグインのすべての指示(私が信じていること)に従って、キュウリの話はまだ失敗しています:-(。問題の概要は次のとおりです。
- 'map.root:controller => "my_controller"'ルートを作成したにもかかわらず、リダイレクトはすぐには機能しません。
「/」へのリダイレクトが必要ですが、リダイレクトはありません(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?(。*)'(。*)'$/'という名前のユーザー features / sessions.feature:25:in`そして'reggie''という名前のアクティブ化されたユーザー
- ストーリーによると、ファイルを呼び出し
logged_in?
てもメソッドは保護されています。features/step_definitions/ra_env.rb
ApplicationController.send(:public、:logged \ _in?、:current \ _user、:authorized?)
その呼び出しは、スタブを必要とせずにそれらのメソッドを利用可能にしませんか?
ああ、私はautospecを実行しようとしているので、それを開始するために次のコマンドを実行しました。
AUTOFEATURE=trueをエクスポートします rake spec:server:start ルビースクリプト/autospec