Sha256: aecb60ade3e000e0abaf534426d7b09b7889252153cbcab970dcf73c4a4eea96
Contents?: true
Size: 1.95 KB
Versions: 13
Compression:
Stored size: 1.95 KB
Contents
Feature: Transfer In order to transfer money from one account to another As a Bank I want not to loose money Scenario: I transfer money between accounts having holders Given I create a user Thies Given I create a user Norman When I transfer 30 € from Thies's account to Norman's account Then Thies's account balance is -30 € And Norman's account balance is 30 € And the order of the postings is correct Scenario: I transfer a negative amount between accounts having holders Given I create a user Thies Given I create a user Norman When I transfer -30 € from Thies's account to Norman's account Then Thies's account balance is 30 € And Norman's account balance is -30 € And the order of the postings is correct Scenario: I transfer money between global accounts Given I create a global wirecard account Given I create a global anonymous_donation account When I transfer 30 € from global wirecard account to global anonymous_donation account Then the global wirecard account balance is -30 € And the global anonymous_donation account balance is 30 € Scenario: I transfer money between accounts having a domain object Given I create a user Thies Given I create a user Norman When I transfer 50 € from Thies's account to Norman's account referencing a Cheque with number 8723 Then Thies's account balance is -50 € And Norman's account balance is 50 € And all postings reference Cheque with number 8723 And Cheque with number 8723 references all postings Scenario: I transfer money between accounts setting the booking time Given I create a user Thies Given I create a user Norman When I transfer 50 € from Thies's account to Norman's account and specify 22.05.1968 07:45 as the booking time Then Thies's account balance is -50 € And Norman's account balance is 50 € And all postings have 22.05.1968 07:45 as the booking time
Version data entries
13 entries across 13 versions & 1 rubygems