

More progress on my algorithmic cathedral. This is a fun little project. :-)
Feature: Create account
As a new user
In order that I be able to store programs and data permanently
I want to be able to create an account
Scenario: Create a valid account
Given I am on /users/new
When I fill in the following:
| Name | zack |
| Password | password |
| Confirmation | password |
And I press "Create account"
Then I should be on /users/account_created
And there should exist a user named "zack"
Scenario: Create a invalid account due to mismatching passwords
Given I am on /users/new
When I fill in the following:
| Name | zack |
| Password | password |
| Confirmation | passwo |
And I press "Create account"
Then I should be on /users
And I should see "Errors"
And there should not exist a user named "zack"
Given /^(?:|I )am on (.+)$/ do |page_name|
visit path_to(page_name)
end