initial commit
This commit is contained in:
7
test/application_system_test_case.rb
Normal file
7
test/application_system_test_case.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
|
||||
end
|
||||
15
test/channels/application_cable/connection_test.rb
Normal file
15
test/channels/application_cable/connection_test.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
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
|
||||
0
test/controllers/.keep
Normal file
0
test/controllers/.keep
Normal file
25
test/controllers/event_controller_test.rb
Normal file
25
test/controllers/event_controller_test.rb
Normal file
@@ -0,0 +1,25 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class EventControllerTest < ActionDispatch::IntegrationTest
|
||||
test 'should get show' do
|
||||
get event_show_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test 'should get list' do
|
||||
get event_list_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test 'should get lineup' do
|
||||
get event_lineup_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test 'should get lineup_card' do
|
||||
get event_lineup_card_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
15
test/controllers/opponent_controller_test.rb
Normal file
15
test/controllers/opponent_controller_test.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class OpponentControllerTest < ActionDispatch::IntegrationTest
|
||||
test 'should get show' do
|
||||
get opponent_show_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test 'should get list' do
|
||||
get opponent_list_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
10
test/controllers/sessions_controller_test.rb
Normal file
10
test/controllers/sessions_controller_test.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class SessionsControllerTest < ActionDispatch::IntegrationTest
|
||||
test 'should get new' do
|
||||
get sessions_new_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
15
test/controllers/team_controller_test.rb
Normal file
15
test/controllers/team_controller_test.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class TeamControllerTest < ActionDispatch::IntegrationTest
|
||||
test 'should get show' do
|
||||
get team_show_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test 'should get list' do
|
||||
get team_list_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
0
test/fixtures/files/.keep
vendored
Normal file
0
test/fixtures/files/.keep
vendored
Normal file
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
0
test/system/.keep
Normal file
0
test/system/.keep
Normal file
17
test/test_helper.rb
Normal file
17
test/test_helper.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
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