mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-23 15:19:38 +02:00
Prepare fixture data for account sync tests (#493)
* Rename account balance field for clarity `original_balance` and `original_currency` may infer that these values are "original" to the account. In reality, they represent the "current" balance and currency on the account. * Prepare fixture data for account sync testing * Update to new field * Fix conflicts * Remove local schema change
This commit is contained in:
parent
d3b326d273
commit
7d48c01833
37 changed files with 230 additions and 265 deletions
|
@ -2,8 +2,8 @@ require "test_helper"
|
|||
|
||||
class AccountsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
sign_in @user = users(:bob)
|
||||
@account = accounts(:dylan_checking)
|
||||
sign_in @user = users(:family_admin)
|
||||
@account = accounts(:generic)
|
||||
end
|
||||
|
||||
test "new" do
|
||||
|
|
|
@ -2,7 +2,7 @@ require "test_helper"
|
|||
|
||||
class PagesControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
sign_in users(:bob)
|
||||
sign_in users(:family_admin)
|
||||
end
|
||||
|
||||
test "dashboard" do
|
||||
|
|
|
@ -2,7 +2,7 @@ require "test_helper"
|
|||
|
||||
class PasswordResetsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
@user = users(:bob)
|
||||
@user = users(:family_admin)
|
||||
end
|
||||
|
||||
test "new" do
|
||||
|
|
|
@ -2,8 +2,8 @@ require "test_helper"
|
|||
|
||||
class TransactionsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
sign_in @user = users(:bob)
|
||||
@transaction = transactions(:one)
|
||||
sign_in @user = users(:family_admin)
|
||||
@transaction = transactions(:checking_one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
|
|
|
@ -2,8 +2,8 @@ require "test_helper"
|
|||
|
||||
class ValuationsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
sign_in @user = users(:bob)
|
||||
@account = accounts(:dylan_checking)
|
||||
sign_in @user = users(:family_admin)
|
||||
@account = accounts(:generic)
|
||||
end
|
||||
|
||||
test "new" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue