diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-03-01 20:24:43 -0500 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-03-01 20:24:43 -0500 |
commit | 11be92e4bac671852fd03922049ca592ae4c9f4e (patch) | |
tree | a70875391bbf07448f816800afd6296679fc4c06 /test | |
parent | 2eb242f3e5b1f1ab66d84556cabcad965fe387aa (diff) |
changed the gemfile to include rspecy testing and a security name i cant remember the name of
Diffstat (limited to 'test')
46 files changed, 0 insertions, 628 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 diff --git a/test/fixtures/alerts.yml b/test/fixtures/alerts.yml deleted file mode 100644 index 52959af..0000000 --- a/test/fixtures/alerts.yml +++ /dev/null @@ -1,9 +0,0 @@ -# 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 deleted file mode 100644 index eff7212..0000000 --- a/test/fixtures/game_attributes.yml +++ /dev/null @@ -1,11 +0,0 @@ -# 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 deleted file mode 100644 index 3068527..0000000 --- a/test/fixtures/games.yml +++ /dev/null @@ -1,15 +0,0 @@ -# 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 deleted file mode 100644 index 0356cee..0000000 --- a/test/fixtures/matches.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - tournament_id: - -two: - tournament_id: diff --git a/test/fixtures/pms.yml b/test/fixtures/pms.yml deleted file mode 100644 index f77e727..0000000 --- a/test/fixtures/pms.yml +++ /dev/null @@ -1,11 +0,0 @@ -# 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 deleted file mode 100644 index 937a0c0..0000000 --- a/test/fixtures/server_settings.yml +++ /dev/null @@ -1,11 +0,0 @@ -# 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 deleted file mode 100644 index 937a0c0..0000000 --- a/test/fixtures/servers.yml +++ /dev/null @@ -1,11 +0,0 @@ -# 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 deleted file mode 100644 index 5f9cf2f..0000000 --- a/test/fixtures/team_match_pairs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# 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 deleted file mode 100644 index 937a0c0..0000000 --- a/test/fixtures/teams.yml +++ /dev/null @@ -1,11 +0,0 @@ -# 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 deleted file mode 100644 index 937a0c0..0000000 --- a/test/fixtures/tournament_options.yml +++ /dev/null @@ -1,11 +0,0 @@ -# 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 deleted file mode 100644 index 4cba7ca..0000000 --- a/test/fixtures/tournaments.yml +++ /dev/null @@ -1,7 +0,0 @@ -# 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 deleted file mode 100644 index a76036f..0000000 --- a/test/fixtures/user_team_pairs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# 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 deleted file mode 100644 index ea3e874..0000000 --- a/test/fixtures/users.yml +++ /dev/null @@ -1,11 +0,0 @@ -# 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/alerts_helper_test.rb b/test/helpers/alerts_helper_test.rb deleted file mode 100644 index 1d9079d..0000000 --- a/test/helpers/alerts_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class AlertsHelperTest < ActionView::TestCase -end diff --git a/test/helpers/games_helper_test.rb b/test/helpers/games_helper_test.rb deleted file mode 100644 index 449a85c..0000000 --- a/test/helpers/games_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class GamesHelperTest < ActionView::TestCase -end diff --git a/test/helpers/main_helper_test.rb b/test/helpers/main_helper_test.rb deleted file mode 100644 index 22da3c4..0000000 --- a/test/helpers/main_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class MainHelperTest < ActionView::TestCase -end diff --git a/test/helpers/matches_helper_test.rb b/test/helpers/matches_helper_test.rb deleted file mode 100644 index 4cc472f..0000000 --- a/test/helpers/matches_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class MatchesHelperTest < ActionView::TestCase -end diff --git a/test/helpers/pms_helper_test.rb b/test/helpers/pms_helper_test.rb deleted file mode 100644 index af80f10..0000000 --- a/test/helpers/pms_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class PmsHelperTest < ActionView::TestCase -end diff --git a/test/helpers/search_helper_test.rb b/test/helpers/search_helper_test.rb deleted file mode 100644 index 3034163..0000000 --- a/test/helpers/search_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class SearchHelperTest < ActionView::TestCase -end diff --git a/test/helpers/servers_helper_test.rb b/test/helpers/servers_helper_test.rb deleted file mode 100644 index 8fddf34..0000000 --- a/test/helpers/servers_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class ServersHelperTest < ActionView::TestCase -end diff --git a/test/helpers/teams_helper_test.rb b/test/helpers/teams_helper_test.rb deleted file mode 100644 index b736483..0000000 --- a/test/helpers/teams_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class TeamsHelperTest < ActionView::TestCase -end diff --git a/test/helpers/tournaments_helper_test.rb b/test/helpers/tournaments_helper_test.rb deleted file mode 100644 index 1cf5269..0000000 --- a/test/helpers/tournaments_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class TournamentsHelperTest < ActionView::TestCase -end diff --git a/test/helpers/users_helper_test.rb b/test/helpers/users_helper_test.rb deleted file mode 100644 index 96af37a..0000000 --- a/test/helpers/users_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class UsersHelperTest < ActionView::TestCase -end diff --git a/test/models/alert_test.rb b/test/models/alert_test.rb deleted file mode 100644 index b59c65e..0000000 --- a/test/models/alert_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 13c6e65..0000000 --- a/test/models/game_attribute_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 2cab36e..0000000 --- a/test/models/game_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 14436b1..0000000 --- a/test/models/match_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index e7f6b8f..0000000 --- a/test/models/pm_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 470b316..0000000 --- a/test/models/server_settings_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 125ffc9..0000000 --- a/test/models/server_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index c250b3c..0000000 --- a/test/models/team_match_pair_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 8b101cb..0000000 --- a/test/models/team_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 8fa9628..0000000 --- a/test/models/tournament_option_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 24a7e5f..0000000 --- a/test/models/tournament_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 55f5c58..0000000 --- a/test/models/user_team_pair_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 82f61e0..0000000 --- a/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end |