Skip to content

Instantly share code, notes, and snippets.

@azizur
Forked from mattwynne/gist:825967
Created October 28, 2011 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azizur/1322503 to your computer and use it in GitHub Desktop.
Save azizur/1322503 to your computer and use it in GitHub Desktop.
invoice.feature
Scenario: Create an invoice
Given I am an authenticated user with an admin role
And a client "test client" exists with name: "test client", initials: "TTC"
And a project "test project" exists with name: "test project", client: client "test client"
And a ticket "test ticket" exists with project: project "test project", name: "test ticket"
And a work_unit "test work unit" exists with ticket: ticket "test ticket", scheduled_at: "2010-01-01"
And I am on the admin invoices page
Then I should see "test client"
And I follow "test client"
And I fill in "global_invoiced" with "123"
And I press "Submit"
Given I am on the admin invoices page
Then I should not see "test client"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment