Based of rspec-rails install generator. Assume all configuration will be placed in spec/support/*.rb
Released with rails 5.1, these tests cover end to end functionality.
In addition to setting this up, we've added a way to include domain specific test helpers for your tests in the spec/support/helpers
. These files can be included in support/helpers.rb
Simple short hand for using real browsers to drive your tests.
it 'saves the form data', :js do
# ...some test
end
it 'saves the form data', :chrome do
# ...some test
end
it 'saves the form data', :firefox do
# ...some test
end