Created
January 12, 2015 16:09
-
-
Save StanAngeloff/f23d5677dafbf21422a5 to your computer and use it in GitHub Desktop.
EU VAT regulations compliance example
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
@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