Skip to content

Instantly share code, notes, and snippets.

@maddox
Created October 22, 2008 22:20
Show Gist options
  • Select an option

  • Save maddox/18821 to your computer and use it in GitHub Desktop.

Select an option

Save maddox/18821 to your computer and use it in GitHub Desktop.
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