diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb deleted file mode 100644 index cee29fd..0000000 --- a/test/application_system_test_case.rb +++ /dev/null @@ -1,5 +0,0 @@ -require "test_helper" - -class ApplicationSystemTestCase < ActionDispatch::SystemTestCase - driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ] -end diff --git a/test/controllers/.keep b/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/controllers/completions_controller_test.rb b/test/controllers/completions_controller_test.rb deleted file mode 100644 index 91fe52a..0000000 --- a/test/controllers/completions_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class CompletionsControllerTest < ActionDispatch::IntegrationTest - # test "the truth" do - # assert true - # end -end diff --git a/test/controllers/contestants_controller_test.rb b/test/controllers/contestants_controller_test.rb deleted file mode 100644 index c1418d3..0000000 --- a/test/controllers/contestants_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class ContestantsControllerTest < ActionDispatch::IntegrationTest - # test "the truth" do - # assert true - # end -end diff --git a/test/controllers/contests_controller_test.rb b/test/controllers/contests_controller_test.rb deleted file mode 100644 index a5edf2b..0000000 --- a/test/controllers/contests_controller_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require "test_helper" - -class ContestsControllerTest < ActionDispatch::IntegrationTest -end diff --git a/test/controllers/puzzles_controller_test.rb b/test/controllers/puzzles_controller_test.rb deleted file mode 100644 index 1d6b8ea..0000000 --- a/test/controllers/puzzles_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class PuzzlesControllerTest < ActionDispatch::IntegrationTest - # test "the truth" do - # assert true - # end -end diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb deleted file mode 100644 index ef22bbf..0000000 --- a/test/controllers/users_controller_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require "test_helper" - -class UsersControllerTest < ActionDispatch::IntegrationTest -end diff --git a/test/fixtures/completions.yml b/test/fixtures/completions.yml deleted file mode 100644 index 69b4b96..0000000 --- a/test/fixtures/completions.yml +++ /dev/null @@ -1,42 +0,0 @@ -# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -# == Schema Information -# -# Table name: completions -# -# id :integer not null, primary key -# display_relative_time :string -# display_time_from_start :string -# time_seconds :integer -# created_at :datetime not null -# updated_at :datetime not null -# contest_id :integer not null -# contestant_id :integer not null -# message_id :integer -# puzzle_id :integer not null -# -# Indexes -# -# index_completions_on_contest_id (contest_id) -# index_completions_on_contestant_id (contestant_id) -# index_completions_on_message_id (message_id) -# index_completions_on_puzzle_id (puzzle_id) -# -# Foreign Keys -# -# contest_id (contest_id => contests.id) -# contestant_id (contestant_id => contestants.id) -# message_id (message_id => messages.id) -# puzzle_id (puzzle_id => puzzles.id) -# -completion_one: - time_seconds: 1 - contestant: team_one - puzzle: puzzle_one - contest: team_contest - -completion_two: - time_seconds: 2 - contestant: solo_one - puzzle: puzzle_two - contest: solo_contest diff --git a/test/fixtures/contestants.yml b/test/fixtures/contestants.yml deleted file mode 100644 index 47c2a50..0000000 --- a/test/fixtures/contestants.yml +++ /dev/null @@ -1,34 +0,0 @@ -# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -# == Schema Information -# -# Table name: contestants -# -# id :integer not null, primary key -# display_time :string -# email :string -# name :string -# time_seconds :integer -# created_at :datetime not null -# updated_at :datetime not null -# contest_id :integer not null -# -# Indexes -# -# index_contestants_on_contest_id (contest_id) -# -# Foreign Keys -# -# contest_id (contest_id => contests.id) -# -team_one: - name: Team one - contest: team_contest - -team_two: - name: Team two - contest: team_contest - -solo_one: - name: Solo one - contest: solo_contest diff --git a/test/fixtures/contests.yml b/test/fixtures/contests.yml deleted file mode 100644 index bb492e0..0000000 --- a/test/fixtures/contests.yml +++ /dev/null @@ -1,37 +0,0 @@ -# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -# == Schema Information -# -# Table name: contests -# -# id :integer not null, primary key -# allow_registration :boolean default(FALSE) -# lang :string default("en") -# name :string -# slug :string -# team :boolean default(FALSE) -# created_at :datetime not null -# updated_at :datetime not null -# user_id :integer not null -# -# Indexes -# -# index_contests_on_slug (slug) UNIQUE -# index_contests_on_user_id (user_id) -# -# Foreign Keys -# -# user_id (user_id => users.id) -# - -team_contest: - name: Team contest - user: user - slug: team-contest - team: true - -solo_contest: - name: Solo contest - user: user - slug: solo-contest - team: false diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/fixtures/puzzles.yml b/test/fixtures/puzzles.yml deleted file mode 100644 index 289a99e..0000000 --- a/test/fixtures/puzzles.yml +++ /dev/null @@ -1,30 +0,0 @@ -# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -# == Schema Information -# -# Table name: puzzles -# -# id :integer not null, primary key -# brand :string -# name :string -# created_at :datetime not null -# updated_at :datetime not null -# contest_id :integer not null -# -# Indexes -# -# index_puzzles_on_contest_id (contest_id) -# -# Foreign Keys -# -# contest_id (contest_id => contests.id) -# -puzzle_one: - name: Puzzle one - brand: Brand one - contest: team_contest - -puzzle_two: - name: Puzzle two - brand: Brand two - contest: solo_contest diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml deleted file mode 100644 index 369b2d7..0000000 --- a/test/fixtures/users.yml +++ /dev/null @@ -1,31 +0,0 @@ -<% admin_password_digest = BCrypt::Password.create("admin") %> -<% user_password_digest = BCrypt::Password.create("user") %> - -# == Schema Information -# -# Table name: users -# -# id :integer not null, primary key -# admin :boolean default(FALSE), not null -# email_address :string not null -# lang :string default("en") -# password_digest :string not null -# username :string -# created_at :datetime not null -# updated_at :datetime not null -# -# Indexes -# -# index_users_on_email_address (email_address) UNIQUE -# -admin_user: - email_address: admin@admin.org - password_digest: <%= admin_password_digest %> - username: admin - admin: true - -user: - email_address: user@user.org - password_digest: <%= user_password_digest %> - username: user - admin: false diff --git a/test/helpers/.keep b/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/integration/.keep b/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/mailers/.keep b/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/mailers/previews/passwords_mailer_preview.rb b/test/mailers/previews/passwords_mailer_preview.rb deleted file mode 100644 index 01d07ec..0000000 --- a/test/mailers/previews/passwords_mailer_preview.rb +++ /dev/null @@ -1,7 +0,0 @@ -# Preview all emails at http://localhost:3000/rails/mailers/passwords_mailer -class PasswordsMailerPreview < ActionMailer::Preview - # Preview this email at http://localhost:3000/rails/mailers/passwords_mailer/reset - def reset - PasswordsMailer.reset(User.take) - end -end diff --git a/test/models/.keep b/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/models/completion_test.rb b/test/models/completion_test.rb deleted file mode 100644 index 8d48a84..0000000 --- a/test/models/completion_test.rb +++ /dev/null @@ -1,36 +0,0 @@ -# == Schema Information -# -# Table name: completions -# -# id :integer not null, primary key -# display_relative_time :string -# display_time_from_start :string -# time_seconds :integer -# created_at :datetime not null -# updated_at :datetime not null -# contest_id :integer not null -# contestant_id :integer not null -# message_id :integer -# puzzle_id :integer not null -# -# Indexes -# -# index_completions_on_contest_id (contest_id) -# index_completions_on_contestant_id (contestant_id) -# index_completions_on_message_id (message_id) -# index_completions_on_puzzle_id (puzzle_id) -# -# Foreign Keys -# -# contest_id (contest_id => contests.id) -# contestant_id (contestant_id => contestants.id) -# message_id (message_id => messages.id) -# puzzle_id (puzzle_id => puzzles.id) -# -require "test_helper" - -class CompletionTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/contest_test.rb b/test/models/contest_test.rb deleted file mode 100644 index c975a4f..0000000 --- a/test/models/contest_test.rb +++ /dev/null @@ -1,30 +0,0 @@ -# == Schema Information -# -# Table name: contests -# -# id :integer not null, primary key -# allow_registration :boolean default(FALSE) -# lang :string default("en") -# name :string -# slug :string -# team :boolean default(FALSE) -# created_at :datetime not null -# updated_at :datetime not null -# user_id :integer not null -# -# Indexes -# -# index_contests_on_slug (slug) UNIQUE -# index_contests_on_user_id (user_id) -# -# Foreign Keys -# -# user_id (user_id => users.id) -# -require "test_helper" - -class ContestTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/contestant_test.rb b/test/models/contestant_test.rb deleted file mode 100644 index cdc1230..0000000 --- a/test/models/contestant_test.rb +++ /dev/null @@ -1,28 +0,0 @@ -# == Schema Information -# -# Table name: contestants -# -# id :integer not null, primary key -# display_time :string -# email :string -# name :string -# time_seconds :integer -# created_at :datetime not null -# updated_at :datetime not null -# contest_id :integer not null -# -# Indexes -# -# index_contestants_on_contest_id (contest_id) -# -# Foreign Keys -# -# contest_id (contest_id => contests.id) -# -require "test_helper" - -class ContestantTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/puzzle_test.rb b/test/models/puzzle_test.rb deleted file mode 100644 index d2666a8..0000000 --- a/test/models/puzzle_test.rb +++ /dev/null @@ -1,26 +0,0 @@ -# == Schema Information -# -# Table name: puzzles -# -# id :integer not null, primary key -# brand :string -# name :string -# created_at :datetime not null -# updated_at :datetime not null -# contest_id :integer not null -# -# Indexes -# -# index_puzzles_on_contest_id (contest_id) -# -# Foreign Keys -# -# contest_id (contest_id => contests.id) -# -require "test_helper" - -class PuzzleTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/user_test.rb b/test/models/user_test.rb deleted file mode 100644 index aaa8d5c..0000000 --- a/test/models/user_test.rb +++ /dev/null @@ -1,24 +0,0 @@ -# == Schema Information -# -# Table name: users -# -# id :integer not null, primary key -# admin :boolean default(FALSE), not null -# email_address :string not null -# lang :string default("en") -# password_digest :string not null -# username :string -# created_at :datetime not null -# updated_at :datetime not null -# -# Indexes -# -# index_users_on_email_address (email_address) UNIQUE -# -require "test_helper" - -class UserTest < ActiveSupport::TestCase - test "the truth" do - assert true - end -end diff --git a/test/system/.keep b/test/system/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_helper.rb b/test/test_helper.rb deleted file mode 100644 index 0c22470..0000000 --- a/test/test_helper.rb +++ /dev/null @@ -1,15 +0,0 @@ -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