私はRailsので水をテストしていると私はこの簡単なテストでこだわっている:RSpecの:最も簡単なテストがエラーで失敗します。期待ブロック真の値を返すように
私はrouting_spec仕様/ルーティング/このコードを持っています。私のコードで何が悪い
Failure/Error: { :get => '/' }.
Expected block to return true value.
# ./spec/routing/routing_spec.rb:7:in `block (3 levels) in <top (required)>'
:RB
require 'spec_helper'
describe "Accessing the root domain" do
it "should route to home#index" do
{ :get => '/' }.
should route_to(:controller => 'home', :action=>'index')
end
end
これは、次のエラーで失敗しますか?
どのバージョンを? – raidfive
私はRSpec 2.5.1を使用しています – JAG