mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-16 22:12:53 +00:00
Moving to github
This commit is contained in:
0
test/controllers/.keep
Normal file
0
test/controllers/.keep
Normal file
18
test/controllers/api_tokens_controller_test.rb
Normal file
18
test/controllers/api_tokens_controller_test.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require "test_helper"
|
||||
|
||||
class ApiTokensControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get index" do
|
||||
get api_tokens_index_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get api_tokens_create_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get destroy" do
|
||||
get api_tokens_destroy_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
43
test/controllers/collections_controller_test.rb
Normal file
43
test/controllers/collections_controller_test.rb
Normal file
@@ -0,0 +1,43 @@
|
||||
require "test_helper"
|
||||
|
||||
class CollectionsControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get index" do
|
||||
get collections_index_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get show" do
|
||||
get collections_show_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get collections_new_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get collections_create_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get collections_edit_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get update" do
|
||||
get collections_update_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get destroy" do
|
||||
get collections_destroy_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get games" do
|
||||
get collections_games_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
8
test/controllers/dashboard_controller_test.rb
Normal file
8
test/controllers/dashboard_controller_test.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
require "test_helper"
|
||||
|
||||
class DashboardControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get index" do
|
||||
get dashboard_index_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
48
test/controllers/games_controller_test.rb
Normal file
48
test/controllers/games_controller_test.rb
Normal file
@@ -0,0 +1,48 @@
|
||||
require "test_helper"
|
||||
|
||||
class GamesControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get index" do
|
||||
get games_index_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get show" do
|
||||
get games_show_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get games_new_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get games_create_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get games_edit_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get update" do
|
||||
get games_update_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get destroy" do
|
||||
get games_destroy_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get import" do
|
||||
get games_import_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get bulk_create" do
|
||||
get games_bulk_create_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
23
test/controllers/igdb_matches_controller_test.rb
Normal file
23
test/controllers/igdb_matches_controller_test.rb
Normal file
@@ -0,0 +1,23 @@
|
||||
require "test_helper"
|
||||
|
||||
class IgdbMatchesControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get index" do
|
||||
get igdb_matches_index_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get approve" do
|
||||
get igdb_matches_approve_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get reject" do
|
||||
get igdb_matches_reject_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get sync_now" do
|
||||
get igdb_matches_sync_now_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
38
test/controllers/items_controller_test.rb
Normal file
38
test/controllers/items_controller_test.rb
Normal file
@@ -0,0 +1,38 @@
|
||||
require "test_helper"
|
||||
|
||||
class ItemsControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get index" do
|
||||
get items_index_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get show" do
|
||||
get items_show_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get items_new_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get items_create_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get items_edit_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get update" do
|
||||
get items_update_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get destroy" do
|
||||
get items_destroy_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 home" do
|
||||
get pages_home_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
23
test/controllers/password_resets_controller_test.rb
Normal file
23
test/controllers/password_resets_controller_test.rb
Normal file
@@ -0,0 +1,23 @@
|
||||
require "test_helper"
|
||||
|
||||
class PasswordResetsControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get new" do
|
||||
get password_resets_new_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get password_resets_create_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get password_resets_edit_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get update" do
|
||||
get password_resets_update_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
8
test/controllers/profiles_controller_test.rb
Normal file
8
test/controllers/profiles_controller_test.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
require "test_helper"
|
||||
|
||||
class ProfilesControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get show" do
|
||||
get profiles_show_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
18
test/controllers/sessions_controller_test.rb
Normal file
18
test/controllers/sessions_controller_test.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require "test_helper"
|
||||
|
||||
class SessionsControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get new" do
|
||||
get sessions_new_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get sessions_create_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get destroy" do
|
||||
get sessions_destroy_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
23
test/controllers/users_controller_test.rb
Normal file
23
test/controllers/users_controller_test.rb
Normal file
@@ -0,0 +1,23 @@
|
||||
require "test_helper"
|
||||
|
||||
class UsersControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get new" do
|
||||
get users_new_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get users_create_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get users_edit_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get update" do
|
||||
get users_update_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
15
test/fixtures/api_tokens.yml
vendored
Normal file
15
test/fixtures/api_tokens.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
user: one
|
||||
token: MyString
|
||||
name: MyString
|
||||
last_used_at: 2026-03-28 14:34:38
|
||||
expires_at: 2026-03-28 14:34:38
|
||||
|
||||
two:
|
||||
user: two
|
||||
token: MyString
|
||||
name: MyString
|
||||
last_used_at: 2026-03-28 14:34:38
|
||||
expires_at: 2026-03-28 14:34:38
|
||||
11
test/fixtures/collection_games.yml
vendored
Normal file
11
test/fixtures/collection_games.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
collection: one
|
||||
game: one
|
||||
position: 1
|
||||
|
||||
two:
|
||||
collection: two
|
||||
game: two
|
||||
position: 1
|
||||
13
test/fixtures/collections.yml
vendored
Normal file
13
test/fixtures/collections.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
user: one
|
||||
name: MyString
|
||||
description: MyText
|
||||
parent_collection_id: 1
|
||||
|
||||
two:
|
||||
user: two
|
||||
name: MyString
|
||||
description: MyText
|
||||
parent_collection_id: 1
|
||||
0
test/fixtures/files/.keep
vendored
Normal file
0
test/fixtures/files/.keep
vendored
Normal file
9
test/fixtures/game_genres.yml
vendored
Normal file
9
test/fixtures/game_genres.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
game: one
|
||||
genre: one
|
||||
|
||||
two:
|
||||
game: two
|
||||
genre: two
|
||||
33
test/fixtures/games.yml
vendored
Normal file
33
test/fixtures/games.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
user: one
|
||||
platform: one
|
||||
title: MyString
|
||||
format: MyString
|
||||
date_added: 2026-03-28
|
||||
completion_status: MyString
|
||||
user_rating: 1
|
||||
notes: MyText
|
||||
condition: MyString
|
||||
price_paid: 9.99
|
||||
location: MyString
|
||||
digital_store: MyString
|
||||
custom_entry: false
|
||||
igdb_id: 1
|
||||
|
||||
two:
|
||||
user: two
|
||||
platform: two
|
||||
title: MyString
|
||||
format: MyString
|
||||
date_added: 2026-03-28
|
||||
completion_status: MyString
|
||||
user_rating: 1
|
||||
notes: MyText
|
||||
condition: MyString
|
||||
price_paid: 9.99
|
||||
location: MyString
|
||||
digital_store: MyString
|
||||
custom_entry: false
|
||||
igdb_id: 1
|
||||
7
test/fixtures/genres.yml
vendored
Normal file
7
test/fixtures/genres.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
|
||||
25
test/fixtures/items.yml
vendored
Normal file
25
test/fixtures/items.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
user: one
|
||||
name: MyString
|
||||
item_type: MyString
|
||||
platform: one
|
||||
condition: MyString
|
||||
price_paid: 9.99
|
||||
location: MyString
|
||||
date_added: 2026-03-28
|
||||
notes: MyText
|
||||
igdb_id: 1
|
||||
|
||||
two:
|
||||
user: two
|
||||
name: MyString
|
||||
item_type: MyString
|
||||
platform: two
|
||||
condition: MyString
|
||||
price_paid: 9.99
|
||||
location: MyString
|
||||
date_added: 2026-03-28
|
||||
notes: MyText
|
||||
igdb_id: 1
|
||||
11
test/fixtures/platforms.yml
vendored
Normal file
11
test/fixtures/platforms.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
abbreviation: MyString
|
||||
manufacturer: MyString
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
abbreviation: MyString
|
||||
manufacturer: MyString
|
||||
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:
|
||||
email: MyString
|
||||
username: MyString
|
||||
encrypted_password: MyString
|
||||
bio: MyText
|
||||
profile_public: false
|
||||
|
||||
two:
|
||||
email: MyString
|
||||
username: MyString
|
||||
encrypted_password: MyString
|
||||
bio: MyText
|
||||
profile_public: false
|
||||
0
test/helpers/.keep
Normal file
0
test/helpers/.keep
Normal file
0
test/integration/.keep
Normal file
0
test/integration/.keep
Normal file
7
test/jobs/igdb_sync_job_test.rb
Normal file
7
test/jobs/igdb_sync_job_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class IgdbSyncJobTest < ActiveJob::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
0
test/mailers/.keep
Normal file
0
test/mailers/.keep
Normal file
11
test/mailers/password_reset_mailer_test.rb
Normal file
11
test/mailers/password_reset_mailer_test.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
require "test_helper"
|
||||
|
||||
class PasswordResetMailerTest < ActionMailer::TestCase
|
||||
test "reset_password" do
|
||||
mail = PasswordResetMailer.reset_password
|
||||
assert_equal "Reset password", mail.subject
|
||||
assert_equal [ "to@example.org" ], mail.to
|
||||
assert_equal [ "from@example.com" ], mail.from
|
||||
assert_match "Hi", mail.body.encoded
|
||||
end
|
||||
end
|
||||
7
test/mailers/previews/password_reset_mailer_preview.rb
Normal file
7
test/mailers/previews/password_reset_mailer_preview.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# Preview all emails at http://localhost:3000/rails/mailers/password_reset_mailer
|
||||
class PasswordResetMailerPreview < ActionMailer::Preview
|
||||
# Preview this email at http://localhost:3000/rails/mailers/password_reset_mailer/reset_password
|
||||
def reset_password
|
||||
PasswordResetMailer.reset_password
|
||||
end
|
||||
end
|
||||
0
test/models/.keep
Normal file
0
test/models/.keep
Normal file
7
test/models/api_token_test.rb
Normal file
7
test/models/api_token_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class ApiTokenTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/collection_game_test.rb
Normal file
7
test/models/collection_game_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class CollectionGameTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/collection_test.rb
Normal file
7
test/models/collection_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class CollectionTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/game_genre_test.rb
Normal file
7
test/models/game_genre_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class GameGenreTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/game_test.rb
Normal file
7
test/models/game_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class GameTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/genre_test.rb
Normal file
7
test/models/genre_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class GenreTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/item_test.rb
Normal file
7
test/models/item_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class ItemTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/platform_test.rb
Normal file
7
test/models/platform_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class PlatformTest < 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
|
||||
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
|
||||
Reference in New Issue
Block a user