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:
commit
99de24ac70
147 changed files with 3519 additions and 0 deletions
5
test/application_system_test_case.rb
Normal file
5
test/application_system_test_case.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require "test_helper"
|
||||
|
||||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]
|
||||
end
|
13
test/channels/application_cable/connection_test.rb
Normal file
13
test/channels/application_cable/connection_test.rb
Normal 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
0
test/controllers/.keep
Normal file
18
test/controllers/accounts_controller_test.rb
Normal file
18
test/controllers/accounts_controller_test.rb
Normal 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
|
8
test/controllers/pages_controller_test.rb
Normal file
8
test/controllers/pages_controller_test.rb
Normal 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
13
test/fixtures/accounts.yml
vendored
Normal 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
7
test/fixtures/families.yml
vendored
Normal 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
0
test/fixtures/files/.keep
vendored
Normal file
15
test/fixtures/users.yml
vendored
Normal file
15
test/fixtures/users.yml
vendored
Normal 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
0
test/helpers/.keep
Normal file
0
test/integration/.keep
Normal file
0
test/integration/.keep
Normal file
0
test/mailers/.keep
Normal file
0
test/mailers/.keep
Normal file
7
test/mailers/password_mailer_test.rb
Normal file
7
test/mailers/password_mailer_test.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require "test_helper"
|
||||
|
||||
class PasswordMailerTest < ActionMailer::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
3
test/mailers/previews/password_mailer_preview.rb
Normal file
3
test/mailers/previews/password_mailer_preview.rb
Normal 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
0
test/models/.keep
Normal file
7
test/models/account_test.rb
Normal file
7
test/models/account_test.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require "test_helper"
|
||||
|
||||
class AccountTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
7
test/models/family_test.rb
Normal file
7
test/models/family_test.rb
Normal 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
7
test/models/user_test.rb
Normal 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
0
test/system/.keep
Normal file
15
test/test_helper.rb
Normal file
15
test/test_helper.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue