A website template with lots of features, built with ruby on rails.

user_account.feature 1.5KB

    @focus Feature: User Account In order to change content in the website As user of the system I want to create, update adn delete my user account Background: Given the website is configured Scenario: Registered user login Given the user "Monty" "Cantsin" with email "monty_cantsin@canada.com" and password "12345678" exists And I am not logged in When I go to the login page Then I should see "Sign In" And I log in with the email "monty_cantsin@canada.com" and password "12345678" Then I should see "Signed in successfully" And I should see "Monty Cantsin" And I should see "Logout" Scenario: Registered user logout Given the user "Monty" "Cantsin" with email "monty_cantsin@canada.com" and password "12345678" exists And I am not logged in When I go to the login page And I log in with the email "monty_cantsin@canada.com" and password "12345678" Then I click in the link "Logout" And I should see "Signed out successfully" Scenario: User registration Given I am not logged in And I go to the signup page When I fill in "First Name" with "Monty" And I fill in "Last Name" with "Cantsin" And I fill in "Email" with "monty_cantsin@canada.com" And I fill in "Password" with "12345678" And I fill in "Password Confirmation" with "12345678" And I submit the login form Then I should see "Welcome! You have signed up successfully" And I should see "Monty Cantsin" And I should see "Logout" And "monty_cantsin@canada.com" should receive an email with subject "Welcome to Rails Website Template"