summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/controllers/.keep0
-rw-r--r--test/controllers/alerts_controller_test.rb49
-rw-r--r--test/controllers/games_controller_test.rb49
-rw-r--r--test/controllers/main_controller_test.rb7
-rw-r--r--test/controllers/matches_controller_test.rb49
-rw-r--r--test/controllers/pms_controller_test.rb49
-rw-r--r--test/controllers/search_controller_test.rb7
-rw-r--r--test/controllers/servers_controller_test.rb49
-rw-r--r--test/controllers/sessions_controller_test.rb7
-rw-r--r--test/controllers/static_controller_test.rb7
-rw-r--r--test/controllers/teams_controller_test.rb49
-rw-r--r--test/controllers/tournaments_controller_test.rb49
-rw-r--r--test/controllers/users_controller_test.rb49
-rw-r--r--test/fixtures/.keep0
-rw-r--r--test/fixtures/alerts.yml9
-rw-r--r--test/fixtures/game_attributes.yml11
-rw-r--r--test/fixtures/games.yml15
-rw-r--r--test/fixtures/matches.yml9
-rw-r--r--test/fixtures/pms.yml11
-rw-r--r--test/fixtures/server_settings.yml11
-rw-r--r--test/fixtures/servers.yml11
-rw-r--r--test/fixtures/team_match_pairs.yml9
-rw-r--r--test/fixtures/teams.yml11
-rw-r--r--test/fixtures/tournament_options.yml11
-rw-r--r--test/fixtures/tournaments.yml7
-rw-r--r--test/fixtures/user_team_pairs.yml9
-rw-r--r--test/fixtures/users.yml11
-rw-r--r--test/helpers/.keep0
-rw-r--r--test/helpers/alerts_helper_test.rb4
-rw-r--r--test/helpers/games_helper_test.rb4
-rw-r--r--test/helpers/main_helper_test.rb4
-rw-r--r--test/helpers/matches_helper_test.rb4
-rw-r--r--test/helpers/pms_helper_test.rb4
-rw-r--r--test/helpers/search_helper_test.rb4
-rw-r--r--test/helpers/servers_helper_test.rb4
-rw-r--r--test/helpers/sessions_helper_test.rb4
-rw-r--r--test/helpers/static_helper_test.rb4
-rw-r--r--test/helpers/teams_helper_test.rb4
-rw-r--r--test/helpers/tournaments_helper_test.rb4
-rw-r--r--test/helpers/users_helper_test.rb4
-rw-r--r--test/integration/.keep0
-rw-r--r--test/mailers/.keep0
-rw-r--r--test/models/.keep0
-rw-r--r--test/models/alert_test.rb7
-rw-r--r--test/models/game_attribute_test.rb7
-rw-r--r--test/models/game_test.rb7
-rw-r--r--test/models/match_test.rb7
-rw-r--r--test/models/pm_test.rb7
-rw-r--r--test/models/server_settings_test.rb7
-rw-r--r--test/models/server_test.rb7
-rw-r--r--test/models/team_match_pair_test.rb7
-rw-r--r--test/models/team_test.rb7
-rw-r--r--test/models/tournament_option_test.rb7
-rw-r--r--test/models/tournament_test.rb7
-rw-r--r--test/models/user_team_pair_test.rb7
-rw-r--r--test/models/user_test.rb7
-rw-r--r--test/test_helper.rb15
57 files changed, 709 insertions, 0 deletions
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/alerts_controller_test.rb b/test/controllers/alerts_controller_test.rb
new file mode 100644
index 0000000..4a5d911
--- /dev/null
+++ b/test/controllers/alerts_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class AlertsControllerTest < ActionController::TestCase
+ setup do
+ @alert = alerts(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:alerts)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create alert" do
+ assert_difference('Alert.count') do
+ post :create, alert: { author_id: @alert.author_id, message: @alert.message }
+ end
+
+ assert_redirected_to alert_path(assigns(:alert))
+ end
+
+ test "should show alert" do
+ get :show, id: @alert
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @alert
+ assert_response :success
+ end
+
+ test "should update alert" do
+ patch :update, id: @alert, alert: { author_id: @alert.author_id, message: @alert.message }
+ assert_redirected_to alert_path(assigns(:alert))
+ end
+
+ test "should destroy alert" do
+ assert_difference('Alert.count', -1) do
+ delete :destroy, id: @alert
+ end
+
+ assert_redirected_to alerts_path
+ end
+end
diff --git a/test/controllers/games_controller_test.rb b/test/controllers/games_controller_test.rb
new file mode 100644
index 0000000..95c3145
--- /dev/null
+++ b/test/controllers/games_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class GamesControllerTest < ActionController::TestCase
+ setup do
+ @game = games(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:games)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create game" do
+ assert_difference('Game.count') do
+ post :create, game: { name: @game.name, players_per_team: @game.players_per_team, randomized_teams: @game.randomized_teams, set_rounds: @game.set_rounds, teams_per_match: @game.teams_per_match }
+ end
+
+ assert_redirected_to game_path(assigns(:game))
+ end
+
+ test "should show game" do
+ get :show, id: @game
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @game
+ assert_response :success
+ end
+
+ test "should update game" do
+ patch :update, id: @game, game: { name: @game.name, players_per_team: @game.players_per_team, randomized_teams: @game.randomized_teams, set_rounds: @game.set_rounds, teams_per_match: @game.teams_per_match }
+ assert_redirected_to game_path(assigns(:game))
+ end
+
+ test "should destroy game" do
+ assert_difference('Game.count', -1) do
+ delete :destroy, id: @game
+ end
+
+ assert_redirected_to games_path
+ end
+end
diff --git a/test/controllers/main_controller_test.rb b/test/controllers/main_controller_test.rb
new file mode 100644
index 0000000..b7ec6bf
--- /dev/null
+++ b/test/controllers/main_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class MainControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/controllers/matches_controller_test.rb b/test/controllers/matches_controller_test.rb
new file mode 100644
index 0000000..50675d8
--- /dev/null
+++ b/test/controllers/matches_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class MatchesControllerTest < ActionController::TestCase
+ setup do
+ @match = matches(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:matches)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create match" do
+ assert_difference('Match.count') do
+ post :create, match: { name: @match.name, tournament_id: @match.tournament_id }
+ end
+
+ assert_redirected_to match_path(assigns(:match))
+ end
+
+ test "should show match" do
+ get :show, id: @match
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @match
+ assert_response :success
+ end
+
+ test "should update match" do
+ patch :update, id: @match, match: { name: @match.name, tournament_id: @match.tournament_id }
+ assert_redirected_to match_path(assigns(:match))
+ end
+
+ test "should destroy match" do
+ assert_difference('Match.count', -1) do
+ delete :destroy, id: @match
+ end
+
+ assert_redirected_to matches_path
+ end
+end
diff --git a/test/controllers/pms_controller_test.rb b/test/controllers/pms_controller_test.rb
new file mode 100644
index 0000000..18b2449
--- /dev/null
+++ b/test/controllers/pms_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class PmsControllerTest < ActionController::TestCase
+ setup do
+ @pm = pms(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:pms)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create pm" do
+ assert_difference('Pm.count') do
+ post :create, pm: { author_id: @pm.author_id, message: @pm.message, recipient_id: @pm.recipient_id }
+ end
+
+ assert_redirected_to pm_path(assigns(:pm))
+ end
+
+ test "should show pm" do
+ get :show, id: @pm
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @pm
+ assert_response :success
+ end
+
+ test "should update pm" do
+ patch :update, id: @pm, pm: { author_id: @pm.author_id, message: @pm.message, recipient_id: @pm.recipient_id }
+ assert_redirected_to pm_path(assigns(:pm))
+ end
+
+ test "should destroy pm" do
+ assert_difference('Pm.count', -1) do
+ delete :destroy, id: @pm
+ end
+
+ assert_redirected_to pms_path
+ end
+end
diff --git a/test/controllers/search_controller_test.rb b/test/controllers/search_controller_test.rb
new file mode 100644
index 0000000..bfbf22d
--- /dev/null
+++ b/test/controllers/search_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class SearchControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/controllers/servers_controller_test.rb b/test/controllers/servers_controller_test.rb
new file mode 100644
index 0000000..5891bb0
--- /dev/null
+++ b/test/controllers/servers_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class ServersControllerTest < ActionController::TestCase
+ setup do
+ @server = servers(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:servers)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create server" do
+ assert_difference('Server.count') do
+ post :create, server: { }
+ end
+
+ assert_redirected_to server_path(assigns(:server))
+ end
+
+ test "should show server" do
+ get :show, id: @server
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @server
+ assert_response :success
+ end
+
+ test "should update server" do
+ patch :update, id: @server, server: { }
+ assert_redirected_to server_path(assigns(:server))
+ end
+
+ test "should destroy server" do
+ assert_difference('Server.count', -1) do
+ delete :destroy, id: @server
+ end
+
+ assert_redirected_to servers_path
+ end
+end
diff --git a/test/controllers/sessions_controller_test.rb b/test/controllers/sessions_controller_test.rb
new file mode 100644
index 0000000..d30ebc3
--- /dev/null
+++ b/test/controllers/sessions_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class SessionsControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/controllers/static_controller_test.rb b/test/controllers/static_controller_test.rb
new file mode 100644
index 0000000..e62ae2a
--- /dev/null
+++ b/test/controllers/static_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class StaticControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/controllers/teams_controller_test.rb b/test/controllers/teams_controller_test.rb
new file mode 100644
index 0000000..8bf60be
--- /dev/null
+++ b/test/controllers/teams_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class TeamsControllerTest < ActionController::TestCase
+ setup do
+ @team = teams(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:teams)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create team" do
+ assert_difference('Team.count') do
+ post :create, team: { }
+ end
+
+ assert_redirected_to team_path(assigns(:team))
+ end
+
+ test "should show team" do
+ get :show, id: @team
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @team
+ assert_response :success
+ end
+
+ test "should update team" do
+ patch :update, id: @team, team: { }
+ assert_redirected_to team_path(assigns(:team))
+ end
+
+ test "should destroy team" do
+ assert_difference('Team.count', -1) do
+ delete :destroy, id: @team
+ end
+
+ assert_redirected_to teams_path
+ end
+end
diff --git a/test/controllers/tournaments_controller_test.rb b/test/controllers/tournaments_controller_test.rb
new file mode 100644
index 0000000..bdbbfac
--- /dev/null
+++ b/test/controllers/tournaments_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class TournamentsControllerTest < ActionController::TestCase
+ setup do
+ @tournament = tournaments(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:tournaments)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create tournament" do
+ assert_difference('Tournament.count') do
+ post :create, tournament: { game_id: @tournament.game_id }
+ end
+
+ assert_redirected_to tournament_path(assigns(:tournament))
+ end
+
+ test "should show tournament" do
+ get :show, id: @tournament
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @tournament
+ assert_response :success
+ end
+
+ test "should update tournament" do
+ patch :update, id: @tournament, tournament: { game_id: @tournament.game_id }
+ assert_redirected_to tournament_path(assigns(:tournament))
+ end
+
+ test "should destroy tournament" do
+ assert_difference('Tournament.count', -1) do
+ delete :destroy, id: @tournament
+ end
+
+ assert_redirected_to tournaments_path
+ end
+end
diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb
new file mode 100644
index 0000000..79a5700
--- /dev/null
+++ b/test/controllers/users_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class UsersControllerTest < ActionController::TestCase
+ setup do
+ @user = users(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:users)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create user" do
+ assert_difference('User.count') do
+ post :create, user: { email: @user.email, name: @user.name, user_name: @user.user_name }
+ end
+
+ assert_redirected_to user_path(assigns(:user))
+ end
+
+ test "should show user" do
+ get :show, id: @user
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @user
+ assert_response :success
+ end
+
+ test "should update user" do
+ patch :update, id: @user, user: { email: @user.email, name: @user.name, user_name: @user.user_name }
+ assert_redirected_to user_path(assigns(:user))
+ end
+
+ test "should destroy user" do
+ assert_difference('User.count', -1) do
+ delete :destroy, id: @user
+ end
+
+ assert_redirected_to users_path
+ end
+end
diff --git a/test/fixtures/.keep b/test/fixtures/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/fixtures/.keep
diff --git a/test/fixtures/alerts.yml b/test/fixtures/alerts.yml
new file mode 100644
index 0000000..52959af
--- /dev/null
+++ b/test/fixtures/alerts.yml
@@ -0,0 +1,9 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ author_id:
+ message: MyText
+
+two:
+ author_id:
+ message: MyText
diff --git a/test/fixtures/game_attributes.yml b/test/fixtures/game_attributes.yml
new file mode 100644
index 0000000..eff7212
--- /dev/null
+++ b/test/fixtures/game_attributes.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ game_id:
+ key: MyText
+ type: 1
+
+two:
+ game_id:
+ key: MyText
+ type: 1
diff --git a/test/fixtures/games.yml b/test/fixtures/games.yml
new file mode 100644
index 0000000..3068527
--- /dev/null
+++ b/test/fixtures/games.yml
@@ -0,0 +1,15 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ name: MyText
+ players_per_team: 1
+ teams_per_match: 1
+ set_rounds: 1
+ randomized_teams: 1
+
+two:
+ name: MyText
+ players_per_team: 1
+ teams_per_match: 1
+ set_rounds: 1
+ randomized_teams: 1
diff --git a/test/fixtures/matches.yml b/test/fixtures/matches.yml
new file mode 100644
index 0000000..089fc65
--- /dev/null
+++ b/test/fixtures/matches.yml
@@ -0,0 +1,9 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ tournament_id:
+ name: MyString
+
+two:
+ tournament_id:
+ name: MyString
diff --git a/test/fixtures/pms.yml b/test/fixtures/pms.yml
new file mode 100644
index 0000000..f77e727
--- /dev/null
+++ b/test/fixtures/pms.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ author_id:
+ recipient_id:
+ message: MyText
+
+two:
+ author_id:
+ recipient_id:
+ message: MyText
diff --git a/test/fixtures/server_settings.yml b/test/fixtures/server_settings.yml
new file mode 100644
index 0000000..937a0c0
--- /dev/null
+++ b/test/fixtures/server_settings.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://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/servers.yml b/test/fixtures/servers.yml
new file mode 100644
index 0000000..937a0c0
--- /dev/null
+++ b/test/fixtures/servers.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://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/team_match_pairs.yml b/test/fixtures/team_match_pairs.yml
new file mode 100644
index 0000000..5f9cf2f
--- /dev/null
+++ b/test/fixtures/team_match_pairs.yml
@@ -0,0 +1,9 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ team_id:
+ match_id:
+
+two:
+ team_id:
+ match_id:
diff --git a/test/fixtures/teams.yml b/test/fixtures/teams.yml
new file mode 100644
index 0000000..937a0c0
--- /dev/null
+++ b/test/fixtures/teams.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://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/tournament_options.yml b/test/fixtures/tournament_options.yml
new file mode 100644
index 0000000..937a0c0
--- /dev/null
+++ b/test/fixtures/tournament_options.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://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/tournaments.yml b/test/fixtures/tournaments.yml
new file mode 100644
index 0000000..4cba7ca
--- /dev/null
+++ b/test/fixtures/tournaments.yml
@@ -0,0 +1,7 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ game_id:
+
+two:
+ game_id:
diff --git a/test/fixtures/user_team_pairs.yml b/test/fixtures/user_team_pairs.yml
new file mode 100644
index 0000000..a76036f
--- /dev/null
+++ b/test/fixtures/user_team_pairs.yml
@@ -0,0 +1,9 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ user_id:
+ team_id:
+
+two:
+ user_id:
+ team_id:
diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml
new file mode 100644
index 0000000..ea3e874
--- /dev/null
+++ b/test/fixtures/users.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ name: MyString
+ email: MyString
+ user_name: MyString
+
+two:
+ name: MyString
+ email: MyString
+ user_name: MyString
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/helpers/alerts_helper_test.rb b/test/helpers/alerts_helper_test.rb
new file mode 100644
index 0000000..1d9079d
--- /dev/null
+++ b/test/helpers/alerts_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class AlertsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/games_helper_test.rb b/test/helpers/games_helper_test.rb
new file mode 100644
index 0000000..449a85c
--- /dev/null
+++ b/test/helpers/games_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class GamesHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/main_helper_test.rb b/test/helpers/main_helper_test.rb
new file mode 100644
index 0000000..22da3c4
--- /dev/null
+++ b/test/helpers/main_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class MainHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/matches_helper_test.rb b/test/helpers/matches_helper_test.rb
new file mode 100644
index 0000000..4cc472f
--- /dev/null
+++ b/test/helpers/matches_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class MatchesHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/pms_helper_test.rb b/test/helpers/pms_helper_test.rb
new file mode 100644
index 0000000..af80f10
--- /dev/null
+++ b/test/helpers/pms_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class PmsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/search_helper_test.rb b/test/helpers/search_helper_test.rb
new file mode 100644
index 0000000..3034163
--- /dev/null
+++ b/test/helpers/search_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class SearchHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/servers_helper_test.rb b/test/helpers/servers_helper_test.rb
new file mode 100644
index 0000000..8fddf34
--- /dev/null
+++ b/test/helpers/servers_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class ServersHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/sessions_helper_test.rb b/test/helpers/sessions_helper_test.rb
new file mode 100644
index 0000000..7d44e09
--- /dev/null
+++ b/test/helpers/sessions_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class SessionsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/static_helper_test.rb b/test/helpers/static_helper_test.rb
new file mode 100644
index 0000000..3b96f2b
--- /dev/null
+++ b/test/helpers/static_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class StaticHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/teams_helper_test.rb b/test/helpers/teams_helper_test.rb
new file mode 100644
index 0000000..b736483
--- /dev/null
+++ b/test/helpers/teams_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class TeamsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/tournaments_helper_test.rb b/test/helpers/tournaments_helper_test.rb
new file mode 100644
index 0000000..1cf5269
--- /dev/null
+++ b/test/helpers/tournaments_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class TournamentsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/users_helper_test.rb b/test/helpers/users_helper_test.rb
new file mode 100644
index 0000000..96af37a
--- /dev/null
+++ b/test/helpers/users_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class UsersHelperTest < ActionView::TestCase
+end
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/alert_test.rb b/test/models/alert_test.rb
new file mode 100644
index 0000000..b59c65e
--- /dev/null
+++ b/test/models/alert_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class AlertTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/game_attribute_test.rb b/test/models/game_attribute_test.rb
new file mode 100644
index 0000000..13c6e65
--- /dev/null
+++ b/test/models/game_attribute_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class GameAttributeTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/game_test.rb b/test/models/game_test.rb
new file mode 100644
index 0000000..2cab36e
--- /dev/null
+++ b/test/models/game_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class GameTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/match_test.rb b/test/models/match_test.rb
new file mode 100644
index 0000000..14436b1
--- /dev/null
+++ b/test/models/match_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class MatchTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/pm_test.rb b/test/models/pm_test.rb
new file mode 100644
index 0000000..e7f6b8f
--- /dev/null
+++ b/test/models/pm_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class PmTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/server_settings_test.rb b/test/models/server_settings_test.rb
new file mode 100644
index 0000000..470b316
--- /dev/null
+++ b/test/models/server_settings_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class ServerSettingsTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/server_test.rb b/test/models/server_test.rb
new file mode 100644
index 0000000..125ffc9
--- /dev/null
+++ b/test/models/server_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class ServerTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/team_match_pair_test.rb b/test/models/team_match_pair_test.rb
new file mode 100644
index 0000000..c250b3c
--- /dev/null
+++ b/test/models/team_match_pair_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TeamMatchPairTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/team_test.rb b/test/models/team_test.rb
new file mode 100644
index 0000000..8b101cb
--- /dev/null
+++ b/test/models/team_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TeamTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/tournament_option_test.rb b/test/models/tournament_option_test.rb
new file mode 100644
index 0000000..8fa9628
--- /dev/null
+++ b/test/models/tournament_option_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TournamentOptionTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/tournament_test.rb b/test/models/tournament_test.rb
new file mode 100644
index 0000000..24a7e5f
--- /dev/null
+++ b/test/models/tournament_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TournamentTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/user_team_pair_test.rb b/test/models/user_team_pair_test.rb
new file mode 100644
index 0000000..55f5c58
--- /dev/null
+++ b/test/models/user_team_pair_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class UserTeamPairTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/user_test.rb b/test/models/user_test.rb
new file mode 100644
index 0000000..82f61e0
--- /dev/null
+++ b/test/models/user_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class UserTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/test_helper.rb b/test/test_helper.rb
new file mode 100644
index 0000000..bc7e05d
--- /dev/null
+++ b/test/test_helper.rb
@@ -0,0 +1,15 @@
+ENV["RAILS_ENV"] ||= "test"
+require File.expand_path('../../config/environment', __FILE__)
+require 'rails/test_help'
+
+class ActiveSupport::TestCase
+ ActiveRecord::Migration.check_pending!
+
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
+ #
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
+ # -- they do not yet inherit this setting
+ fixtures :all
+
+ # Add more helper methods to be used by all tests here...
+end