請求測試

請求測試是模仿使用者行為的端到端測試。

it 'allows the user to set their preferences' do
  check 'Ruby'
  click_on 'Save and Continue'
  expect(user.languages).to eq ['Ruby']
end

資源

這種測試側重於使用者流程,並且有時甚至會渲染 javascript,貫穿系統的所有層。