Our First Test: Get Homepage
Let’s run our first feature test.
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:
Press +  to interact
Feature: User registrationAs a first-time visitorI want to be able to create an accountSo that I can access the members areaScenario: I create an accountGiven I am on the homepageAnd I click on the registration linkWhen I fill in and submit the registration formThen I should see a registration confirmation messageAnd I should receive a confirmation email
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 ...
 Ask