Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created January 12, 2015 16:09
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 StanAngeloff/f23d5677dafbf21422a5 to your computer and use it in GitHub Desktop.
Save StanAngeloff/f23d5677dafbf21422a5 to your computer and use it in GitHub Desktop.
EU VAT regulations compliance example
@payment @tax
Feature: EU VAT regulations compliance
In order to be compliant with the new EU VAT regulations
As a Developer
I need to be able to charge different VAT rates depending on the country of origin
Background:
Given the following products exist:
| name | model | price | tax |
| ASUS MeMO Pad | ASUS:ME176C | £99.00 | 20% |
Scenario: A user from the United Kingdom purchases an ASUS MeMO Pad
Given the user "joe" exists
When "joe" confirms an order of "ASUS:ME176C" with the following information:
| name | address | city | state | zip | country |
| Joe Doe | 1 My Road | Oxford | Oxfordshire | OX00 0YZ | United Kingdom |
Then the following order is created for "joe":
| status | products | total price | inclusive of tax |
| NEW | 1 x ASUS MeMO Pad | £99.00 | £16.50 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment