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

Version Path
acts_as_account-3.2.3 features/transfer/transfer.feature
acts_as_account-3.2.2 features/transfer/transfer.feature
acts_as_account-3.2.1 features/transfer/transfer.feature
acts_as_account-3.2.0 features/transfer/transfer.feature
acts_as_account-3.1.2 features/transfer/transfer.feature
acts_as_account-2.0.3 features/transfer/transfer.feature
acts_as_account-3.1.1 features/transfer/transfer.feature
acts_as_account-2.0.2 features/transfer/transfer.feature
acts_as_account-3.1.0 features/transfer/transfer.feature
acts_as_account-2.0.1 features/transfer/transfer.feature
acts_as_account-1.2.0 features/transfer/transfer.feature
acts_as_account-1.1.6 features/transfer/transfer.feature
acts_as_account-1.1.5 features/transfer/transfer.feature