Ruby on Rails - request test in ruby on rails- ruby on rails tutorial - rails guides - rails tutorial - ruby rails
request test
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
Clicking "Copy Code" button will copy the code into the clipboard - memory. Please paste(Ctrl+V) it in your destination. The code will get pasted. Happy coding from Wikitechy - ruby on rails tutorial - rails guides - ruby rails - rubyonrails - learn ruby on rails - team
source
This kind of test focuses on user flows and runs through all layers of the system sometimes even rendering javascript.