Created
October 22, 2008 22:20
-
-
Save maddox/18821 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Feature: Create customer rental | |
| In order to make money | |
| An admin | |
| Should be able to create new customer rentals | |
| Scenario: Create a new customer rental | |
| Given an admin user | |
| When the admin is logged in | |
| And is on the customers page | |
| Then I should see "Jon Maddox" | |
| Given "an admin user" do | |
| User.create(:login => 'admin', | |
| :password => 'test', | |
| :email => 'admin@test.com') | |
| end | |
| When "the admin is logged in" do | |
| post "/sessions", :password => "test", :login => "admin" | |
| end | |
| Given /is on the customers page/ do | |
| visits "/customers/1" | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment