mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Add initial model tests with starter fixtures for User, Family, and Account (#281)
* Add initial user fixture * Add initial tests for the User model * Add initial tests for Family and a valid Account * Pass rubocop
This commit is contained in:
21
test/fixtures/accounts.yml
vendored
21
test/fixtures/accounts.yml
vendored
@@ -1,11 +1,14 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
dylan_checking:
|
||||
family: dylan_family
|
||||
name: Bob's Checking
|
||||
balance: 1200
|
||||
|
||||
one:
|
||||
family: one
|
||||
name: MyString
|
||||
balance:
|
||||
dylan_roth:
|
||||
family: dylan_family
|
||||
name: Bob's Roth IRA
|
||||
balance: 1200
|
||||
|
||||
two:
|
||||
family: two
|
||||
name: MyString
|
||||
balance:
|
||||
richards_savings:
|
||||
family: richards_family
|
||||
name: Keef's HYSA
|
||||
balance: 1500
|
||||
8
test/fixtures/families.yml
vendored
8
test/fixtures/families.yml
vendored
@@ -1,7 +1,7 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
dylan_family:
|
||||
name: The Dylan Family
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
richards_family:
|
||||
name: The Richards Family
|
||||
|
||||
31
test/fixtures/users.yml
vendored
31
test/fixtures/users.yml
vendored
@@ -1,15 +1,20 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
bob:
|
||||
family: dylan_family
|
||||
first_name: Bob
|
||||
last_name: Dylan
|
||||
email: bob@bobdylan.com
|
||||
password_digest: <%= BCrypt::Password.create('password') %>
|
||||
|
||||
one:
|
||||
family: one
|
||||
first_name: MyString
|
||||
last_name: MyString
|
||||
email: MyString
|
||||
password_digest: MyString
|
||||
jakob:
|
||||
family: dylan_family
|
||||
first_name: Jakob
|
||||
last_name: Dylan
|
||||
email: jakobdylan@yahoo.com
|
||||
password_digest: <%= BCrypt::Password.create('password') %>
|
||||
|
||||
two:
|
||||
family: two
|
||||
first_name: MyString
|
||||
last_name: MyString
|
||||
email: MyString
|
||||
password_digest: MyString
|
||||
keith:
|
||||
family: richards_family
|
||||
first_name: Keith
|
||||
last_name: Richards
|
||||
email: keith@rollingstones.com
|
||||
password_digest: <%= BCrypt::Password.create('password') %>
|
||||
|
||||
Reference in New Issue
Block a user