From 332ec93366315fa1ed7b4acd7a3407c96e8ddfa7 Mon Sep 17 00:00:00 2001 From: sadbeast Date: Wed, 31 Jan 2024 17:47:56 -0800 Subject: initial mistake --- test/application_system_test_case.rb | 5 +++++ test/channels/application_cable/connection_test.rb | 13 +++++++++++++ test/controllers/.keep | 0 test/controllers/leagues_controller_test.rb | 7 +++++++ test/fixtures/accounts.yml | 10 ++++++++++ test/fixtures/files/.keep | 0 test/fixtures/league_pick_scores.yml | 11 +++++++++++ test/fixtures/leagues.yml | 11 +++++++++++ test/fixtures/player_scores.yml | 11 +++++++++++ test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/models/league_pick_score_test.rb | 7 +++++++ test/models/league_test.rb | 7 +++++++ test/models/player_score_test.rb | 7 +++++++ test/system/.keep | 0 test/test_helper.rb | 15 +++++++++++++++ 18 files changed, 104 insertions(+) create mode 100644 test/application_system_test_case.rb create mode 100644 test/channels/application_cable/connection_test.rb create mode 100644 test/controllers/.keep create mode 100644 test/controllers/leagues_controller_test.rb create mode 100644 test/fixtures/accounts.yml create mode 100644 test/fixtures/files/.keep create mode 100644 test/fixtures/league_pick_scores.yml create mode 100644 test/fixtures/leagues.yml create mode 100644 test/fixtures/player_scores.yml create mode 100644 test/helpers/.keep create mode 100644 test/integration/.keep create mode 100644 test/mailers/.keep create mode 100644 test/models/.keep create mode 100644 test/models/league_pick_score_test.rb create mode 100644 test/models/league_test.rb create mode 100644 test/models/player_score_test.rb create mode 100644 test/system/.keep create mode 100644 test/test_helper.rb (limited to 'test') diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb new file mode 100644 index 0000000..d19212a --- /dev/null +++ b/test/application_system_test_case.rb @@ -0,0 +1,5 @@ +require "test_helper" + +class ApplicationSystemTestCase < ActionDispatch::SystemTestCase + driven_by :selenium, using: :chrome, screen_size: [1400, 1400] +end diff --git a/test/channels/application_cable/connection_test.rb b/test/channels/application_cable/connection_test.rb new file mode 100644 index 0000000..6340bf9 --- /dev/null +++ b/test/channels/application_cable/connection_test.rb @@ -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 diff --git a/test/controllers/.keep b/test/controllers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/controllers/leagues_controller_test.rb b/test/controllers/leagues_controller_test.rb new file mode 100644 index 0000000..c7b24af --- /dev/null +++ b/test/controllers/leagues_controller_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class LeaguesControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/fixtures/accounts.yml b/test/fixtures/accounts.yml new file mode 100644 index 0000000..ea6f893 --- /dev/null +++ b/test/fixtures/accounts.yml @@ -0,0 +1,10 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +one: + email: freddie@queen.com + password_hash: <%= RodauthMain.allocate.password_hash("password") %> + status: verified + +two: + email: brian@queen.com + password_hash: <%= RodauthMain.allocate.password_hash("password") %> + status: verified diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/league_pick_scores.yml b/test/fixtures/league_pick_scores.yml new file mode 100644 index 0000000..d7a3329 --- /dev/null +++ b/test/fixtures/league_pick_scores.yml @@ -0,0 +1,11 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the "{}" from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/fixtures/leagues.yml b/test/fixtures/leagues.yml new file mode 100644 index 0000000..d7a3329 --- /dev/null +++ b/test/fixtures/leagues.yml @@ -0,0 +1,11 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the "{}" from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/fixtures/player_scores.yml b/test/fixtures/player_scores.yml new file mode 100644 index 0000000..d7a3329 --- /dev/null +++ b/test/fixtures/player_scores.yml @@ -0,0 +1,11 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the "{}" from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/models/league_pick_score_test.rb b/test/models/league_pick_score_test.rb new file mode 100644 index 0000000..73a9c8f --- /dev/null +++ b/test/models/league_pick_score_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class LeaguePickScoreTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/league_test.rb b/test/models/league_test.rb new file mode 100644 index 0000000..d3ae350 --- /dev/null +++ b/test/models/league_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class LeagueTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/player_score_test.rb b/test/models/player_score_test.rb new file mode 100644 index 0000000..3aaf475 --- /dev/null +++ b/test/models/player_score_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class PlayerScoreTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/system/.keep b/test/system/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 0000000..0c22470 --- /dev/null +++ b/test/test_helper.rb @@ -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 -- cgit v1.2.3