it "should submit form", :driver => :webkit do
visit '/things/new'
page.should have_content('Login')
fill_in 'user_login', with: @thing.email
fill_in 'user_comment', with: @thing.comment
click_button 'log_in'
save_and_open_page
page.should have_content('Thanks!')
end
ブラウザの応答 [内部サーバー エラー]:
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
things_controller または things/_form の何かが予想外に nil であると推測していますが、それが何であるかを特定できないようです。ページは開発中に正常に動作します (データが入力されたデータベースを使用)
より有意義なフィードバックを得る方法はありますか?
または私は間違った方向に進んでいますか?