summaryrefslogtreecommitdiff
path: root/test/controllers
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-01 20:24:43 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-01 20:24:43 -0500
commit11be92e4bac671852fd03922049ca592ae4c9f4e (patch)
treea70875391bbf07448f816800afd6296679fc4c06 /test/controllers
parent2eb242f3e5b1f1ab66d84556cabcad965fe387aa (diff)
changed the gemfile to include rspecy testing and a security name i cant remember the name of
Diffstat (limited to 'test/controllers')
-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/teams_controller_test.rb49
-rw-r--r--test/controllers/tournaments_controller_test.rb49
-rw-r--r--test/controllers/users_controller_test.rb7
10 files changed, 0 insertions, 364 deletions
diff --git a/test/controllers/alerts_controller_test.rb b/test/controllers/alerts_controller_test.rb
deleted file mode 100644
index 4a5d911..0000000
--- a/test/controllers/alerts_controller_test.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-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
deleted file mode 100644
index 95c3145..0000000
--- a/test/controllers/games_controller_test.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-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
deleted file mode 100644
index b7ec6bf..0000000
--- a/test/controllers/main_controller_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-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
deleted file mode 100644
index 75c9dcf..0000000
--- a/test/controllers/matches_controller_test.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-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: { 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: { 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
deleted file mode 100644
index 18b2449..0000000
--- a/test/controllers/pms_controller_test.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-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
deleted file mode 100644
index bfbf22d..0000000
--- a/test/controllers/search_controller_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-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
deleted file mode 100644
index 5891bb0..0000000
--- a/test/controllers/servers_controller_test.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-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/teams_controller_test.rb b/test/controllers/teams_controller_test.rb
deleted file mode 100644
index 8bf60be..0000000
--- a/test/controllers/teams_controller_test.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-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
deleted file mode 100644
index bdbbfac..0000000
--- a/test/controllers/tournaments_controller_test.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-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
deleted file mode 100644
index d23f182..0000000
--- a/test/controllers/users_controller_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class UsersControllerTest < ActionController::TestCase
- # test "the truth" do
- # assert true
- # end
-end