1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Initial commit

This commit is contained in:
Josh Pigford 2024-02-02 09:05:04 -06:00
commit 99de24ac70
147 changed files with 3519 additions and 0 deletions

View file

@ -0,0 +1,5 @@
require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]
end

View file

@ -0,0 +1,13 @@
require "test_helper"
module ApplicationCable
class ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
end

0
test/controllers/.keep Normal file
View file

View file

@ -0,0 +1,18 @@
require "test_helper"
class AccountsControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get accounts_index_url
assert_response :success
end
test "should get new" do
get accounts_new_url
assert_response :success
end
test "should get show" do
get accounts_show_url
assert_response :success
end
end

View file

@ -0,0 +1,8 @@
require "test_helper"
class PagesControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get pages_index_url
assert_response :success
end
end

13
test/fixtures/accounts.yml vendored Normal file
View file

@ -0,0 +1,13 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
type:
family: one
name: MyString
balance:
two:
type:
family: two
name: MyString
balance:

7
test/fixtures/families.yml vendored Normal file
View file

@ -0,0 +1,7 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
two:
name: MyString

0
test/fixtures/files/.keep vendored Normal file
View file

15
test/fixtures/users.yml vendored Normal file
View file

@ -0,0 +1,15 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
family: one
first_name: MyString
last_name: MyString
email: MyString
password_digest: MyString
two:
family: two
first_name: MyString
last_name: MyString
email: MyString
password_digest: MyString

0
test/helpers/.keep Normal file
View file

0
test/integration/.keep Normal file
View file

0
test/mailers/.keep Normal file
View file

View file

@ -0,0 +1,7 @@
require "test_helper"
class PasswordMailerTest < ActionMailer::TestCase
# test "the truth" do
# assert true
# end
end

View file

@ -0,0 +1,3 @@
# Preview all emails at http://localhost:3000/rails/mailers/password_mailer
class PasswordMailerPreview < ActionMailer::Preview
end

0
test/models/.keep Normal file
View file

View file

@ -0,0 +1,7 @@
require "test_helper"
class AccountTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View file

@ -0,0 +1,7 @@
require "test_helper"
class FamilyTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

7
test/models/user_test.rb Normal file
View file

@ -0,0 +1,7 @@
require "test_helper"
class UserTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

0
test/system/.keep Normal file
View file

15
test/test_helper.rb Normal file
View file

@ -0,0 +1,15 @@
ENV["RAILS_ENV"] ||= "test"
require_relative "../config/environment"
require "rails/test_help"
module ActiveSupport
class TestCase
# Run tests in parallel with specified workers
parallelize(workers: :number_of_processors)
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
# Add more helper methods to be used by all tests here...
end
end