Ruby on Rails Testing Rails Applications Request Test

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

Request tests are end to end tests that imitate the behavior of a user.

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

source

This kind of test focuses on user flows and runs through all layers of the system sometimes even rendering javascript.



Got any Ruby on Rails Question?