リストされたgemを使用してアプリのテストを作成しています。Capybaraをバックボーン(すべてajax)の
テスト例で動作するように設定する方法が見つかりませんでした:
require 'spec_helper' describe "Main" do describe "GET /" do
it "displays articles" do
Article.create!(title:'title',body:'<p>body text</p>')
visit '/'
page.should have_content('body text')
end
end
end
およびテストの出力:
Failures:
1) Main GET / displays articles
Failure/Error: page.should have_content('body text')
expected there to be text "body text" in "Loading..."
# ./spec/features/main_spec.rb:8:in `block (3 levels) in <top (required)>'
「読み込み中...」は、ビューテンプレートのpreajaxテキストです...
ポイントは、現時点ではこのアプリにジャスミンを使用したくないということです