Our First Test: Get Homepage
Explore how to write and execute your first feature test in Ruby on Rails by creating a user registration feature file, running tests with Cucumber, and implementing step definitions to cover homepage interactions.
We'll cover the following...
We'll cover the following...
Add our first test
The first step is to create a new file for our new feature.
The file can be generated using the following command:
$ touch features/user_registration.feature
We need to add the following text to the newly-generated file:
Run our test
As mentioned previously, the test guides everything we do moving forward. So, the logical next step will be to run the test and see ...