From 819a3edae405227f11283ad494a7f4ca9c771467 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 21 Aug 2021 19:30:19 -0400 Subject: init --- test/application_system_test_case.rb | 5 +++++ test/channels/application_cable/connection_test.rb | 11 +++++++++++ test/controllers/.keep | 0 test/controllers/machines_controller_test.rb | 7 +++++++ test/controllers/players_controller_test.rb | 7 +++++++ test/fixtures/.keep | 0 test/fixtures/files/.keep | 0 test/fixtures/machines.yml | 9 +++++++++ test/fixtures/players.yml | 11 +++++++++++ test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/models/machine_test.rb | 7 +++++++ test/models/player_test.rb | 7 +++++++ test/system/.keep | 0 test/test_helper.rb | 13 +++++++++++++ 17 files changed, 77 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/machines_controller_test.rb create mode 100644 test/controllers/players_controller_test.rb create mode 100644 test/fixtures/.keep create mode 100644 test/fixtures/files/.keep create mode 100644 test/fixtures/machines.yml create mode 100644 test/fixtures/players.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/machine_test.rb create mode 100644 test/models/player_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..800405f --- /dev/null +++ b/test/channels/application_cable/connection_test.rb @@ -0,0 +1,11 @@ +require "test_helper" + +class ApplicationCable::ConnectionTest < ActionCable::Connection::TestCase + # test "connects with cookies" do + # cookies.signed[:user_id] = 42 + # + # connect + # + # assert_equal connection.user_id, "42" + # end +end diff --git a/test/controllers/.keep b/test/controllers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/controllers/machines_controller_test.rb b/test/controllers/machines_controller_test.rb new file mode 100644 index 0000000..5491d3a --- /dev/null +++ b/test/controllers/machines_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class MachinesControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/players_controller_test.rb b/test/controllers/players_controller_test.rb new file mode 100644 index 0000000..3aba774 --- /dev/null +++ b/test/controllers/players_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class PlayersControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/machines.yml b/test/fixtures/machines.yml new file mode 100644 index 0000000..71f327c --- /dev/null +++ b/test/fixtures/machines.yml @@ -0,0 +1,9 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + edition: MyString + +two: + name: MyString + edition: MyString diff --git a/test/fixtures/players.yml b/test/fixtures/players.yml new file mode 100644 index 0000000..85cbf01 --- /dev/null +++ b/test/fixtures/players.yml @@ -0,0 +1,11 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + strikes: + paid: + +two: + name: MyString + strikes: + paid: 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/machine_test.rb b/test/models/machine_test.rb new file mode 100644 index 0000000..c344206 --- /dev/null +++ b/test/models/machine_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class MachineTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/player_test.rb b/test/models/player_test.rb new file mode 100644 index 0000000..3cf71d7 --- /dev/null +++ b/test/models/player_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class PlayerTest < 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..d5300f8 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,13 @@ +ENV['RAILS_ENV'] ||= 'test' +require_relative '../config/environment' +require 'rails/test_help' + +class ActiveSupport::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 -- cgit 1.4.1