RSpecでajaxリクエストどうテストするのかなと思ったら, `xhr :get, :index` で出来るとか変態すぎる

HashHash のブックマーク 2013/04/01 21:32

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

How do you test an AJAX request with RSpec/RoR?

    I'm fairly new to RoR and recently started learning BDD/Rspec for testing my application. I've been looking for a way to spec an AJAX request, but so far I haven't found much documentation on this ...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう