1
フォーム上のパスを確認するテストを作成するにはどうすればよいですか?フォームパスを確認するためのrspecテストの作成
私はこのしようとしている:
it "has a proper form path given subdomains" do
@event = Factory :event
get events_path(@event), nil, {'HTTP_HOST' => 'staging.example.com' }
page.should have_selector "form", :action => "secure.staging.example.com"
end
をしかし、私のテストが動作しているように、それは見ていません:
Failure/Error: page.should have_selector "form", :action => "secure.staging.example.com"
expected css "form" to return something
# ./spec/requests/events_spec.rb:18:in `block (3 levels) in <top (required)>'