aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorsadbeast <sadbeast@sadbeast.com>2024-01-31 17:47:56 -0800
committersadbeast <sadbeast@sadbeast.com>2024-01-31 17:47:56 -0800
commit332ec93366315fa1ed7b4acd7a3407c96e8ddfa7 (patch)
tree6ae553317f12a7a6a29c849c8805ffab96436dc2 /test
downloadtd-332ec93366315fa1ed7b4acd7a3407c96e8ddfa7.tar.gz
td-332ec93366315fa1ed7b4acd7a3407c96e8ddfa7.tar.bz2
initial mistakeHEADmain
Diffstat (limited to 'test')
-rw-r--r--test/application_system_test_case.rb5
-rw-r--r--test/channels/application_cable/connection_test.rb13
-rw-r--r--test/controllers/.keep0
-rw-r--r--test/controllers/leagues_controller_test.rb7
-rw-r--r--test/fixtures/accounts.yml10
-rw-r--r--test/fixtures/files/.keep0
-rw-r--r--test/fixtures/league_pick_scores.yml11
-rw-r--r--test/fixtures/leagues.yml11
-rw-r--r--test/fixtures/player_scores.yml11
-rw-r--r--test/helpers/.keep0
-rw-r--r--test/integration/.keep0
-rw-r--r--test/mailers/.keep0
-rw-r--r--test/models/.keep0
-rw-r--r--test/models/league_pick_score_test.rb7
-rw-r--r--test/models/league_test.rb7
-rw-r--r--test/models/player_score_test.rb7
-rw-r--r--test/system/.keep0
-rw-r--r--test/test_helper.rb15
18 files changed, 104 insertions, 0 deletions
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
--- /dev/null
+++ b/test/controllers/.keep
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
--- /dev/null
+++ b/test/fixtures/files/.keep
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
--- /dev/null
+++ b/test/helpers/.keep
diff --git a/test/integration/.keep b/test/integration/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/integration/.keep
diff --git a/test/mailers/.keep b/test/mailers/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/mailers/.keep
diff --git a/test/models/.keep b/test/models/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/models/.keep
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
--- /dev/null
+++ b/test/system/.keep
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