Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

rake test fails due to currency discrepancies #6

Open
fletma opened this issue Jul 31, 2010 · 4 comments
Open

rake test fails due to currency discrepancies #6

fletma opened this issue Jul 31, 2010 · 4 comments

Comments

@fletma
Copy link

fletma commented Jul 31, 2010

When running the rake test, I get a series of failures such as

Tests run: 31, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.199 sec <<< FAILURE!
itComputesTheBalanceByAddingSubsequentTransactionAmountsToTheStaleBalance(com.wesabe.api.accounts.entities.tests.AccountTest$A_Manual_Account_With_A_Stale_Balance) Time elapsed: 0.033 sec <<< FAILURE!
java.lang.AssertionError: expected:<US$8.50> but was:<$8.50>

itHasABalanceEqualToTheLastAccountBalance(com.wesabe.api.accounts.entities.tests.AccountTest$A_Manual_Account_Without_A_Cached_Balance) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.AssertionError: expected:<US$10.00> but was:<$10.00>

itIsInUSD(com.wesabe.api.accounts.entities.tests.AccountTest$A_New_Account) Time elapsed: 0.002 sec <<< FAILURE!
java.lang.AssertionError: expected: but was:

I am running this on the latest version of Ubuntu as a fresh install. I am located in Australia.

@tame4tex
Copy link

tame4tex commented Aug 7, 2010

I also get similar failures. Is there a fix for this?

@fletma
Copy link
Author

fletma commented Aug 7, 2010

I just resetup my Ubuntu to all American localisations, including currency. Worked ok after that. I don't worki in multiple currencies so it is a reasonable workaround for me.

@tame4tex
Copy link

tame4tex commented Aug 7, 2010

Thanks fletma. I am based in Canada so that looks like the issue. Just changed System -> Administration -> Language & Text -> Text -> Display numbers, dates and currency amounts in the usual formats for:
to "English (United States)"
The rake test passed!
I do use multiple currencies so I guess I'll see if this causes an issue

@st3wart
Copy link

st3wart commented Aug 22, 2010

And make sure you restart your ubuntu after that

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants