init
This commit is contained in:
		
							
								
								
									
										5
									
								
								test/application_system_test_case.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								test/application_system_test_case.rb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| require "test_helper" | ||||
|  | ||||
| class ApplicationSystemTestCase < ActionDispatch::SystemTestCase | ||||
|   driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ] | ||||
| end | ||||
							
								
								
									
										0
									
								
								test/controllers/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								test/controllers/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										8
									
								
								test/controllers/game_controller_test.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								test/controllers/game_controller_test.rb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| require "test_helper" | ||||
|  | ||||
| class GameControllerTest < ActionDispatch::IntegrationTest | ||||
|   test "should get index" do | ||||
|     get game_index_url | ||||
|     assert_response :success | ||||
|   end | ||||
| end | ||||
							
								
								
									
										8
									
								
								test/controllers/leaderboard_controller_test.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								test/controllers/leaderboard_controller_test.rb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| require "test_helper" | ||||
|  | ||||
| class LeaderboardControllerTest < ActionDispatch::IntegrationTest | ||||
|   test "should get index" do | ||||
|     get leaderboard_index_url | ||||
|     assert_response :success | ||||
|   end | ||||
| end | ||||
							
								
								
									
										8
									
								
								test/controllers/player_controller_test.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								test/controllers/player_controller_test.rb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| require "test_helper" | ||||
|  | ||||
| class PlayerControllerTest < ActionDispatch::IntegrationTest | ||||
|   test "should get show" do | ||||
|     get player_show_url | ||||
|     assert_response :success | ||||
|   end | ||||
| end | ||||
							
								
								
									
										0
									
								
								test/fixtures/files/.keep
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								test/fixtures/files/.keep
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
								
								
									
										21
									
								
								test/fixtures/games.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								test/fixtures/games.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||||
|  | ||||
| one: | ||||
|   timestamp: 2025-01-23 12:06:08 | ||||
|   gametype: 1 | ||||
|   wager: 1 | ||||
|   winner: MyString | ||||
|   loser: MyString | ||||
|   high_roll: 1 | ||||
|   low_roll: 1 | ||||
|   payout: 1 | ||||
|  | ||||
| two: | ||||
|   timestamp: 2025-01-23 12:06:08 | ||||
|   gametype: 1 | ||||
|   wager: 1 | ||||
|   winner: MyString | ||||
|   loser: MyString | ||||
|   high_roll: 1 | ||||
|   low_roll: 1 | ||||
|   payout: 1 | ||||
							
								
								
									
										13
									
								
								test/fixtures/players.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								test/fixtures/players.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||||
|  | ||||
| one: | ||||
|   name: MyString | ||||
|   wins: 1 | ||||
|   losses: 1 | ||||
|   purse: 1 | ||||
|  | ||||
| two: | ||||
|   name: MyString | ||||
|   wins: 1 | ||||
|   losses: 1 | ||||
|   purse: 1 | ||||
							
								
								
									
										0
									
								
								test/helpers/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								test/helpers/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								test/integration/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								test/integration/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								test/mailers/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								test/mailers/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								test/models/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								test/models/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										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/player_test.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								test/models/player_test.rb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| require "test_helper" | ||||
|  | ||||
| class PlayerTest < ActiveSupport::TestCase | ||||
|   # test "the truth" do | ||||
|   #   assert true | ||||
|   # end | ||||
| end | ||||
							
								
								
									
										0
									
								
								test/system/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								test/system/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										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