使用Puffing Billy instructions for rspec with capybara我創建了一個簡單的測試使用:poltergeist_billy駕駛員造成錯誤末梢的請求: ArgumentError:
rack-test requires a rack application, but none was given
# /home/resrev/.rv
我的頁面上有兩個字段集。他們沒有任何身份證件或班級。 現在我想填充第二個字段集中的特定字段。 目前,我一個做這樣的事情這是不工作: within_fieldset('fieldset') do
fill_in 'app_answers_attributes_0_answer', with: 'My First Answer'
end
click_on 'Submit'
而且它給錯
您好我有錯誤,我capybara測試ENV unknown error: jQuery is not defined
(Session info: chrome=43.0.2357.125)
我認爲這是關係到AJAX等待功能 def wait_for_ajax
Timeout.timeout(Capybara.default_wait_time) do
ele