summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-02 15:06:54 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-02 15:06:54 -0500
commitb677983475513c78108406901fccd5cbe9604ca6 (patch)
treef83b5e20930cbe1be890af41ea1d0c0d2ebf5e2e
parent4e682a9a8596326a2d1faab6c44e5a54918c5ba0 (diff)
parent1bfc0513fa113f5b4a61e89d74e42dd78ece44e7 (diff)
Merge branch 'master' of http://github.com/LukeShu/leaguer
Conflicts: Gemfile.lock app/views/layouts/application.html.erb config/routes.rb
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.lock8
-rw-r--r--app/assets/javascripts/alerts.js.coffee3
-rw-r--r--app/assets/javascripts/games.js.coffee3
-rw-r--r--app/assets/javascripts/main.js.coffee3
-rw-r--r--app/assets/javascripts/matches.js.coffee3
-rw-r--r--app/assets/javascripts/pms.js.coffee3
-rw-r--r--app/assets/javascripts/search.js.coffee3
-rw-r--r--app/assets/javascripts/servers.js.coffee3
-rw-r--r--app/assets/javascripts/teams.js.coffee3
-rw-r--r--app/assets/javascripts/tournaments.js.coffee3
-rw-r--r--app/assets/javascripts/users.js.coffee3
-rw-r--r--app/assets/stylesheets/alerts.css.scss3
-rw-r--r--app/assets/stylesheets/games.css.scss3
-rw-r--r--app/assets/stylesheets/main.css.scss3
-rw-r--r--app/assets/stylesheets/matches.css.scss3
-rw-r--r--app/assets/stylesheets/pms.css.scss3
-rw-r--r--app/assets/stylesheets/scaffolds.css.scss69
-rw-r--r--app/assets/stylesheets/search.css.scss3
-rw-r--r--app/assets/stylesheets/servers.css.scss3
-rw-r--r--app/assets/stylesheets/teams.css.scss3
-rw-r--r--app/assets/stylesheets/tournaments.css.scss3
-rw-r--r--app/assets/stylesheets/users.css.scss3
-rw-r--r--app/controllers/alerts_controller.rb74
-rw-r--r--app/controllers/games_controller.rb74
-rw-r--r--app/controllers/main_controller.rb2
-rw-r--r--app/controllers/matches_controller.rb74
-rw-r--r--app/controllers/pms_controller.rb74
-rw-r--r--app/controllers/search_controller.rb2
-rw-r--r--app/controllers/servers_controller.rb74
-rw-r--r--app/controllers/teams_controller.rb74
-rw-r--r--app/controllers/tournaments_controller.rb74
-rw-r--r--app/controllers/users_controller.rb2
-rw-r--r--app/helpers/alerts_helper.rb2
-rw-r--r--app/helpers/games_helper.rb2
-rw-r--r--app/helpers/main_helper.rb2
-rw-r--r--app/helpers/matches_helper.rb2
-rw-r--r--app/helpers/pms_helper.rb2
-rw-r--r--app/helpers/search_helper.rb2
-rw-r--r--app/helpers/servers_helper.rb2
-rw-r--r--app/helpers/teams_helper.rb2
-rw-r--r--app/helpers/tournaments_helper.rb2
-rw-r--r--app/helpers/users_helper.rb2
-rw-r--r--app/models/alert.rb3
-rw-r--r--app/models/game.rb2
-rw-r--r--app/models/game_attribute.rb3
-rw-r--r--app/models/match.rb3
-rw-r--r--app/models/pm.rb4
-rw-r--r--app/models/server.rb2
-rw-r--r--app/models/server_settings.rb2
-rw-r--r--app/models/team.rb2
-rw-r--r--app/models/team_match_pair.rb4
-rw-r--r--app/models/tournament.rb3
-rw-r--r--app/models/tournament_option.rb2
-rw-r--r--app/models/user.rb2
-rw-r--r--app/models/user_team_pair.rb4
-rw-r--r--app/views/alerts/_form.html.erb25
-rw-r--r--app/views/alerts/edit.html.erb6
-rw-r--r--app/views/alerts/index.html.erb29
-rw-r--r--app/views/alerts/index.json.jbuilder4
-rw-r--r--app/views/alerts/new.html.erb5
-rw-r--r--app/views/alerts/show.html.erb14
-rw-r--r--app/views/alerts/show.json.jbuilder1
-rw-r--r--app/views/games/_form.html.erb37
-rw-r--r--app/views/games/edit.html.erb6
-rw-r--r--app/views/games/index.html.erb35
-rw-r--r--app/views/games/index.json.jbuilder4
-rw-r--r--app/views/games/new.html.erb5
-rw-r--r--app/views/games/show.html.erb29
-rw-r--r--app/views/games/show.json.jbuilder1
-rw-r--r--app/views/matches/_form.html.erb21
-rw-r--r--app/views/matches/edit.html.erb6
-rw-r--r--app/views/matches/index.html.erb27
-rw-r--r--app/views/matches/index.json.jbuilder4
-rw-r--r--app/views/matches/new.html.erb5
-rw-r--r--app/views/matches/show.html.erb9
-rw-r--r--app/views/matches/show.json.jbuilder1
-rw-r--r--app/views/pms/_form.html.erb29
-rw-r--r--app/views/pms/edit.html.erb6
-rw-r--r--app/views/pms/index.html.erb31
-rw-r--r--app/views/pms/index.json.jbuilder4
-rw-r--r--app/views/pms/new.html.erb5
-rw-r--r--app/views/pms/show.html.erb19
-rw-r--r--app/views/pms/show.json.jbuilder1
-rw-r--r--app/views/servers/_form.html.erb17
-rw-r--r--app/views/servers/edit.html.erb6
-rw-r--r--app/views/servers/index.html.erb25
-rw-r--r--app/views/servers/index.json.jbuilder4
-rw-r--r--app/views/servers/new.html.erb5
-rw-r--r--app/views/servers/show.html.erb4
-rw-r--r--app/views/servers/show.json.jbuilder1
-rw-r--r--app/views/teams/_form.html.erb17
-rw-r--r--app/views/teams/edit.html.erb6
-rw-r--r--app/views/teams/index.html.erb25
-rw-r--r--app/views/teams/index.json.jbuilder4
-rw-r--r--app/views/teams/new.html.erb5
-rw-r--r--app/views/teams/show.html.erb4
-rw-r--r--app/views/teams/show.json.jbuilder1
-rw-r--r--app/views/tournaments/_form.html.erb21
-rw-r--r--app/views/tournaments/edit.html.erb6
-rw-r--r--app/views/tournaments/index.html.erb27
-rw-r--r--app/views/tournaments/index.json.jbuilder4
-rw-r--r--app/views/tournaments/new.html.erb5
-rw-r--r--app/views/tournaments/show.html.erb9
-rw-r--r--app/views/tournaments/show.json.jbuilder1
-rw-r--r--config/routes.rb14
-rw-r--r--db/migrate/20140304015655_create_servers.rb8
-rw-r--r--db/migrate/20140304015657_create_tournaments.rb9
-rw-r--r--db/migrate/20140304015700_create_matches.rb9
-rw-r--r--db/migrate/20140304015702_create_teams.rb8
-rw-r--r--db/migrate/20140304015706_create_users.rb11
-rw-r--r--db/migrate/20140304015709_create_user_team_pairs.rb10
-rw-r--r--db/migrate/20140304015711_create_team_match_pairs.rb10
-rw-r--r--db/migrate/20140304015713_create_alerts.rb10
-rw-r--r--db/migrate/20140304015715_create_pms.rb11
-rw-r--r--db/migrate/20140304015718_create_games.rb13
-rw-r--r--db/migrate/20140304015720_create_game_attributes.rb11
-rw-r--r--db/migrate/20140304015722_create_server_settings.rb8
-rw-r--r--db/migrate/20140304015729_create_tournament_options.rb8
-rw-r--r--db/schema.rb120
-rw-r--r--doc/.gitignore9
-rw-r--r--doc/DesignDocument-architecture-model2.pptx (renamed from docs/DesignDocument-architecture-model2.pptx)bin63714 -> 63714 bytes
-rw-r--r--doc/DesignDocument-classes.dot (renamed from docs/DesignDocument-classes.dot)0
-rw-r--r--doc/DesignDocument-models.pptx (renamed from docs/DesignDocument-models.pptx)bin34389 -> 34389 bytes
-rw-r--r--doc/DesignDocument.md (renamed from docs/DesignDocument.md)0
-rw-r--r--doc/Diagram01.jpg (renamed from docs/Diagram01.jpg)bin2008078 -> 2008078 bytes
-rw-r--r--doc/Makefile (renamed from docs/Makefile)0
-rw-r--r--doc/ProductBacklog.md (renamed from docs/ProductBacklog.md)0
-rw-r--r--doc/ProjectCharter.md (renamed from docs/ProjectCharter.md)0
-rw-r--r--doc/ProjectLeaguerWorkloadBreakup.md (renamed from docs/ProjectLeaguerWorkloadBreakup.md)0
-rw-r--r--doc/Sprint1.md (renamed from docs/Sprint1.md)0
-rw-r--r--doc/SystemModel.dot (renamed from docs/SystemModel.dot)0
-rw-r--r--doc/stickman.png (renamed from docs/stickman.png)bin1308 -> 1308 bytes
-rw-r--r--docs/.gitignore4
-rwxr-xr-xgenerate.sh1
-rw-r--r--spec/controllers/alerts_controller_spec.rb160
-rw-r--r--spec/controllers/games_controller_spec.rb160
-rw-r--r--spec/controllers/main_controller_spec.rb5
-rw-r--r--spec/controllers/matches_controller_spec.rb160
-rw-r--r--spec/controllers/pms_controller_spec.rb160
-rw-r--r--spec/controllers/search_controller_spec.rb5
-rw-r--r--spec/controllers/servers_controller_spec.rb160
-rw-r--r--spec/controllers/teams_controller_spec.rb160
-rw-r--r--spec/controllers/tournaments_controller_spec.rb160
-rw-r--r--spec/controllers/users_controller_spec.rb5
-rw-r--r--spec/helpers/alerts_helper_spec.rb15
-rw-r--r--spec/helpers/games_helper_spec.rb15
-rw-r--r--spec/helpers/main_helper_spec.rb15
-rw-r--r--spec/helpers/matches_helper_spec.rb15
-rw-r--r--spec/helpers/pms_helper_spec.rb15
-rw-r--r--spec/helpers/search_helper_spec.rb15
-rw-r--r--spec/helpers/servers_helper_spec.rb15
-rw-r--r--spec/helpers/teams_helper_spec.rb15
-rw-r--r--spec/helpers/tournaments_helper_spec.rb15
-rw-r--r--spec/helpers/users_helper_spec.rb15
-rw-r--r--spec/models/alert_spec.rb5
-rw-r--r--spec/models/game_attribute_spec.rb5
-rw-r--r--spec/models/game_spec.rb5
-rw-r--r--spec/models/match_spec.rb5
-rw-r--r--spec/models/pm_spec.rb5
-rw-r--r--spec/models/server_settings_spec.rb5
-rw-r--r--spec/models/server_spec.rb5
-rw-r--r--spec/models/team_match_pair_spec.rb5
-rw-r--r--spec/models/team_spec.rb5
-rw-r--r--spec/models/tournament_option_spec.rb5
-rw-r--r--spec/models/tournament_spec.rb5
-rw-r--r--spec/models/user_spec.rb5
-rw-r--r--spec/models/user_team_pair_spec.rb5
-rw-r--r--spec/requests/alerts_spec.rb11
-rw-r--r--spec/requests/games_spec.rb11
-rw-r--r--spec/requests/matches_spec.rb11
-rw-r--r--spec/requests/pms_spec.rb11
-rw-r--r--spec/requests/servers_spec.rb11
-rw-r--r--spec/requests/teams_spec.rb11
-rw-r--r--spec/requests/tournaments_spec.rb11
-rw-r--r--spec/routing/alerts_routing_spec.rb35
-rw-r--r--spec/routing/games_routing_spec.rb35
-rw-r--r--spec/routing/matches_routing_spec.rb35
-rw-r--r--spec/routing/pms_routing_spec.rb35
-rw-r--r--spec/routing/servers_routing_spec.rb35
-rw-r--r--spec/routing/teams_routing_spec.rb35
-rw-r--r--spec/routing/tournaments_routing_spec.rb35
-rw-r--r--spec/views/alerts/edit.html.erb_spec.rb20
-rw-r--r--spec/views/alerts/index.html.erb_spec.rb23
-rw-r--r--spec/views/alerts/new.html.erb_spec.rb20
-rw-r--r--spec/views/alerts/show.html.erb_spec.rb17
-rw-r--r--spec/views/games/edit.html.erb_spec.rb26
-rw-r--r--spec/views/games/index.html.erb_spec.rb32
-rw-r--r--spec/views/games/new.html.erb_spec.rb26
-rw-r--r--spec/views/games/show.html.erb_spec.rb23
-rw-r--r--spec/views/matches/edit.html.erb_spec.rb18
-rw-r--r--spec/views/matches/index.html.erb_spec.rb20
-rw-r--r--spec/views/matches/new.html.erb_spec.rb18
-rw-r--r--spec/views/matches/show.html.erb_spec.rb15
-rw-r--r--spec/views/pms/edit.html.erb_spec.rb22
-rw-r--r--spec/views/pms/index.html.erb_spec.rb26
-rw-r--r--spec/views/pms/new.html.erb_spec.rb22
-rw-r--r--spec/views/pms/show.html.erb_spec.rb19
-rw-r--r--spec/views/servers/edit.html.erb_spec.rb15
-rw-r--r--spec/views/servers/index.html.erb_spec.rb15
-rw-r--r--spec/views/servers/new.html.erb_spec.rb15
-rw-r--r--spec/views/servers/show.html.erb_spec.rb12
-rw-r--r--spec/views/teams/edit.html.erb_spec.rb15
-rw-r--r--spec/views/teams/index.html.erb_spec.rb15
-rw-r--r--spec/views/teams/new.html.erb_spec.rb15
-rw-r--r--spec/views/teams/show.html.erb_spec.rb12
-rw-r--r--spec/views/tournaments/edit.html.erb_spec.rb18
-rw-r--r--spec/views/tournaments/index.html.erb_spec.rb20
-rw-r--r--spec/views/tournaments/new.html.erb_spec.rb18
-rw-r--r--spec/views/tournaments/show.html.erb_spec.rb15
210 files changed, 19 insertions, 3744 deletions
diff --git a/Gemfile b/Gemfile
index cc95938..cb3d6f6 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,7 +3,6 @@ source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
-gem 'bootstrap-sass'
# bcrypt is used for password digesting
gem 'bcrypt-ruby', '3.1.2'
@@ -23,6 +22,7 @@ end
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
+gem 'bootstrap-sass'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
diff --git a/Gemfile.lock b/Gemfile.lock
index 9dd0199..9de990e 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -26,7 +26,11 @@ GEM
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
arel (4.0.2)
+<<<<<<< HEAD
atomic (1.1.15)
+=======
+ atomic (1.1.14)
+>>>>>>> 699bd065c06689a159c11ac3aacef6b34001617c
bcrypt-ruby (3.1.2)
bootstrap-sass (3.1.1.0)
sass (~> 3.2)
@@ -115,7 +119,11 @@ GEM
multi_json (~> 1.0)
rubyzip (< 1.0.0)
websocket (~> 1.0.4)
+<<<<<<< HEAD
sprockets (2.11.0)
+=======
+ sprockets (2.10.1)
+>>>>>>> 699bd065c06689a159c11ac3aacef6b34001617c
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
diff --git a/app/assets/javascripts/alerts.js.coffee b/app/assets/javascripts/alerts.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/alerts.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/javascripts/games.js.coffee b/app/assets/javascripts/games.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/games.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/javascripts/main.js.coffee b/app/assets/javascripts/main.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/main.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/javascripts/matches.js.coffee b/app/assets/javascripts/matches.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/matches.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/javascripts/pms.js.coffee b/app/assets/javascripts/pms.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/pms.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/javascripts/search.js.coffee b/app/assets/javascripts/search.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/search.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/javascripts/servers.js.coffee b/app/assets/javascripts/servers.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/servers.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/javascripts/teams.js.coffee b/app/assets/javascripts/teams.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/teams.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/javascripts/tournaments.js.coffee b/app/assets/javascripts/tournaments.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/tournaments.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/javascripts/users.js.coffee b/app/assets/javascripts/users.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/users.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/stylesheets/alerts.css.scss b/app/assets/stylesheets/alerts.css.scss
deleted file mode 100644
index c01a620..0000000
--- a/app/assets/stylesheets/alerts.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the alerts controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/games.css.scss b/app/assets/stylesheets/games.css.scss
deleted file mode 100644
index db1b7bc..0000000
--- a/app/assets/stylesheets/games.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the games controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/main.css.scss b/app/assets/stylesheets/main.css.scss
deleted file mode 100644
index a0d94c1..0000000
--- a/app/assets/stylesheets/main.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the main controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/matches.css.scss b/app/assets/stylesheets/matches.css.scss
deleted file mode 100644
index 4c396e3..0000000
--- a/app/assets/stylesheets/matches.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the matches controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/pms.css.scss b/app/assets/stylesheets/pms.css.scss
deleted file mode 100644
index 5106093..0000000
--- a/app/assets/stylesheets/pms.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the pms controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/scaffolds.css.scss b/app/assets/stylesheets/scaffolds.css.scss
deleted file mode 100644
index 6ec6a8f..0000000
--- a/app/assets/stylesheets/scaffolds.css.scss
+++ /dev/null
@@ -1,69 +0,0 @@
-body {
- background-color: #fff;
- color: #333;
- font-family: verdana, arial, helvetica, sans-serif;
- font-size: 13px;
- line-height: 18px;
-}
-
-p, ol, ul, td {
- font-family: verdana, arial, helvetica, sans-serif;
- font-size: 13px;
- line-height: 18px;
-}
-
-pre {
- background-color: #eee;
- padding: 10px;
- font-size: 11px;
-}
-
-a {
- color: #000;
- &:visited {
- color: #666;
- }
- &:hover {
- color: #fff;
- background-color: #000;
- }
-}
-
-div {
- &.field, &.actions {
- margin-bottom: 10px;
- }
-}
-
-#notice {
- color: green;
-}
-
-.field_with_errors {
- padding: 2px;
- background-color: red;
- display: table;
-}
-
-#error_explanation {
- width: 450px;
- border: 2px solid red;
- padding: 7px;
- padding-bottom: 0;
- margin-bottom: 20px;
- background-color: #f0f0f0;
- h2 {
- text-align: left;
- font-weight: bold;
- padding: 5px 5px 5px 15px;
- font-size: 12px;
- margin: -7px;
- margin-bottom: 0px;
- background-color: #c00;
- color: #fff;
- }
- ul li {
- font-size: 12px;
- list-style: square;
- }
-}
diff --git a/app/assets/stylesheets/search.css.scss b/app/assets/stylesheets/search.css.scss
deleted file mode 100644
index 22fd394..0000000
--- a/app/assets/stylesheets/search.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the search controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/servers.css.scss b/app/assets/stylesheets/servers.css.scss
deleted file mode 100644
index 4710386..0000000
--- a/app/assets/stylesheets/servers.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the servers controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/teams.css.scss b/app/assets/stylesheets/teams.css.scss
deleted file mode 100644
index 320d00d..0000000
--- a/app/assets/stylesheets/teams.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the teams controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/tournaments.css.scss b/app/assets/stylesheets/tournaments.css.scss
deleted file mode 100644
index e372b90..0000000
--- a/app/assets/stylesheets/tournaments.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the tournaments controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/users.css.scss b/app/assets/stylesheets/users.css.scss
deleted file mode 100644
index 1efc835..0000000
--- a/app/assets/stylesheets/users.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the users controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/controllers/alerts_controller.rb b/app/controllers/alerts_controller.rb
deleted file mode 100644
index 873e9b7..0000000
--- a/app/controllers/alerts_controller.rb
+++ /dev/null
@@ -1,74 +0,0 @@
-class AlertsController < ApplicationController
- before_action :set_alert, only: [:show, :edit, :update, :destroy]
-
- # GET /alerts
- # GET /alerts.json
- def index
- @alerts = Alert.all
- end
-
- # GET /alerts/1
- # GET /alerts/1.json
- def show
- end
-
- # GET /alerts/new
- def new
- @alert = Alert.new
- end
-
- # GET /alerts/1/edit
- def edit
- end
-
- # POST /alerts
- # POST /alerts.json
- def create
- @alert = Alert.new(alert_params)
-
- respond_to do |format|
- if @alert.save
- format.html { redirect_to @alert, notice: 'Alert was successfully created.' }
- format.json { render action: 'show', status: :created, location: @alert }
- else
- format.html { render action: 'new' }
- format.json { render json: @alert.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # PATCH/PUT /alerts/1
- # PATCH/PUT /alerts/1.json
- def update
- respond_to do |format|
- if @alert.update(alert_params)
- format.html { redirect_to @alert, notice: 'Alert was successfully updated.' }
- format.json { head :no_content }
- else
- format.html { render action: 'edit' }
- format.json { render json: @alert.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /alerts/1
- # DELETE /alerts/1.json
- def destroy
- @alert.destroy
- respond_to do |format|
- format.html { redirect_to alerts_url }
- format.json { head :no_content }
- end
- end
-
- private
- # Use callbacks to share common setup or constraints between actions.
- def set_alert
- @alert = Alert.find(params[:id])
- end
-
- # Never trust parameters from the scary internet, only allow the white list through.
- def alert_params
- params.require(:alert).permit(:author_id, :message)
- end
-end
diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb
deleted file mode 100644
index 4ecff17..0000000
--- a/app/controllers/games_controller.rb
+++ /dev/null
@@ -1,74 +0,0 @@
-class GamesController < ApplicationController
- before_action :set_game, only: [:show, :edit, :update, :destroy]
-
- # GET /games
- # GET /games.json
- def index
- @games = Game.all
- end
-
- # GET /games/1
- # GET /games/1.json
- def show
- end
-
- # GET /games/new
- def new
- @game = Game.new
- end
-
- # GET /games/1/edit
- def edit
- end
-
- # POST /games
- # POST /games.json
- def create
- @game = Game.new(game_params)
-
- respond_to do |format|
- if @game.save
- format.html { redirect_to @game, notice: 'Game was successfully created.' }
- format.json { render action: 'show', status: :created, location: @game }
- else
- format.html { render action: 'new' }
- format.json { render json: @game.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # PATCH/PUT /games/1
- # PATCH/PUT /games/1.json
- def update
- respond_to do |format|
- if @game.update(game_params)
- format.html { redirect_to @game, notice: 'Game was successfully updated.' }
- format.json { head :no_content }
- else
- format.html { render action: 'edit' }
- format.json { render json: @game.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /games/1
- # DELETE /games/1.json
- def destroy
- @game.destroy
- respond_to do |format|
- format.html { redirect_to games_url }
- format.json { head :no_content }
- end
- end
-
- private
- # Use callbacks to share common setup or constraints between actions.
- def set_game
- @game = Game.find(params[:id])
- end
-
- # Never trust parameters from the scary internet, only allow the white list through.
- def game_params
- params.require(:game).permit(:name, :players_per_team, :teams_per_match, :set_rounds, :randomized_teams)
- end
-end
diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb
deleted file mode 100644
index 6519d7b..0000000
--- a/app/controllers/main_controller.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class MainController < ApplicationController
-end
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb
deleted file mode 100644
index e9f3c5a..0000000
--- a/app/controllers/matches_controller.rb
+++ /dev/null
@@ -1,74 +0,0 @@
-class MatchesController < ApplicationController
- before_action :set_match, only: [:show, :edit, :update, :destroy]
-
- # GET /matches
- # GET /matches.json
- def index
- @matches = Match.all
- end
-
- # GET /matches/1
- # GET /matches/1.json
- def show
- end
-
- # GET /matches/new
- def new
- @match = Match.new
- end
-
- # GET /matches/1/edit
- def edit
- end
-
- # POST /matches
- # POST /matches.json
- def create
- @match = Match.new(match_params)
-
- respond_to do |format|
- if @match.save
- format.html { redirect_to @match, notice: 'Match was successfully created.' }
- format.json { render action: 'show', status: :created, location: @match }
- else
- format.html { render action: 'new' }
- format.json { render json: @match.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # PATCH/PUT /matches/1
- # PATCH/PUT /matches/1.json
- def update
- respond_to do |format|
- if @match.update(match_params)
- format.html { redirect_to @match, notice: 'Match was successfully updated.' }
- format.json { head :no_content }
- else
- format.html { render action: 'edit' }
- format.json { render json: @match.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /matches/1
- # DELETE /matches/1.json
- def destroy
- @match.destroy
- respond_to do |format|
- format.html { redirect_to matches_url }
- format.json { head :no_content }
- end
- end
-
- private
- # Use callbacks to share common setup or constraints between actions.
- def set_match
- @match = Match.find(params[:id])
- end
-
- # Never trust parameters from the scary internet, only allow the white list through.
- def match_params
- params.require(:match).permit(:tournament_id)
- end
-end
diff --git a/app/controllers/pms_controller.rb b/app/controllers/pms_controller.rb
deleted file mode 100644
index 5dd0d69..0000000
--- a/app/controllers/pms_controller.rb
+++ /dev/null
@@ -1,74 +0,0 @@
-class PmsController < ApplicationController
- before_action :set_pm, only: [:show, :edit, :update, :destroy]
-
- # GET /pms
- # GET /pms.json
- def index
- @pms = Pm.all
- end
-
- # GET /pms/1
- # GET /pms/1.json
- def show
- end
-
- # GET /pms/new
- def new
- @pm = Pm.new
- end
-
- # GET /pms/1/edit
- def edit
- end
-
- # POST /pms
- # POST /pms.json
- def create
- @pm = Pm.new(pm_params)
-
- respond_to do |format|
- if @pm.save
- format.html { redirect_to @pm, notice: 'Pm was successfully created.' }
- format.json { render action: 'show', status: :created, location: @pm }
- else
- format.html { render action: 'new' }
- format.json { render json: @pm.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # PATCH/PUT /pms/1
- # PATCH/PUT /pms/1.json
- def update
- respond_to do |format|
- if @pm.update(pm_params)
- format.html { redirect_to @pm, notice: 'Pm was successfully updated.' }
- format.json { head :no_content }
- else
- format.html { render action: 'edit' }
- format.json { render json: @pm.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /pms/1
- # DELETE /pms/1.json
- def destroy
- @pm.destroy
- respond_to do |format|
- format.html { redirect_to pms_url }
- format.json { head :no_content }
- end
- end
-
- private
- # Use callbacks to share common setup or constraints between actions.
- def set_pm
- @pm = Pm.find(params[:id])
- end
-
- # Never trust parameters from the scary internet, only allow the white list through.
- def pm_params
- params.require(:pm).permit(:author_id, :recipient_id, :message)
- end
-end
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
deleted file mode 100644
index ee61487..0000000
--- a/app/controllers/search_controller.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class SearchController < ApplicationController
-end
diff --git a/app/controllers/servers_controller.rb b/app/controllers/servers_controller.rb
deleted file mode 100644
index 7d54eb6..0000000
--- a/app/controllers/servers_controller.rb
+++ /dev/null
@@ -1,74 +0,0 @@
-class ServersController < ApplicationController
- before_action :set_server, only: [:show, :edit, :update, :destroy]
-
- # GET /servers
- # GET /servers.json
- def index
- @servers = Server.all
- end
-
- # GET /servers/1
- # GET /servers/1.json
- def show
- end
-
- # GET /servers/new
- def new
- @server = Server.new
- end
-
- # GET /servers/1/edit
- def edit
- end
-
- # POST /servers
- # POST /servers.json
- def create
- @server = Server.new(server_params)
-
- respond_to do |format|
- if @server.save
- format.html { redirect_to @server, notice: 'Server was successfully created.' }
- format.json { render action: 'show', status: :created, location: @server }
- else
- format.html { render action: 'new' }
- format.json { render json: @server.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # PATCH/PUT /servers/1
- # PATCH/PUT /servers/1.json
- def update
- respond_to do |format|
- if @server.update(server_params)
- format.html { redirect_to @server, notice: 'Server was successfully updated.' }
- format.json { head :no_content }
- else
- format.html { render action: 'edit' }
- format.json { render json: @server.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /servers/1
- # DELETE /servers/1.json
- def destroy
- @server.destroy
- respond_to do |format|
- format.html { redirect_to servers_url }
- format.json { head :no_content }
- end
- end
-
- private
- # Use callbacks to share common setup or constraints between actions.
- def set_server
- @server = Server.find(params[:id])
- end
-
- # Never trust parameters from the scary internet, only allow the white list through.
- def server_params
- params[:server]
- end
-end
diff --git a/app/controllers/teams_controller.rb b/app/controllers/teams_controller.rb
deleted file mode 100644
index f14c97f..0000000
--- a/app/controllers/teams_controller.rb
+++ /dev/null
@@ -1,74 +0,0 @@
-class TeamsController < ApplicationController
- before_action :set_team, only: [:show, :edit, :update, :destroy]
-
- # GET /teams
- # GET /teams.json
- def index
- @teams = Team.all
- end
-
- # GET /teams/1
- # GET /teams/1.json
- def show
- end
-
- # GET /teams/new
- def new
- @team = Team.new
- end
-
- # GET /teams/1/edit
- def edit
- end
-
- # POST /teams
- # POST /teams.json
- def create
- @team = Team.new(team_params)
-
- respond_to do |format|
- if @team.save
- format.html { redirect_to @team, notice: 'Team was successfully created.' }
- format.json { render action: 'show', status: :created, location: @team }
- else
- format.html { render action: 'new' }
- format.json { render json: @team.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # PATCH/PUT /teams/1
- # PATCH/PUT /teams/1.json
- def update
- respond_to do |format|
- if @team.update(team_params)
- format.html { redirect_to @team, notice: 'Team was successfully updated.' }
- format.json { head :no_content }
- else
- format.html { render action: 'edit' }
- format.json { render json: @team.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /teams/1
- # DELETE /teams/1.json
- def destroy
- @team.destroy
- respond_to do |format|
- format.html { redirect_to teams_url }
- format.json { head :no_content }
- end
- end
-
- private
- # Use callbacks to share common setup or constraints between actions.
- def set_team
- @team = Team.find(params[:id])
- end
-
- # Never trust parameters from the scary internet, only allow the white list through.
- def team_params
- params[:team]
- end
-end
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
deleted file mode 100644
index 720305f..0000000
--- a/app/controllers/tournaments_controller.rb
+++ /dev/null
@@ -1,74 +0,0 @@
-class TournamentsController < ApplicationController
- before_action :set_tournament, only: [:show, :edit, :update, :destroy]
-
- # GET /tournaments
- # GET /tournaments.json
- def index
- @tournaments = Tournament.all
- end
-
- # GET /tournaments/1
- # GET /tournaments/1.json
- def show
- end
-
- # GET /tournaments/new
- def new
- @tournament = Tournament.new
- end
-
- # GET /tournaments/1/edit
- def edit
- end
-
- # POST /tournaments
- # POST /tournaments.json
- def create
- @tournament = Tournament.new(tournament_params)
-
- respond_to do |format|
- if @tournament.save
- format.html { redirect_to @tournament, notice: 'Tournament was successfully created.' }
- format.json { render action: 'show', status: :created, location: @tournament }
- else
- format.html { render action: 'new' }
- format.json { render json: @tournament.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # PATCH/PUT /tournaments/1
- # PATCH/PUT /tournaments/1.json
- def update
- respond_to do |format|
- if @tournament.update(tournament_params)
- format.html { redirect_to @tournament, notice: 'Tournament was successfully updated.' }
- format.json { head :no_content }
- else
- format.html { render action: 'edit' }
- format.json { render json: @tournament.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /tournaments/1
- # DELETE /tournaments/1.json
- def destroy
- @tournament.destroy
- respond_to do |format|
- format.html { redirect_to tournaments_url }
- format.json { head :no_content }
- end
- end
-
- private
- # Use callbacks to share common setup or constraints between actions.
- def set_tournament
- @tournament = Tournament.find(params[:id])
- end
-
- # Never trust parameters from the scary internet, only allow the white list through.
- def tournament_params
- params.require(:tournament).permit(:game_id)
- end
-end
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
deleted file mode 100644
index 3e74dea..0000000
--- a/app/controllers/users_controller.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class UsersController < ApplicationController
-end
diff --git a/app/helpers/alerts_helper.rb b/app/helpers/alerts_helper.rb
deleted file mode 100644
index 20f5b50..0000000
--- a/app/helpers/alerts_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module AlertsHelper
-end
diff --git a/app/helpers/games_helper.rb b/app/helpers/games_helper.rb
deleted file mode 100644
index 2ef8c1f..0000000
--- a/app/helpers/games_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module GamesHelper
-end
diff --git a/app/helpers/main_helper.rb b/app/helpers/main_helper.rb
deleted file mode 100644
index 826effe..0000000
--- a/app/helpers/main_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module MainHelper
-end
diff --git a/app/helpers/matches_helper.rb b/app/helpers/matches_helper.rb
deleted file mode 100644
index cc2ef83..0000000
--- a/app/helpers/matches_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module MatchesHelper
-end
diff --git a/app/helpers/pms_helper.rb b/app/helpers/pms_helper.rb
deleted file mode 100644
index 0188e59..0000000
--- a/app/helpers/pms_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module PmsHelper
-end
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
deleted file mode 100644
index b3ce20a..0000000
--- a/app/helpers/search_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module SearchHelper
-end
diff --git a/app/helpers/servers_helper.rb b/app/helpers/servers_helper.rb
deleted file mode 100644
index a36fb17..0000000
--- a/app/helpers/servers_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module ServersHelper
-end
diff --git a/app/helpers/teams_helper.rb b/app/helpers/teams_helper.rb
deleted file mode 100644
index 5fb41eb..0000000
--- a/app/helpers/teams_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module TeamsHelper
-end
diff --git a/app/helpers/tournaments_helper.rb b/app/helpers/tournaments_helper.rb
deleted file mode 100644
index 2b6e27c..0000000
--- a/app/helpers/tournaments_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module TournamentsHelper
-end
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
deleted file mode 100644
index 2310a24..0000000
--- a/app/helpers/users_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module UsersHelper
-end
diff --git a/app/models/alert.rb b/app/models/alert.rb
deleted file mode 100644
index 343c269..0000000
--- a/app/models/alert.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class Alert < ActiveRecord::Base
- belongs_to :author
-end
diff --git a/app/models/game.rb b/app/models/game.rb
deleted file mode 100644
index a181c26..0000000
--- a/app/models/game.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class Game < ActiveRecord::Base
-end
diff --git a/app/models/game_attribute.rb b/app/models/game_attribute.rb
deleted file mode 100644
index c12723b..0000000
--- a/app/models/game_attribute.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class GameAttribute < ActiveRecord::Base
- belongs_to :game
-end
diff --git a/app/models/match.rb b/app/models/match.rb
deleted file mode 100644
index 533435a..0000000
--- a/app/models/match.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class Match < ActiveRecord::Base
- belongs_to :tournament
-end
diff --git a/app/models/pm.rb b/app/models/pm.rb
deleted file mode 100644
index ab5af3b..0000000
--- a/app/models/pm.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-class Pm < ActiveRecord::Base
- belongs_to :author
- belongs_to :recipient
-end
diff --git a/app/models/server.rb b/app/models/server.rb
deleted file mode 100644
index 120f0fa..0000000
--- a/app/models/server.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class Server < ActiveRecord::Base
-end
diff --git a/app/models/server_settings.rb b/app/models/server_settings.rb
deleted file mode 100644
index 7f49863..0000000
--- a/app/models/server_settings.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class ServerSettings < ActiveRecord::Base
-end
diff --git a/app/models/team.rb b/app/models/team.rb
deleted file mode 100644
index fa7ba9e..0000000
--- a/app/models/team.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class Team < ActiveRecord::Base
-end
diff --git a/app/models/team_match_pair.rb b/app/models/team_match_pair.rb
deleted file mode 100644
index 85f8eaa..0000000
--- a/app/models/team_match_pair.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-class TeamMatchPair < ActiveRecord::Base
- belongs_to :team
- belongs_to :match
-end
diff --git a/app/models/tournament.rb b/app/models/tournament.rb
deleted file mode 100644
index cc915a0..0000000
--- a/app/models/tournament.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class Tournament < ActiveRecord::Base
- belongs_to :game
-end
diff --git a/app/models/tournament_option.rb b/app/models/tournament_option.rb
deleted file mode 100644
index 950b351..0000000
--- a/app/models/tournament_option.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class TournamentOption < ActiveRecord::Base
-end
diff --git a/app/models/user.rb b/app/models/user.rb
deleted file mode 100644
index 4a57cf0..0000000
--- a/app/models/user.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class User < ActiveRecord::Base
-end
diff --git a/app/models/user_team_pair.rb b/app/models/user_team_pair.rb
deleted file mode 100644
index c55dc2e..0000000
--- a/app/models/user_team_pair.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-class UserTeamPair < ActiveRecord::Base
- belongs_to :user
- belongs_to :team
-end
diff --git a/app/views/alerts/_form.html.erb b/app/views/alerts/_form.html.erb
deleted file mode 100644
index b60eaf2..0000000
--- a/app/views/alerts/_form.html.erb
+++ /dev/null
@@ -1,25 +0,0 @@
-<%= form_for(@alert) do |f| %>
- <% if @alert.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@alert.errors.count, "error") %> prohibited this alert from being saved:</h2>
-
- <ul>
- <% @alert.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
-
- <div class="field">
- <%= f.label :author_id %><br>
- <%= f.text_field :author_id %>
- </div>
- <div class="field">
- <%= f.label :message %><br>
- <%= f.text_area :message %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
diff --git a/app/views/alerts/edit.html.erb b/app/views/alerts/edit.html.erb
deleted file mode 100644
index ad99164..0000000
--- a/app/views/alerts/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Editing alert</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @alert %> |
-<%= link_to 'Back', alerts_path %>
diff --git a/app/views/alerts/index.html.erb b/app/views/alerts/index.html.erb
deleted file mode 100644
index 458b951..0000000
--- a/app/views/alerts/index.html.erb
+++ /dev/null
@@ -1,29 +0,0 @@
-<h1>Listing alerts</h1>
-
-<table>
- <thead>
- <tr>
- <th>Author</th>
- <th>Message</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
-
- <tbody>
- <% @alerts.each do |alert| %>
- <tr>
- <td><%= alert.author %></td>
- <td><%= alert.message %></td>
- <td><%= link_to 'Show', alert %></td>
- <td><%= link_to 'Edit', edit_alert_path(alert) %></td>
- <td><%= link_to 'Destroy', alert, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Alert', new_alert_path %>
diff --git a/app/views/alerts/index.json.jbuilder b/app/views/alerts/index.json.jbuilder
deleted file mode 100644
index 0911a5c..0000000
--- a/app/views/alerts/index.json.jbuilder
+++ /dev/null
@@ -1,4 +0,0 @@
-json.array!(@alerts) do |alert|
- json.extract! alert, :id, :author_id, :message
- json.url alert_url(alert, format: :json)
-end
diff --git a/app/views/alerts/new.html.erb b/app/views/alerts/new.html.erb
deleted file mode 100644
index 6d04589..0000000
--- a/app/views/alerts/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>New alert</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', alerts_path %>
diff --git a/app/views/alerts/show.html.erb b/app/views/alerts/show.html.erb
deleted file mode 100644
index eeab7f7..0000000
--- a/app/views/alerts/show.html.erb
+++ /dev/null
@@ -1,14 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
- <strong>Author:</strong>
- <%= @alert.author %>
-</p>
-
-<p>
- <strong>Message:</strong>
- <%= @alert.message %>
-</p>
-
-<%= link_to 'Edit', edit_alert_path(@alert) %> |
-<%= link_to 'Back', alerts_path %>
diff --git a/app/views/alerts/show.json.jbuilder b/app/views/alerts/show.json.jbuilder
deleted file mode 100644
index 95481eb..0000000
--- a/app/views/alerts/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @alert, :id, :author_id, :message, :created_at, :updated_at
diff --git a/app/views/games/_form.html.erb b/app/views/games/_form.html.erb
deleted file mode 100644
index 8941c59..0000000
--- a/app/views/games/_form.html.erb
+++ /dev/null
@@ -1,37 +0,0 @@
-<%= form_for(@game) do |f| %>
- <% if @game.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@game.errors.count, "error") %> prohibited this game from being saved:</h2>
-
- <ul>
- <% @game.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
-
- <div class="field">
- <%= f.label :name %><br>
- <%= f.text_area :name %>
- </div>
- <div class="field">
- <%= f.label :players_per_team %><br>
- <%= f.number_field :players_per_team %>
- </div>
- <div class="field">
- <%= f.label :teams_per_match %><br>
- <%= f.number_field :teams_per_match %>
- </div>
- <div class="field">
- <%= f.label :set_rounds %><br>
- <%= f.number_field :set_rounds %>
- </div>
- <div class="field">
- <%= f.label :randomized_teams %><br>
- <%= f.number_field :randomized_teams %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
diff --git a/app/views/games/edit.html.erb b/app/views/games/edit.html.erb
deleted file mode 100644
index d72bd2e..0000000
--- a/app/views/games/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Editing game</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @game %> |
-<%= link_to 'Back', games_path %>
diff --git a/app/views/games/index.html.erb b/app/views/games/index.html.erb
deleted file mode 100644
index ccd0f63..0000000
--- a/app/views/games/index.html.erb
+++ /dev/null
@@ -1,35 +0,0 @@
-<h1>Listing games</h1>
-
-<table>
- <thead>
- <tr>
- <th>Name</th>
- <th>Players per team</th>
- <th>Teams per match</th>
- <th>Set rounds</th>
- <th>Randomized teams</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
-
- <tbody>
- <% @games.each do |game| %>
- <tr>
- <td><%= game.name %></td>
- <td><%= game.players_per_team %></td>
- <td><%= game.teams_per_match %></td>
- <td><%= game.set_rounds %></td>
- <td><%= game.randomized_teams %></td>
- <td><%= link_to 'Show', game %></td>
- <td><%= link_to 'Edit', edit_game_path(game) %></td>
- <td><%= link_to 'Destroy', game, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Game', new_game_path %>
diff --git a/app/views/games/index.json.jbuilder b/app/views/games/index.json.jbuilder
deleted file mode 100644
index 7e5c1a1..0000000
--- a/app/views/games/index.json.jbuilder
+++ /dev/null
@@ -1,4 +0,0 @@
-json.array!(@games) do |game|
- json.extract! game, :id, :name, :players_per_team, :teams_per_match, :set_rounds, :randomized_teams
- json.url game_url(game, format: :json)
-end
diff --git a/app/views/games/new.html.erb b/app/views/games/new.html.erb
deleted file mode 100644
index ab95f70..0000000
--- a/app/views/games/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>New game</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', games_path %>
diff --git a/app/views/games/show.html.erb b/app/views/games/show.html.erb
deleted file mode 100644
index 7986016..0000000
--- a/app/views/games/show.html.erb
+++ /dev/null
@@ -1,29 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
- <strong>Name:</strong>
- <%= @game.name %>
-</p>
-
-<p>
- <strong>Players per team:</strong>
- <%= @game.players_per_team %>
-</p>
-
-<p>
- <strong>Teams per match:</strong>
- <%= @game.teams_per_match %>
-</p>
-
-<p>
- <strong>Set rounds:</strong>
- <%= @game.set_rounds %>
-</p>
-
-<p>
- <strong>Randomized teams:</strong>
- <%= @game.randomized_teams %>
-</p>
-
-<%= link_to 'Edit', edit_game_path(@game) %> |
-<%= link_to 'Back', games_path %>
diff --git a/app/views/games/show.json.jbuilder b/app/views/games/show.json.jbuilder
deleted file mode 100644
index 1a2d0c7..0000000
--- a/app/views/games/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @game, :id, :name, :players_per_team, :teams_per_match, :set_rounds, :randomized_teams, :created_at, :updated_at
diff --git a/app/views/matches/_form.html.erb b/app/views/matches/_form.html.erb
deleted file mode 100644
index 34494c3..0000000
--- a/app/views/matches/_form.html.erb
+++ /dev/null
@@ -1,21 +0,0 @@
-<%= form_for(@match) do |f| %>
- <% if @match.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@match.errors.count, "error") %> prohibited this match from being saved:</h2>
-
- <ul>
- <% @match.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
-
- <div class="field">
- <%= f.label :tournament_id %><br>
- <%= f.text_field :tournament_id %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
diff --git a/app/views/matches/edit.html.erb b/app/views/matches/edit.html.erb
deleted file mode 100644
index 38b7d70..0000000
--- a/app/views/matches/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Editing match</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @match %> |
-<%= link_to 'Back', matches_path %>
diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb
deleted file mode 100644
index d8122ac..0000000
--- a/app/views/matches/index.html.erb
+++ /dev/null
@@ -1,27 +0,0 @@
-<h1>Listing matches</h1>
-
-<table>
- <thead>
- <tr>
- <th>Tournament</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
-
- <tbody>
- <% @matches.each do |match| %>
- <tr>
- <td><%= match.tournament %></td>
- <td><%= link_to 'Show', match %></td>
- <td><%= link_to 'Edit', edit_match_path(match) %></td>
- <td><%= link_to 'Destroy', match, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Match', new_match_path %>
diff --git a/app/views/matches/index.json.jbuilder b/app/views/matches/index.json.jbuilder
deleted file mode 100644
index c8ada7a..0000000
--- a/app/views/matches/index.json.jbuilder
+++ /dev/null
@@ -1,4 +0,0 @@
-json.array!(@matches) do |match|
- json.extract! match, :id, :tournament_id
- json.url match_url(match, format: :json)
-end
diff --git a/app/views/matches/new.html.erb b/app/views/matches/new.html.erb
deleted file mode 100644
index bd4c78c..0000000
--- a/app/views/matches/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>New match</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', matches_path %>
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
deleted file mode 100644
index 7bab721..0000000
--- a/app/views/matches/show.html.erb
+++ /dev/null
@@ -1,9 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
- <strong>Tournament:</strong>
- <%= @match.tournament %>
-</p>
-
-<%= link_to 'Edit', edit_match_path(@match) %> |
-<%= link_to 'Back', matches_path %>
diff --git a/app/views/matches/show.json.jbuilder b/app/views/matches/show.json.jbuilder
deleted file mode 100644
index 2e45395..0000000
--- a/app/views/matches/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @match, :id, :tournament_id, :created_at, :updated_at
diff --git a/app/views/pms/_form.html.erb b/app/views/pms/_form.html.erb
deleted file mode 100644
index 480e308..0000000
--- a/app/views/pms/_form.html.erb
+++ /dev/null
@@ -1,29 +0,0 @@
-<%= form_for(@pm) do |f| %>
- <% if @pm.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@pm.errors.count, "error") %> prohibited this pm from being saved:</h2>
-
- <ul>
- <% @pm.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
-
- <div class="field">
- <%= f.label :author_id %><br>
- <%= f.text_field :author_id %>
- </div>
- <div class="field">
- <%= f.label :recipient_id %><br>
- <%= f.text_field :recipient_id %>
- </div>
- <div class="field">
- <%= f.label :message %><br>
- <%= f.text_area :message %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
diff --git a/app/views/pms/edit.html.erb b/app/views/pms/edit.html.erb
deleted file mode 100644
index 074a4fd..0000000
--- a/app/views/pms/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Editing pm</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @pm %> |
-<%= link_to 'Back', pms_path %>
diff --git a/app/views/pms/index.html.erb b/app/views/pms/index.html.erb
deleted file mode 100644
index cb7fe4b..0000000
--- a/app/views/pms/index.html.erb
+++ /dev/null
@@ -1,31 +0,0 @@
-<h1>Listing pms</h1>
-
-<table>
- <thead>
- <tr>
- <th>Author</th>
- <th>Recipient</th>
- <th>Message</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
-
- <tbody>
- <% @pms.each do |pm| %>
- <tr>
- <td><%= pm.author %></td>
- <td><%= pm.recipient %></td>
- <td><%= pm.message %></td>
- <td><%= link_to 'Show', pm %></td>
- <td><%= link_to 'Edit', edit_pm_path(pm) %></td>
- <td><%= link_to 'Destroy', pm, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Pm', new_pm_path %>
diff --git a/app/views/pms/index.json.jbuilder b/app/views/pms/index.json.jbuilder
deleted file mode 100644
index fcfca84..0000000
--- a/app/views/pms/index.json.jbuilder
+++ /dev/null
@@ -1,4 +0,0 @@
-json.array!(@pms) do |pm|
- json.extract! pm, :id, :author_id, :recipient_id, :message
- json.url pm_url(pm, format: :json)
-end
diff --git a/app/views/pms/new.html.erb b/app/views/pms/new.html.erb
deleted file mode 100644
index 29e24ec..0000000
--- a/app/views/pms/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>New pm</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', pms_path %>
diff --git a/app/views/pms/show.html.erb b/app/views/pms/show.html.erb
deleted file mode 100644
index 5ee483f..0000000
--- a/app/views/pms/show.html.erb
+++ /dev/null
@@ -1,19 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
- <strong>Author:</strong>
- <%= @pm.author %>
-</p>
-
-<p>
- <strong>Recipient:</strong>
- <%= @pm.recipient %>
-</p>
-
-<p>
- <strong>Message:</strong>
- <%= @pm.message %>
-</p>
-
-<%= link_to 'Edit', edit_pm_path(@pm) %> |
-<%= link_to 'Back', pms_path %>
diff --git a/app/views/pms/show.json.jbuilder b/app/views/pms/show.json.jbuilder
deleted file mode 100644
index 94252e9..0000000
--- a/app/views/pms/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @pm, :id, :author_id, :recipient_id, :message, :created_at, :updated_at
diff --git a/app/views/servers/_form.html.erb b/app/views/servers/_form.html.erb
deleted file mode 100644
index b08654b..0000000
--- a/app/views/servers/_form.html.erb
+++ /dev/null
@@ -1,17 +0,0 @@
-<%= form_for(@server) do |f| %>
- <% if @server.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@server.errors.count, "error") %> prohibited this server from being saved:</h2>
-
- <ul>
- <% @server.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
-
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
diff --git a/app/views/servers/edit.html.erb b/app/views/servers/edit.html.erb
deleted file mode 100644
index a92cdb5..0000000
--- a/app/views/servers/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Editing server</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @server %> |
-<%= link_to 'Back', servers_path %>
diff --git a/app/views/servers/index.html.erb b/app/views/servers/index.html.erb
deleted file mode 100644
index f45d393..0000000
--- a/app/views/servers/index.html.erb
+++ /dev/null
@@ -1,25 +0,0 @@
-<h1>Listing servers</h1>
-
-<table>
- <thead>
- <tr>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
-
- <tbody>
- <% @servers.each do |server| %>
- <tr>
- <td><%= link_to 'Show', server %></td>
- <td><%= link_to 'Edit', edit_server_path(server) %></td>
- <td><%= link_to 'Destroy', server, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Server', new_server_path %>
diff --git a/app/views/servers/index.json.jbuilder b/app/views/servers/index.json.jbuilder
deleted file mode 100644
index 2776abc..0000000
--- a/app/views/servers/index.json.jbuilder
+++ /dev/null
@@ -1,4 +0,0 @@
-json.array!(@servers) do |server|
- json.extract! server, :id
- json.url server_url(server, format: :json)
-end
diff --git a/app/views/servers/new.html.erb b/app/views/servers/new.html.erb
deleted file mode 100644
index 0422009..0000000
--- a/app/views/servers/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>New server</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', servers_path %>
diff --git a/app/views/servers/show.html.erb b/app/views/servers/show.html.erb
deleted file mode 100644
index 039cd8f..0000000
--- a/app/views/servers/show.html.erb
+++ /dev/null
@@ -1,4 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<%= link_to 'Edit', edit_server_path(@server) %> |
-<%= link_to 'Back', servers_path %>
diff --git a/app/views/servers/show.json.jbuilder b/app/views/servers/show.json.jbuilder
deleted file mode 100644
index 972b1c0..0000000
--- a/app/views/servers/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @server, :id, :created_at, :updated_at
diff --git a/app/views/teams/_form.html.erb b/app/views/teams/_form.html.erb
deleted file mode 100644
index fd10129..0000000
--- a/app/views/teams/_form.html.erb
+++ /dev/null
@@ -1,17 +0,0 @@
-<%= form_for(@team) do |f| %>
- <% if @team.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@team.errors.count, "error") %> prohibited this team from being saved:</h2>
-
- <ul>
- <% @team.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
-
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
diff --git a/app/views/teams/edit.html.erb b/app/views/teams/edit.html.erb
deleted file mode 100644
index 49858ad..0000000
--- a/app/views/teams/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Editing team</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @team %> |
-<%= link_to 'Back', teams_path %>
diff --git a/app/views/teams/index.html.erb b/app/views/teams/index.html.erb
deleted file mode 100644
index b077e10..0000000
--- a/app/views/teams/index.html.erb
+++ /dev/null
@@ -1,25 +0,0 @@
-<h1>Listing teams</h1>
-
-<table>
- <thead>
- <tr>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
-
- <tbody>
- <% @teams.each do |team| %>
- <tr>
- <td><%= link_to 'Show', team %></td>
- <td><%= link_to 'Edit', edit_team_path(team) %></td>
- <td><%= link_to 'Destroy', team, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Team', new_team_path %>
diff --git a/app/views/teams/index.json.jbuilder b/app/views/teams/index.json.jbuilder
deleted file mode 100644
index b29428b..0000000
--- a/app/views/teams/index.json.jbuilder
+++ /dev/null
@@ -1,4 +0,0 @@
-json.array!(@teams) do |team|
- json.extract! team, :id
- json.url team_url(team, format: :json)
-end
diff --git a/app/views/teams/new.html.erb b/app/views/teams/new.html.erb
deleted file mode 100644
index 433d944..0000000
--- a/app/views/teams/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>New team</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', teams_path %>
diff --git a/app/views/teams/show.html.erb b/app/views/teams/show.html.erb
deleted file mode 100644
index 5b18d33..0000000
--- a/app/views/teams/show.html.erb
+++ /dev/null
@@ -1,4 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<%= link_to 'Edit', edit_team_path(@team) %> |
-<%= link_to 'Back', teams_path %>
diff --git a/app/views/teams/show.json.jbuilder b/app/views/teams/show.json.jbuilder
deleted file mode 100644
index 1538019..0000000
--- a/app/views/teams/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @team, :id, :created_at, :updated_at
diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb
deleted file mode 100644
index 1fd63e9..0000000
--- a/app/views/tournaments/_form.html.erb
+++ /dev/null
@@ -1,21 +0,0 @@
-<%= form_for(@tournament) do |f| %>
- <% if @tournament.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@tournament.errors.count, "error") %> prohibited this tournament from being saved:</h2>
-
- <ul>
- <% @tournament.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
-
- <div class="field">
- <%= f.label :game_id %><br>
- <%= f.text_field :game_id %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
diff --git a/app/views/tournaments/edit.html.erb b/app/views/tournaments/edit.html.erb
deleted file mode 100644
index 2913025..0000000
--- a/app/views/tournaments/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Editing tournament</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @tournament %> |
-<%= link_to 'Back', tournaments_path %>
diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb
deleted file mode 100644
index ad2b7cf..0000000
--- a/app/views/tournaments/index.html.erb
+++ /dev/null
@@ -1,27 +0,0 @@
-<h1>Listing tournaments</h1>
-
-<table>
- <thead>
- <tr>
- <th>Game</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
-
- <tbody>
- <% @tournaments.each do |tournament| %>
- <tr>
- <td><%= tournament.game %></td>
- <td><%= link_to 'Show', tournament %></td>
- <td><%= link_to 'Edit', edit_tournament_path(tournament) %></td>
- <td><%= link_to 'Destroy', tournament, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Tournament', new_tournament_path %>
diff --git a/app/views/tournaments/index.json.jbuilder b/app/views/tournaments/index.json.jbuilder
deleted file mode 100644
index e6f3b49..0000000
--- a/app/views/tournaments/index.json.jbuilder
+++ /dev/null
@@ -1,4 +0,0 @@
-json.array!(@tournaments) do |tournament|
- json.extract! tournament, :id, :game_id
- json.url tournament_url(tournament, format: :json)
-end
diff --git a/app/views/tournaments/new.html.erb b/app/views/tournaments/new.html.erb
deleted file mode 100644
index 2a60539..0000000
--- a/app/views/tournaments/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>New tournament</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', tournaments_path %>
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb
deleted file mode 100644
index 30df788..0000000
--- a/app/views/tournaments/show.html.erb
+++ /dev/null
@@ -1,9 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
- <strong>Game:</strong>
- <%= @tournament.game %>
-</p>
-
-<%= link_to 'Edit', edit_tournament_path(@tournament) %> |
-<%= link_to 'Back', tournaments_path %>
diff --git a/app/views/tournaments/show.json.jbuilder b/app/views/tournaments/show.json.jbuilder
deleted file mode 100644
index 0fe65a6..0000000
--- a/app/views/tournaments/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @tournament, :id, :game_id, :created_at, :updated_at
diff --git a/config/routes.rb b/config/routes.rb
index 149c321..876667f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,18 +1,4 @@
Leaguer::Application.routes.draw do
- resources :games
-
- resources :pms
-
- resources :alerts
-
- resources :teams
-
- resources :matches
-
- resources :tournaments
-
- resources :servers
-
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
diff --git a/db/migrate/20140304015655_create_servers.rb b/db/migrate/20140304015655_create_servers.rb
deleted file mode 100644
index f33241a..0000000
--- a/db/migrate/20140304015655_create_servers.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-class CreateServers < ActiveRecord::Migration
- def change
- create_table :servers do |t|
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015657_create_tournaments.rb b/db/migrate/20140304015657_create_tournaments.rb
deleted file mode 100644
index 36fcf7e..0000000
--- a/db/migrate/20140304015657_create_tournaments.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-class CreateTournaments < ActiveRecord::Migration
- def change
- create_table :tournaments do |t|
- t.references :game, index: true
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015700_create_matches.rb b/db/migrate/20140304015700_create_matches.rb
deleted file mode 100644
index 6c0c157..0000000
--- a/db/migrate/20140304015700_create_matches.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-class CreateMatches < ActiveRecord::Migration
- def change
- create_table :matches do |t|
- t.references :tournament, index: true
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015702_create_teams.rb b/db/migrate/20140304015702_create_teams.rb
deleted file mode 100644
index dd8397d..0000000
--- a/db/migrate/20140304015702_create_teams.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-class CreateTeams < ActiveRecord::Migration
- def change
- create_table :teams do |t|
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015706_create_users.rb b/db/migrate/20140304015706_create_users.rb
deleted file mode 100644
index f0986d4..0000000
--- a/db/migrate/20140304015706_create_users.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-class CreateUsers < ActiveRecord::Migration
- def change
- create_table :users do |t|
- t.string :name
- t.string :email
- t.string :user_name
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015709_create_user_team_pairs.rb b/db/migrate/20140304015709_create_user_team_pairs.rb
deleted file mode 100644
index 2c492ac..0000000
--- a/db/migrate/20140304015709_create_user_team_pairs.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-class CreateUserTeamPairs < ActiveRecord::Migration
- def change
- create_table :user_team_pairs do |t|
- t.references :user, index: true
- t.references :team, index: true
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015711_create_team_match_pairs.rb b/db/migrate/20140304015711_create_team_match_pairs.rb
deleted file mode 100644
index 8fac07e..0000000
--- a/db/migrate/20140304015711_create_team_match_pairs.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-class CreateTeamMatchPairs < ActiveRecord::Migration
- def change
- create_table :team_match_pairs do |t|
- t.references :team, index: true
- t.references :match, index: true
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015713_create_alerts.rb b/db/migrate/20140304015713_create_alerts.rb
deleted file mode 100644
index 68a8e10..0000000
--- a/db/migrate/20140304015713_create_alerts.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-class CreateAlerts < ActiveRecord::Migration
- def change
- create_table :alerts do |t|
- t.references :author, index: true
- t.text :message
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015715_create_pms.rb b/db/migrate/20140304015715_create_pms.rb
deleted file mode 100644
index 93bb5c6..0000000
--- a/db/migrate/20140304015715_create_pms.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-class CreatePms < ActiveRecord::Migration
- def change
- create_table :pms do |t|
- t.references :author, index: true
- t.references :recipient, index: true
- t.text :message
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015718_create_games.rb b/db/migrate/20140304015718_create_games.rb
deleted file mode 100644
index 59d4ef0..0000000
--- a/db/migrate/20140304015718_create_games.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-class CreateGames < ActiveRecord::Migration
- def change
- create_table :games do |t|
- t.text :name
- t.integer :players_per_team
- t.integer :teams_per_match
- t.integer :set_rounds
- t.integer :randomized_teams
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015720_create_game_attributes.rb b/db/migrate/20140304015720_create_game_attributes.rb
deleted file mode 100644
index b63f134..0000000
--- a/db/migrate/20140304015720_create_game_attributes.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-class CreateGameAttributes < ActiveRecord::Migration
- def change
- create_table :game_attributes do |t|
- t.references :game, index: true
- t.text :key
- t.integer :type
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015722_create_server_settings.rb b/db/migrate/20140304015722_create_server_settings.rb
deleted file mode 100644
index dfdd91b..0000000
--- a/db/migrate/20140304015722_create_server_settings.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-class CreateServerSettings < ActiveRecord::Migration
- def change
- create_table :server_settings do |t|
-
- t.timestamps
- end
- end
-end
diff --git a/db/migrate/20140304015729_create_tournament_options.rb b/db/migrate/20140304015729_create_tournament_options.rb
deleted file mode 100644
index d2df22e..0000000
--- a/db/migrate/20140304015729_create_tournament_options.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-class CreateTournamentOptions < ActiveRecord::Migration
- def change
- create_table :tournament_options do |t|
-
- t.timestamps
- end
- end
-end
diff --git a/db/schema.rb b/db/schema.rb
deleted file mode 100644
index 4a44343..0000000
--- a/db/schema.rb
+++ /dev/null
@@ -1,120 +0,0 @@
-# encoding: UTF-8
-# This file is auto-generated from the current state of the database. Instead
-# of editing this file, please use the migrations feature of Active Record to
-# incrementally modify your database, and then regenerate this schema definition.
-#
-# Note that this schema.rb definition is the authoritative source for your
-# database schema. If you need to create the application database on another
-# system, you should be using db:schema:load, not running all the migrations
-# from scratch. The latter is a flawed and unsustainable approach (the more migrations
-# you'll amass, the slower it'll run and the greater likelihood for issues).
-#
-# It's strongly recommended that you check this file into your version control system.
-
-ActiveRecord::Schema.define(version: 20140304015729) do
-
- create_table "alerts", force: true do |t|
- t.integer "author_id"
- t.text "message"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "alerts", ["author_id"], name: "index_alerts_on_author_id"
-
- create_table "game_attributes", force: true do |t|
- t.integer "game_id"
- t.text "key"
- t.integer "type"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "game_attributes", ["game_id"], name: "index_game_attributes_on_game_id"
-
- create_table "games", force: true do |t|
- t.text "name"
- t.integer "players_per_team"
- t.integer "teams_per_match"
- t.integer "set_rounds"
- t.integer "randomized_teams"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- create_table "matches", force: true do |t|
- t.integer "tournament_id"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "matches", ["tournament_id"], name: "index_matches_on_tournament_id"
-
- create_table "pms", force: true do |t|
- t.integer "author_id"
- t.integer "recipient_id"
- t.text "message"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "pms", ["author_id"], name: "index_pms_on_author_id"
- add_index "pms", ["recipient_id"], name: "index_pms_on_recipient_id"
-
- create_table "server_settings", force: true do |t|
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- create_table "servers", force: true do |t|
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- create_table "team_match_pairs", force: true do |t|
- t.integer "team_id"
- t.integer "match_id"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "team_match_pairs", ["match_id"], name: "index_team_match_pairs_on_match_id"
- add_index "team_match_pairs", ["team_id"], name: "index_team_match_pairs_on_team_id"
-
- create_table "teams", force: true do |t|
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- create_table "tournament_options", force: true do |t|
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- create_table "tournaments", force: true do |t|
- t.integer "game_id"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "tournaments", ["game_id"], name: "index_tournaments_on_game_id"
-
- create_table "user_team_pairs", force: true do |t|
- t.integer "user_id"
- t.integer "team_id"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "user_team_pairs", ["team_id"], name: "index_user_team_pairs_on_team_id"
- add_index "user_team_pairs", ["user_id"], name: "index_user_team_pairs_on_user_id"
-
- create_table "users", force: true do |t|
- t.string "name"
- t.string "email"
- t.string "user_name"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
-end
diff --git a/doc/.gitignore b/doc/.gitignore
new file mode 100644
index 0000000..54a1602
--- /dev/null
+++ b/doc/.gitignore
@@ -0,0 +1,9 @@
+/api
+/app
+/guides
+
+*.html
+*.pdf
+*.png
+
+!/stickman.png
diff --git a/docs/DesignDocument-architecture-model2.pptx b/doc/DesignDocument-architecture-model2.pptx
index 1a1a08a..1a1a08a 100644
--- a/docs/DesignDocument-architecture-model2.pptx
+++ b/doc/DesignDocument-architecture-model2.pptx
Binary files differ
diff --git a/docs/DesignDocument-classes.dot b/doc/DesignDocument-classes.dot
index cccc477..cccc477 100644
--- a/docs/DesignDocument-classes.dot
+++ b/doc/DesignDocument-classes.dot
diff --git a/docs/DesignDocument-models.pptx b/doc/DesignDocument-models.pptx
index e689a7c..e689a7c 100644
--- a/docs/DesignDocument-models.pptx
+++ b/doc/DesignDocument-models.pptx
Binary files differ
diff --git a/docs/DesignDocument.md b/doc/DesignDocument.md
index 45f6d5f..45f6d5f 100644
--- a/docs/DesignDocument.md
+++ b/doc/DesignDocument.md
diff --git a/docs/Diagram01.jpg b/doc/Diagram01.jpg
index 0c85216..0c85216 100644
--- a/docs/Diagram01.jpg
+++ b/doc/Diagram01.jpg
Binary files differ
diff --git a/docs/Makefile b/doc/Makefile
index 469b1a2..469b1a2 100644
--- a/docs/Makefile
+++ b/doc/Makefile
diff --git a/docs/ProductBacklog.md b/doc/ProductBacklog.md
index 59b5e11..59b5e11 100644
--- a/docs/ProductBacklog.md
+++ b/doc/ProductBacklog.md
diff --git a/docs/ProjectCharter.md b/doc/ProjectCharter.md
index f88ccd4..f88ccd4 100644
--- a/docs/ProjectCharter.md
+++ b/doc/ProjectCharter.md
diff --git a/docs/ProjectLeaguerWorkloadBreakup.md b/doc/ProjectLeaguerWorkloadBreakup.md
index 99d9c2e..99d9c2e 100644
--- a/docs/ProjectLeaguerWorkloadBreakup.md
+++ b/doc/ProjectLeaguerWorkloadBreakup.md
diff --git a/docs/Sprint1.md b/doc/Sprint1.md
index 03baf5d..03baf5d 100644
--- a/docs/Sprint1.md
+++ b/doc/Sprint1.md
diff --git a/docs/SystemModel.dot b/doc/SystemModel.dot
index ea1836a..ea1836a 100644
--- a/docs/SystemModel.dot
+++ b/doc/SystemModel.dot
diff --git a/docs/stickman.png b/doc/stickman.png
index 00f16fc..00f16fc 100644
--- a/docs/stickman.png
+++ b/doc/stickman.png
Binary files differ
diff --git a/docs/.gitignore b/docs/.gitignore
deleted file mode 100644
index ed193ea..0000000
--- a/docs/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-*.pdf
-*.html
-*.png
-!stickman.png
diff --git a/generate.sh b/generate.sh
index 2bf027a..807b9ef 100755
--- a/generate.sh
+++ b/generate.sh
@@ -28,6 +28,7 @@ bundle exec rails generate model game_attribute game:references key:text type:in
bundle exec rails generate model server_settings $NOTEST
bundle exec rails generate controller search $NOTEST
bundle exec rails generate controller main $NOTEST
+bundle exec rails generate controller static $NOTEST
#for the tournament controller to generate options
bundle exec rails generate model tournament_option $NOTEST
diff --git a/spec/controllers/alerts_controller_spec.rb b/spec/controllers/alerts_controller_spec.rb
deleted file mode 100644
index 82b031b..0000000
--- a/spec/controllers/alerts_controller_spec.rb
+++ /dev/null
@@ -1,160 +0,0 @@
-require 'spec_helper'
-
-# This spec was generated by rspec-rails when you ran the scaffold generator.
-# It demonstrates how one might use RSpec to specify the controller code that
-# was generated by Rails when you ran the scaffold generator.
-#
-# It assumes that the implementation code is generated by the rails scaffold
-# generator. If you are using any extension libraries to generate different
-# controller code, this generated spec may or may not pass.
-#
-# It only uses APIs available in rails and/or rspec-rails. There are a number
-# of tools you can use to make these specs even more expressive, but we're
-# sticking to rails and rspec-rails APIs to keep things simple and stable.
-#
-# Compared to earlier versions of this generator, there is very limited use of
-# stubs and message expectations in this spec. Stubs are only used when there
-# is no simpler way to get a handle on the object needed for the example.
-# Message expectations are only used when there is no simpler way to specify
-# that an instance is receiving a specific message.
-
-describe AlertsController do
-
- # This should return the minimal set of attributes required to create a valid
- # Alert. As you add validations to Alert, be sure to
- # adjust the attributes here as well.
- let(:valid_attributes) { { "author" => "" } }
-
- # This should return the minimal set of values that should be in the session
- # in order to pass any filters (e.g. authentication) defined in
- # AlertsController. Be sure to keep this updated too.
- let(:valid_session) { {} }
-
- describe "GET index" do
- it "assigns all alerts as @alerts" do
- alert = Alert.create! valid_attributes
- get :index, {}, valid_session
- assigns(:alerts).should eq([alert])
- end
- end
-
- describe "GET show" do
- it "assigns the requested alert as @alert" do
- alert = Alert.create! valid_attributes
- get :show, {:id => alert.to_param}, valid_session
- assigns(:alert).should eq(alert)
- end
- end
-
- describe "GET new" do
- it "assigns a new alert as @alert" do
- get :new, {}, valid_session
- assigns(:alert).should be_a_new(Alert)
- end
- end
-
- describe "GET edit" do
- it "assigns the requested alert as @alert" do
- alert = Alert.create! valid_attributes
- get :edit, {:id => alert.to_param}, valid_session
- assigns(:alert).should eq(alert)
- end
- end
-
- describe "POST create" do
- describe "with valid params" do
- it "creates a new Alert" do
- expect {
- post :create, {:alert => valid_attributes}, valid_session
- }.to change(Alert, :count).by(1)
- end
-
- it "assigns a newly created alert as @alert" do
- post :create, {:alert => valid_attributes}, valid_session
- assigns(:alert).should be_a(Alert)
- assigns(:alert).should be_persisted
- end
-
- it "redirects to the created alert" do
- post :create, {:alert => valid_attributes}, valid_session
- response.should redirect_to(Alert.last)
- end
- end
-
- describe "with invalid params" do
- it "assigns a newly created but unsaved alert as @alert" do
- # Trigger the behavior that occurs when invalid params are submitted
- Alert.any_instance.stub(:save).and_return(false)
- post :create, {:alert => { "author" => "invalid value" }}, valid_session
- assigns(:alert).should be_a_new(Alert)
- end
-
- it "re-renders the 'new' template" do
- # Trigger the behavior that occurs when invalid params are submitted
- Alert.any_instance.stub(:save).and_return(false)
- post :create, {:alert => { "author" => "invalid value" }}, valid_session
- response.should render_template("new")
- end
- end
- end
-
- describe "PUT update" do
- describe "with valid params" do
- it "updates the requested alert" do
- alert = Alert.create! valid_attributes
- # Assuming there are no other alerts in the database, this
- # specifies that the Alert created on the previous line
- # receives the :update_attributes message with whatever params are
- # submitted in the request.
- Alert.any_instance.should_receive(:update).with({ "author" => "" })
- put :update, {:id => alert.to_param, :alert => { "author" => "" }}, valid_session
- end
-
- it "assigns the requested alert as @alert" do
- alert = Alert.create! valid_attributes
- put :update, {:id => alert.to_param, :alert => valid_attributes}, valid_session
- assigns(:alert).should eq(alert)
- end
-
- it "redirects to the alert" do
- alert = Alert.create! valid_attributes
- put :update, {:id => alert.to_param, :alert => valid_attributes}, valid_session
- response.should redirect_to(alert)
- end
- end
-
- describe "with invalid params" do
- it "assigns the alert as @alert" do
- alert = Alert.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Alert.any_instance.stub(:save).and_return(false)
- put :update, {:id => alert.to_param, :alert => { "author" => "invalid value" }}, valid_session
- assigns(:alert).should eq(alert)
- end
-
- it "re-renders the 'edit' template" do
- alert = Alert.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Alert.any_instance.stub(:save).and_return(false)
- put :update, {:id => alert.to_param, :alert => { "author" => "invalid value" }}, valid_session
- response.should render_template("edit")
- end
- end
- end
-
- describe "DELETE destroy" do
- it "destroys the requested alert" do
- alert = Alert.create! valid_attributes
- expect {
- delete :destroy, {:id => alert.to_param}, valid_session
- }.to change(Alert, :count).by(-1)
- end
-
- it "redirects to the alerts list" do
- alert = Alert.create! valid_attributes
- delete :destroy, {:id => alert.to_param}, valid_session
- response.should redirect_to(alerts_url)
- end
- end
-
-end
diff --git a/spec/controllers/games_controller_spec.rb b/spec/controllers/games_controller_spec.rb
deleted file mode 100644
index ab8b6b2..0000000
--- a/spec/controllers/games_controller_spec.rb
+++ /dev/null
@@ -1,160 +0,0 @@
-require 'spec_helper'
-
-# This spec was generated by rspec-rails when you ran the scaffold generator.
-# It demonstrates how one might use RSpec to specify the controller code that
-# was generated by Rails when you ran the scaffold generator.
-#
-# It assumes that the implementation code is generated by the rails scaffold
-# generator. If you are using any extension libraries to generate different
-# controller code, this generated spec may or may not pass.
-#
-# It only uses APIs available in rails and/or rspec-rails. There are a number
-# of tools you can use to make these specs even more expressive, but we're
-# sticking to rails and rspec-rails APIs to keep things simple and stable.
-#
-# Compared to earlier versions of this generator, there is very limited use of
-# stubs and message expectations in this spec. Stubs are only used when there
-# is no simpler way to get a handle on the object needed for the example.
-# Message expectations are only used when there is no simpler way to specify
-# that an instance is receiving a specific message.
-
-describe GamesController do
-
- # This should return the minimal set of attributes required to create a valid
- # Game. As you add validations to Game, be sure to
- # adjust the attributes here as well.
- let(:valid_attributes) { { "name" => "MyText" } }
-
- # This should return the minimal set of values that should be in the session
- # in order to pass any filters (e.g. authentication) defined in
- # GamesController. Be sure to keep this updated too.
- let(:valid_session) { {} }
-
- describe "GET index" do
- it "assigns all games as @games" do
- game = Game.create! valid_attributes
- get :index, {}, valid_session
- assigns(:games).should eq([game])
- end
- end
-
- describe "GET show" do
- it "assigns the requested game as @game" do
- game = Game.create! valid_attributes
- get :show, {:id => game.to_param}, valid_session
- assigns(:game).should eq(game)
- end
- end
-
- describe "GET new" do
- it "assigns a new game as @game" do
- get :new, {}, valid_session
- assigns(:game).should be_a_new(Game)
- end
- end
-
- describe "GET edit" do
- it "assigns the requested game as @game" do
- game = Game.create! valid_attributes
- get :edit, {:id => game.to_param}, valid_session
- assigns(:game).should eq(game)
- end
- end
-
- describe "POST create" do
- describe "with valid params" do
- it "creates a new Game" do
- expect {
- post :create, {:game => valid_attributes}, valid_session
- }.to change(Game, :count).by(1)
- end
-
- it "assigns a newly created game as @game" do
- post :create, {:game => valid_attributes}, valid_session
- assigns(:game).should be_a(Game)
- assigns(:game).should be_persisted
- end
-
- it "redirects to the created game" do
- post :create, {:game => valid_attributes}, valid_session
- response.should redirect_to(Game.last)
- end
- end
-
- describe "with invalid params" do
- it "assigns a newly created but unsaved game as @game" do
- # Trigger the behavior that occurs when invalid params are submitted
- Game.any_instance.stub(:save).and_return(false)
- post :create, {:game => { "name" => "invalid value" }}, valid_session
- assigns(:game).should be_a_new(Game)
- end
-
- it "re-renders the 'new' template" do
- # Trigger the behavior that occurs when invalid params are submitted
- Game.any_instance.stub(:save).and_return(false)
- post :create, {:game => { "name" => "invalid value" }}, valid_session
- response.should render_template("new")
- end
- end
- end
-
- describe "PUT update" do
- describe "with valid params" do
- it "updates the requested game" do
- game = Game.create! valid_attributes
- # Assuming there are no other games in the database, this
- # specifies that the Game created on the previous line
- # receives the :update_attributes message with whatever params are
- # submitted in the request.
- Game.any_instance.should_receive(:update).with({ "name" => "MyText" })
- put :update, {:id => game.to_param, :game => { "name" => "MyText" }}, valid_session
- end
-
- it "assigns the requested game as @game" do
- game = Game.create! valid_attributes
- put :update, {:id => game.to_param, :game => valid_attributes}, valid_session
- assigns(:game).should eq(game)
- end
-
- it "redirects to the game" do
- game = Game.create! valid_attributes
- put :update, {:id => game.to_param, :game => valid_attributes}, valid_session
- response.should redirect_to(game)
- end
- end
-
- describe "with invalid params" do
- it "assigns the game as @game" do
- game = Game.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Game.any_instance.stub(:save).and_return(false)
- put :update, {:id => game.to_param, :game => { "name" => "invalid value" }}, valid_session
- assigns(:game).should eq(game)
- end
-
- it "re-renders the 'edit' template" do
- game = Game.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Game.any_instance.stub(:save).and_return(false)
- put :update, {:id => game.to_param, :game => { "name" => "invalid value" }}, valid_session
- response.should render_template("edit")
- end
- end
- end
-
- describe "DELETE destroy" do
- it "destroys the requested game" do
- game = Game.create! valid_attributes
- expect {
- delete :destroy, {:id => game.to_param}, valid_session
- }.to change(Game, :count).by(-1)
- end
-
- it "redirects to the games list" do
- game = Game.create! valid_attributes
- delete :destroy, {:id => game.to_param}, valid_session
- response.should redirect_to(games_url)
- end
- end
-
-end
diff --git a/spec/controllers/main_controller_spec.rb b/spec/controllers/main_controller_spec.rb
deleted file mode 100644
index 247e21d..0000000
--- a/spec/controllers/main_controller_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe MainController do
-
-end
diff --git a/spec/controllers/matches_controller_spec.rb b/spec/controllers/matches_controller_spec.rb
deleted file mode 100644
index 1f7adf8..0000000
--- a/spec/controllers/matches_controller_spec.rb
+++ /dev/null
@@ -1,160 +0,0 @@
-require 'spec_helper'
-
-# This spec was generated by rspec-rails when you ran the scaffold generator.
-# It demonstrates how one might use RSpec to specify the controller code that
-# was generated by Rails when you ran the scaffold generator.
-#
-# It assumes that the implementation code is generated by the rails scaffold
-# generator. If you are using any extension libraries to generate different
-# controller code, this generated spec may or may not pass.
-#
-# It only uses APIs available in rails and/or rspec-rails. There are a number
-# of tools you can use to make these specs even more expressive, but we're
-# sticking to rails and rspec-rails APIs to keep things simple and stable.
-#
-# Compared to earlier versions of this generator, there is very limited use of
-# stubs and message expectations in this spec. Stubs are only used when there
-# is no simpler way to get a handle on the object needed for the example.
-# Message expectations are only used when there is no simpler way to specify
-# that an instance is receiving a specific message.
-
-describe MatchesController do
-
- # This should return the minimal set of attributes required to create a valid
- # Match. As you add validations to Match, be sure to
- # adjust the attributes here as well.
- let(:valid_attributes) { { "tournament" => "" } }
-
- # This should return the minimal set of values that should be in the session
- # in order to pass any filters (e.g. authentication) defined in
- # MatchesController. Be sure to keep this updated too.
- let(:valid_session) { {} }
-
- describe "GET index" do
- it "assigns all matches as @matches" do
- match = Match.create! valid_attributes
- get :index, {}, valid_session
- assigns(:matches).should eq([match])
- end
- end
-
- describe "GET show" do
- it "assigns the requested match as @match" do
- match = Match.create! valid_attributes
- get :show, {:id => match.to_param}, valid_session
- assigns(:match).should eq(match)
- end
- end
-
- describe "GET new" do
- it "assigns a new match as @match" do
- get :new, {}, valid_session
- assigns(:match).should be_a_new(Match)
- end
- end
-
- describe "GET edit" do
- it "assigns the requested match as @match" do
- match = Match.create! valid_attributes
- get :edit, {:id => match.to_param}, valid_session
- assigns(:match).should eq(match)
- end
- end
-
- describe "POST create" do
- describe "with valid params" do
- it "creates a new Match" do
- expect {
- post :create, {:match => valid_attributes}, valid_session
- }.to change(Match, :count).by(1)
- end
-
- it "assigns a newly created match as @match" do
- post :create, {:match => valid_attributes}, valid_session
- assigns(:match).should be_a(Match)
- assigns(:match).should be_persisted
- end
-
- it "redirects to the created match" do
- post :create, {:match => valid_attributes}, valid_session
- response.should redirect_to(Match.last)
- end
- end
-
- describe "with invalid params" do
- it "assigns a newly created but unsaved match as @match" do
- # Trigger the behavior that occurs when invalid params are submitted
- Match.any_instance.stub(:save).and_return(false)
- post :create, {:match => { "tournament" => "invalid value" }}, valid_session
- assigns(:match).should be_a_new(Match)
- end
-
- it "re-renders the 'new' template" do
- # Trigger the behavior that occurs when invalid params are submitted
- Match.any_instance.stub(:save).and_return(false)
- post :create, {:match => { "tournament" => "invalid value" }}, valid_session
- response.should render_template("new")
- end
- end
- end
-
- describe "PUT update" do
- describe "with valid params" do
- it "updates the requested match" do
- match = Match.create! valid_attributes
- # Assuming there are no other matches in the database, this
- # specifies that the Match created on the previous line
- # receives the :update_attributes message with whatever params are
- # submitted in the request.
- Match.any_instance.should_receive(:update).with({ "tournament" => "" })
- put :update, {:id => match.to_param, :match => { "tournament" => "" }}, valid_session
- end
-
- it "assigns the requested match as @match" do
- match = Match.create! valid_attributes
- put :update, {:id => match.to_param, :match => valid_attributes}, valid_session
- assigns(:match).should eq(match)
- end
-
- it "redirects to the match" do
- match = Match.create! valid_attributes
- put :update, {:id => match.to_param, :match => valid_attributes}, valid_session
- response.should redirect_to(match)
- end
- end
-
- describe "with invalid params" do
- it "assigns the match as @match" do
- match = Match.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Match.any_instance.stub(:save).and_return(false)
- put :update, {:id => match.to_param, :match => { "tournament" => "invalid value" }}, valid_session
- assigns(:match).should eq(match)
- end
-
- it "re-renders the 'edit' template" do
- match = Match.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Match.any_instance.stub(:save).and_return(false)
- put :update, {:id => match.to_param, :match => { "tournament" => "invalid value" }}, valid_session
- response.should render_template("edit")
- end
- end
- end
-
- describe "DELETE destroy" do
- it "destroys the requested match" do
- match = Match.create! valid_attributes
- expect {
- delete :destroy, {:id => match.to_param}, valid_session
- }.to change(Match, :count).by(-1)
- end
-
- it "redirects to the matches list" do
- match = Match.create! valid_attributes
- delete :destroy, {:id => match.to_param}, valid_session
- response.should redirect_to(matches_url)
- end
- end
-
-end
diff --git a/spec/controllers/pms_controller_spec.rb b/spec/controllers/pms_controller_spec.rb
deleted file mode 100644
index f0822db..0000000
--- a/spec/controllers/pms_controller_spec.rb
+++ /dev/null
@@ -1,160 +0,0 @@
-require 'spec_helper'
-
-# This spec was generated by rspec-rails when you ran the scaffold generator.
-# It demonstrates how one might use RSpec to specify the controller code that
-# was generated by Rails when you ran the scaffold generator.
-#
-# It assumes that the implementation code is generated by the rails scaffold
-# generator. If you are using any extension libraries to generate different
-# controller code, this generated spec may or may not pass.
-#
-# It only uses APIs available in rails and/or rspec-rails. There are a number
-# of tools you can use to make these specs even more expressive, but we're
-# sticking to rails and rspec-rails APIs to keep things simple and stable.
-#
-# Compared to earlier versions of this generator, there is very limited use of
-# stubs and message expectations in this spec. Stubs are only used when there
-# is no simpler way to get a handle on the object needed for the example.
-# Message expectations are only used when there is no simpler way to specify
-# that an instance is receiving a specific message.
-
-describe PmsController do
-
- # This should return the minimal set of attributes required to create a valid
- # Pm. As you add validations to Pm, be sure to
- # adjust the attributes here as well.
- let(:valid_attributes) { { "author" => "" } }
-
- # This should return the minimal set of values that should be in the session
- # in order to pass any filters (e.g. authentication) defined in
- # PmsController. Be sure to keep this updated too.
- let(:valid_session) { {} }
-
- describe "GET index" do
- it "assigns all pms as @pms" do
- pm = Pm.create! valid_attributes
- get :index, {}, valid_session
- assigns(:pms).should eq([pm])
- end
- end
-
- describe "GET show" do
- it "assigns the requested pm as @pm" do
- pm = Pm.create! valid_attributes
- get :show, {:id => pm.to_param}, valid_session
- assigns(:pm).should eq(pm)
- end
- end
-
- describe "GET new" do
- it "assigns a new pm as @pm" do
- get :new, {}, valid_session
- assigns(:pm).should be_a_new(Pm)
- end
- end
-
- describe "GET edit" do
- it "assigns the requested pm as @pm" do
- pm = Pm.create! valid_attributes
- get :edit, {:id => pm.to_param}, valid_session
- assigns(:pm).should eq(pm)
- end
- end
-
- describe "POST create" do
- describe "with valid params" do
- it "creates a new Pm" do
- expect {
- post :create, {:pm => valid_attributes}, valid_session
- }.to change(Pm, :count).by(1)
- end
-
- it "assigns a newly created pm as @pm" do
- post :create, {:pm => valid_attributes}, valid_session
- assigns(:pm).should be_a(Pm)
- assigns(:pm).should be_persisted
- end
-
- it "redirects to the created pm" do
- post :create, {:pm => valid_attributes}, valid_session
- response.should redirect_to(Pm.last)
- end
- end
-
- describe "with invalid params" do
- it "assigns a newly created but unsaved pm as @pm" do
- # Trigger the behavior that occurs when invalid params are submitted
- Pm.any_instance.stub(:save).and_return(false)
- post :create, {:pm => { "author" => "invalid value" }}, valid_session
- assigns(:pm).should be_a_new(Pm)
- end
-
- it "re-renders the 'new' template" do
- # Trigger the behavior that occurs when invalid params are submitted
- Pm.any_instance.stub(:save).and_return(false)
- post :create, {:pm => { "author" => "invalid value" }}, valid_session
- response.should render_template("new")
- end
- end
- end
-
- describe "PUT update" do
- describe "with valid params" do
- it "updates the requested pm" do
- pm = Pm.create! valid_attributes
- # Assuming there are no other pms in the database, this
- # specifies that the Pm created on the previous line
- # receives the :update_attributes message with whatever params are
- # submitted in the request.
- Pm.any_instance.should_receive(:update).with({ "author" => "" })
- put :update, {:id => pm.to_param, :pm => { "author" => "" }}, valid_session
- end
-
- it "assigns the requested pm as @pm" do
- pm = Pm.create! valid_attributes
- put :update, {:id => pm.to_param, :pm => valid_attributes}, valid_session
- assigns(:pm).should eq(pm)
- end
-
- it "redirects to the pm" do
- pm = Pm.create! valid_attributes
- put :update, {:id => pm.to_param, :pm => valid_attributes}, valid_session
- response.should redirect_to(pm)
- end
- end
-
- describe "with invalid params" do
- it "assigns the pm as @pm" do
- pm = Pm.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Pm.any_instance.stub(:save).and_return(false)
- put :update, {:id => pm.to_param, :pm => { "author" => "invalid value" }}, valid_session
- assigns(:pm).should eq(pm)
- end
-
- it "re-renders the 'edit' template" do
- pm = Pm.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Pm.any_instance.stub(:save).and_return(false)
- put :update, {:id => pm.to_param, :pm => { "author" => "invalid value" }}, valid_session
- response.should render_template("edit")
- end
- end
- end
-
- describe "DELETE destroy" do
- it "destroys the requested pm" do
- pm = Pm.create! valid_attributes
- expect {
- delete :destroy, {:id => pm.to_param}, valid_session
- }.to change(Pm, :count).by(-1)
- end
-
- it "redirects to the pms list" do
- pm = Pm.create! valid_attributes
- delete :destroy, {:id => pm.to_param}, valid_session
- response.should redirect_to(pms_url)
- end
- end
-
-end
diff --git a/spec/controllers/search_controller_spec.rb b/spec/controllers/search_controller_spec.rb
deleted file mode 100644
index 73248fb..0000000
--- a/spec/controllers/search_controller_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe SearchController do
-
-end
diff --git a/spec/controllers/servers_controller_spec.rb b/spec/controllers/servers_controller_spec.rb
deleted file mode 100644
index c6f4fa6..0000000
--- a/spec/controllers/servers_controller_spec.rb
+++ /dev/null
@@ -1,160 +0,0 @@
-require 'spec_helper'
-
-# This spec was generated by rspec-rails when you ran the scaffold generator.
-# It demonstrates how one might use RSpec to specify the controller code that
-# was generated by Rails when you ran the scaffold generator.
-#
-# It assumes that the implementation code is generated by the rails scaffold
-# generator. If you are using any extension libraries to generate different
-# controller code, this generated spec may or may not pass.
-#
-# It only uses APIs available in rails and/or rspec-rails. There are a number
-# of tools you can use to make these specs even more expressive, but we're
-# sticking to rails and rspec-rails APIs to keep things simple and stable.
-#
-# Compared to earlier versions of this generator, there is very limited use of
-# stubs and message expectations in this spec. Stubs are only used when there
-# is no simpler way to get a handle on the object needed for the example.
-# Message expectations are only used when there is no simpler way to specify
-# that an instance is receiving a specific message.
-
-describe ServersController do
-
- # This should return the minimal set of attributes required to create a valid
- # Server. As you add validations to Server, be sure to
- # adjust the attributes here as well.
- let(:valid_attributes) { { } }
-
- # This should return the minimal set of values that should be in the session
- # in order to pass any filters (e.g. authentication) defined in
- # ServersController. Be sure to keep this updated too.
- let(:valid_session) { {} }
-
- describe "GET index" do
- it "assigns all servers as @servers" do
- server = Server.create! valid_attributes
- get :index, {}, valid_session
- assigns(:servers).should eq([server])
- end
- end
-
- describe "GET show" do
- it "assigns the requested server as @server" do
- server = Server.create! valid_attributes
- get :show, {:id => server.to_param}, valid_session
- assigns(:server).should eq(server)
- end
- end
-
- describe "GET new" do
- it "assigns a new server as @server" do
- get :new, {}, valid_session
- assigns(:server).should be_a_new(Server)
- end
- end
-
- describe "GET edit" do
- it "assigns the requested server as @server" do
- server = Server.create! valid_attributes
- get :edit, {:id => server.to_param}, valid_session
- assigns(:server).should eq(server)
- end
- end
-
- describe "POST create" do
- describe "with valid params" do
- it "creates a new Server" do
- expect {
- post :create, {:server => valid_attributes}, valid_session
- }.to change(Server, :count).by(1)
- end
-
- it "assigns a newly created server as @server" do
- post :create, {:server => valid_attributes}, valid_session
- assigns(:server).should be_a(Server)
- assigns(:server).should be_persisted
- end
-
- it "redirects to the created server" do
- post :create, {:server => valid_attributes}, valid_session
- response.should redirect_to(Server.last)
- end
- end
-
- describe "with invalid params" do
- it "assigns a newly created but unsaved server as @server" do
- # Trigger the behavior that occurs when invalid params are submitted
- Server.any_instance.stub(:save).and_return(false)
- post :create, {:server => { }}, valid_session
- assigns(:server).should be_a_new(Server)
- end
-
- it "re-renders the 'new' template" do
- # Trigger the behavior that occurs when invalid params are submitted
- Server.any_instance.stub(:save).and_return(false)
- post :create, {:server => { }}, valid_session
- response.should render_template("new")
- end
- end
- end
-
- describe "PUT update" do
- describe "with valid params" do
- it "updates the requested server" do
- server = Server.create! valid_attributes
- # Assuming there are no other servers in the database, this
- # specifies that the Server created on the previous line
- # receives the :update_attributes message with whatever params are
- # submitted in the request.
- Server.any_instance.should_receive(:update).with({ "these" => "params" })
- put :update, {:id => server.to_param, :server => { "these" => "params" }}, valid_session
- end
-
- it "assigns the requested server as @server" do
- server = Server.create! valid_attributes
- put :update, {:id => server.to_param, :server => valid_attributes}, valid_session
- assigns(:server).should eq(server)
- end
-
- it "redirects to the server" do
- server = Server.create! valid_attributes
- put :update, {:id => server.to_param, :server => valid_attributes}, valid_session
- response.should redirect_to(server)
- end
- end
-
- describe "with invalid params" do
- it "assigns the server as @server" do
- server = Server.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Server.any_instance.stub(:save).and_return(false)
- put :update, {:id => server.to_param, :server => { }}, valid_session
- assigns(:server).should eq(server)
- end
-
- it "re-renders the 'edit' template" do
- server = Server.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Server.any_instance.stub(:save).and_return(false)
- put :update, {:id => server.to_param, :server => { }}, valid_session
- response.should render_template("edit")
- end
- end
- end
-
- describe "DELETE destroy" do
- it "destroys the requested server" do
- server = Server.create! valid_attributes
- expect {
- delete :destroy, {:id => server.to_param}, valid_session
- }.to change(Server, :count).by(-1)
- end
-
- it "redirects to the servers list" do
- server = Server.create! valid_attributes
- delete :destroy, {:id => server.to_param}, valid_session
- response.should redirect_to(servers_url)
- end
- end
-
-end
diff --git a/spec/controllers/teams_controller_spec.rb b/spec/controllers/teams_controller_spec.rb
deleted file mode 100644
index 9c74d89..0000000
--- a/spec/controllers/teams_controller_spec.rb
+++ /dev/null
@@ -1,160 +0,0 @@
-require 'spec_helper'
-
-# This spec was generated by rspec-rails when you ran the scaffold generator.
-# It demonstrates how one might use RSpec to specify the controller code that
-# was generated by Rails when you ran the scaffold generator.
-#
-# It assumes that the implementation code is generated by the rails scaffold
-# generator. If you are using any extension libraries to generate different
-# controller code, this generated spec may or may not pass.
-#
-# It only uses APIs available in rails and/or rspec-rails. There are a number
-# of tools you can use to make these specs even more expressive, but we're
-# sticking to rails and rspec-rails APIs to keep things simple and stable.
-#
-# Compared to earlier versions of this generator, there is very limited use of
-# stubs and message expectations in this spec. Stubs are only used when there
-# is no simpler way to get a handle on the object needed for the example.
-# Message expectations are only used when there is no simpler way to specify
-# that an instance is receiving a specific message.
-
-describe TeamsController do
-
- # This should return the minimal set of attributes required to create a valid
- # Team. As you add validations to Team, be sure to
- # adjust the attributes here as well.
- let(:valid_attributes) { { } }
-
- # This should return the minimal set of values that should be in the session
- # in order to pass any filters (e.g. authentication) defined in
- # TeamsController. Be sure to keep this updated too.
- let(:valid_session) { {} }
-
- describe "GET index" do
- it "assigns all teams as @teams" do
- team = Team.create! valid_attributes
- get :index, {}, valid_session
- assigns(:teams).should eq([team])
- end
- end
-
- describe "GET show" do
- it "assigns the requested team as @team" do
- team = Team.create! valid_attributes
- get :show, {:id => team.to_param}, valid_session
- assigns(:team).should eq(team)
- end
- end
-
- describe "GET new" do
- it "assigns a new team as @team" do
- get :new, {}, valid_session
- assigns(:team).should be_a_new(Team)
- end
- end
-
- describe "GET edit" do
- it "assigns the requested team as @team" do
- team = Team.create! valid_attributes
- get :edit, {:id => team.to_param}, valid_session
- assigns(:team).should eq(team)
- end
- end
-
- describe "POST create" do
- describe "with valid params" do
- it "creates a new Team" do
- expect {
- post :create, {:team => valid_attributes}, valid_session
- }.to change(Team, :count).by(1)
- end
-
- it "assigns a newly created team as @team" do
- post :create, {:team => valid_attributes}, valid_session
- assigns(:team).should be_a(Team)
- assigns(:team).should be_persisted
- end
-
- it "redirects to the created team" do
- post :create, {:team => valid_attributes}, valid_session
- response.should redirect_to(Team.last)
- end
- end
-
- describe "with invalid params" do
- it "assigns a newly created but unsaved team as @team" do
- # Trigger the behavior that occurs when invalid params are submitted
- Team.any_instance.stub(:save).and_return(false)
- post :create, {:team => { }}, valid_session
- assigns(:team).should be_a_new(Team)
- end
-
- it "re-renders the 'new' template" do
- # Trigger the behavior that occurs when invalid params are submitted
- Team.any_instance.stub(:save).and_return(false)
- post :create, {:team => { }}, valid_session
- response.should render_template("new")
- end
- end
- end
-
- describe "PUT update" do
- describe "with valid params" do
- it "updates the requested team" do
- team = Team.create! valid_attributes
- # Assuming there are no other teams in the database, this
- # specifies that the Team created on the previous line
- # receives the :update_attributes message with whatever params are
- # submitted in the request.
- Team.any_instance.should_receive(:update).with({ "these" => "params" })
- put :update, {:id => team.to_param, :team => { "these" => "params" }}, valid_session
- end
-
- it "assigns the requested team as @team" do
- team = Team.create! valid_attributes
- put :update, {:id => team.to_param, :team => valid_attributes}, valid_session
- assigns(:team).should eq(team)
- end
-
- it "redirects to the team" do
- team = Team.create! valid_attributes
- put :update, {:id => team.to_param, :team => valid_attributes}, valid_session
- response.should redirect_to(team)
- end
- end
-
- describe "with invalid params" do
- it "assigns the team as @team" do
- team = Team.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Team.any_instance.stub(:save).and_return(false)
- put :update, {:id => team.to_param, :team => { }}, valid_session
- assigns(:team).should eq(team)
- end
-
- it "re-renders the 'edit' template" do
- team = Team.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Team.any_instance.stub(:save).and_return(false)
- put :update, {:id => team.to_param, :team => { }}, valid_session
- response.should render_template("edit")
- end
- end
- end
-
- describe "DELETE destroy" do
- it "destroys the requested team" do
- team = Team.create! valid_attributes
- expect {
- delete :destroy, {:id => team.to_param}, valid_session
- }.to change(Team, :count).by(-1)
- end
-
- it "redirects to the teams list" do
- team = Team.create! valid_attributes
- delete :destroy, {:id => team.to_param}, valid_session
- response.should redirect_to(teams_url)
- end
- end
-
-end
diff --git a/spec/controllers/tournaments_controller_spec.rb b/spec/controllers/tournaments_controller_spec.rb
deleted file mode 100644
index f7b6e19..0000000
--- a/spec/controllers/tournaments_controller_spec.rb
+++ /dev/null
@@ -1,160 +0,0 @@
-require 'spec_helper'
-
-# This spec was generated by rspec-rails when you ran the scaffold generator.
-# It demonstrates how one might use RSpec to specify the controller code that
-# was generated by Rails when you ran the scaffold generator.
-#
-# It assumes that the implementation code is generated by the rails scaffold
-# generator. If you are using any extension libraries to generate different
-# controller code, this generated spec may or may not pass.
-#
-# It only uses APIs available in rails and/or rspec-rails. There are a number
-# of tools you can use to make these specs even more expressive, but we're
-# sticking to rails and rspec-rails APIs to keep things simple and stable.
-#
-# Compared to earlier versions of this generator, there is very limited use of
-# stubs and message expectations in this spec. Stubs are only used when there
-# is no simpler way to get a handle on the object needed for the example.
-# Message expectations are only used when there is no simpler way to specify
-# that an instance is receiving a specific message.
-
-describe TournamentsController do
-
- # This should return the minimal set of attributes required to create a valid
- # Tournament. As you add validations to Tournament, be sure to
- # adjust the attributes here as well.
- let(:valid_attributes) { { "game" => "" } }
-
- # This should return the minimal set of values that should be in the session
- # in order to pass any filters (e.g. authentication) defined in
- # TournamentsController. Be sure to keep this updated too.
- let(:valid_session) { {} }
-
- describe "GET index" do
- it "assigns all tournaments as @tournaments" do
- tournament = Tournament.create! valid_attributes
- get :index, {}, valid_session
- assigns(:tournaments).should eq([tournament])
- end
- end
-
- describe "GET show" do
- it "assigns the requested tournament as @tournament" do
- tournament = Tournament.create! valid_attributes
- get :show, {:id => tournament.to_param}, valid_session
- assigns(:tournament).should eq(tournament)
- end
- end
-
- describe "GET new" do
- it "assigns a new tournament as @tournament" do
- get :new, {}, valid_session
- assigns(:tournament).should be_a_new(Tournament)
- end
- end
-
- describe "GET edit" do
- it "assigns the requested tournament as @tournament" do
- tournament = Tournament.create! valid_attributes
- get :edit, {:id => tournament.to_param}, valid_session
- assigns(:tournament).should eq(tournament)
- end
- end
-
- describe "POST create" do
- describe "with valid params" do
- it "creates a new Tournament" do
- expect {
- post :create, {:tournament => valid_attributes}, valid_session
- }.to change(Tournament, :count).by(1)
- end
-
- it "assigns a newly created tournament as @tournament" do
- post :create, {:tournament => valid_attributes}, valid_session
- assigns(:tournament).should be_a(Tournament)
- assigns(:tournament).should be_persisted
- end
-
- it "redirects to the created tournament" do
- post :create, {:tournament => valid_attributes}, valid_session
- response.should redirect_to(Tournament.last)
- end
- end
-
- describe "with invalid params" do
- it "assigns a newly created but unsaved tournament as @tournament" do
- # Trigger the behavior that occurs when invalid params are submitted
- Tournament.any_instance.stub(:save).and_return(false)
- post :create, {:tournament => { "game" => "invalid value" }}, valid_session
- assigns(:tournament).should be_a_new(Tournament)
- end
-
- it "re-renders the 'new' template" do
- # Trigger the behavior that occurs when invalid params are submitted
- Tournament.any_instance.stub(:save).and_return(false)
- post :create, {:tournament => { "game" => "invalid value" }}, valid_session
- response.should render_template("new")
- end
- end
- end
-
- describe "PUT update" do
- describe "with valid params" do
- it "updates the requested tournament" do
- tournament = Tournament.create! valid_attributes
- # Assuming there are no other tournaments in the database, this
- # specifies that the Tournament created on the previous line
- # receives the :update_attributes message with whatever params are
- # submitted in the request.
- Tournament.any_instance.should_receive(:update).with({ "game" => "" })
- put :update, {:id => tournament.to_param, :tournament => { "game" => "" }}, valid_session
- end
-
- it "assigns the requested tournament as @tournament" do
- tournament = Tournament.create! valid_attributes
- put :update, {:id => tournament.to_param, :tournament => valid_attributes}, valid_session
- assigns(:tournament).should eq(tournament)
- end
-
- it "redirects to the tournament" do
- tournament = Tournament.create! valid_attributes
- put :update, {:id => tournament.to_param, :tournament => valid_attributes}, valid_session
- response.should redirect_to(tournament)
- end
- end
-
- describe "with invalid params" do
- it "assigns the tournament as @tournament" do
- tournament = Tournament.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Tournament.any_instance.stub(:save).and_return(false)
- put :update, {:id => tournament.to_param, :tournament => { "game" => "invalid value" }}, valid_session
- assigns(:tournament).should eq(tournament)
- end
-
- it "re-renders the 'edit' template" do
- tournament = Tournament.create! valid_attributes
- # Trigger the behavior that occurs when invalid params are submitted
- Tournament.any_instance.stub(:save).and_return(false)
- put :update, {:id => tournament.to_param, :tournament => { "game" => "invalid value" }}, valid_session
- response.should render_template("edit")
- end
- end
- end
-
- describe "DELETE destroy" do
- it "destroys the requested tournament" do
- tournament = Tournament.create! valid_attributes
- expect {
- delete :destroy, {:id => tournament.to_param}, valid_session
- }.to change(Tournament, :count).by(-1)
- end
-
- it "redirects to the tournaments list" do
- tournament = Tournament.create! valid_attributes
- delete :destroy, {:id => tournament.to_param}, valid_session
- response.should redirect_to(tournaments_url)
- end
- end
-
-end
diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb
deleted file mode 100644
index 142455c..0000000
--- a/spec/controllers/users_controller_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe UsersController do
-
-end
diff --git a/spec/helpers/alerts_helper_spec.rb b/spec/helpers/alerts_helper_spec.rb
deleted file mode 100644
index 812e415..0000000
--- a/spec/helpers/alerts_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the AlertsHelper. For example:
-#
-# describe AlertsHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe AlertsHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/games_helper_spec.rb b/spec/helpers/games_helper_spec.rb
deleted file mode 100644
index 72addeb..0000000
--- a/spec/helpers/games_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the GamesHelper. For example:
-#
-# describe GamesHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe GamesHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/main_helper_spec.rb b/spec/helpers/main_helper_spec.rb
deleted file mode 100644
index 9d316c5..0000000
--- a/spec/helpers/main_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the MainHelper. For example:
-#
-# describe MainHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe MainHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/matches_helper_spec.rb b/spec/helpers/matches_helper_spec.rb
deleted file mode 100644
index 271cd00..0000000
--- a/spec/helpers/matches_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the MatchesHelper. For example:
-#
-# describe MatchesHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe MatchesHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/pms_helper_spec.rb b/spec/helpers/pms_helper_spec.rb
deleted file mode 100644
index 5ebf709..0000000
--- a/spec/helpers/pms_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the PmsHelper. For example:
-#
-# describe PmsHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe PmsHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/search_helper_spec.rb b/spec/helpers/search_helper_spec.rb
deleted file mode 100644
index fabfe99..0000000
--- a/spec/helpers/search_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the SearchHelper. For example:
-#
-# describe SearchHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe SearchHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/servers_helper_spec.rb b/spec/helpers/servers_helper_spec.rb
deleted file mode 100644
index 487d1e4..0000000
--- a/spec/helpers/servers_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the ServersHelper. For example:
-#
-# describe ServersHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe ServersHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/teams_helper_spec.rb b/spec/helpers/teams_helper_spec.rb
deleted file mode 100644
index 9572616..0000000
--- a/spec/helpers/teams_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the TeamsHelper. For example:
-#
-# describe TeamsHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe TeamsHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/tournaments_helper_spec.rb b/spec/helpers/tournaments_helper_spec.rb
deleted file mode 100644
index c7eb224..0000000
--- a/spec/helpers/tournaments_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the TournamentsHelper. For example:
-#
-# describe TournamentsHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe TournamentsHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/users_helper_spec.rb b/spec/helpers/users_helper_spec.rb
deleted file mode 100644
index e65fff9..0000000
--- a/spec/helpers/users_helper_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the UsersHelper. For example:
-#
-# describe UsersHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe UsersHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/alert_spec.rb b/spec/models/alert_spec.rb
deleted file mode 100644
index d7fa4af..0000000
--- a/spec/models/alert_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe Alert do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/game_attribute_spec.rb b/spec/models/game_attribute_spec.rb
deleted file mode 100644
index 200e59b..0000000
--- a/spec/models/game_attribute_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe GameAttribute do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/game_spec.rb b/spec/models/game_spec.rb
deleted file mode 100644
index 8c56446..0000000
--- a/spec/models/game_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe Game do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/match_spec.rb b/spec/models/match_spec.rb
deleted file mode 100644
index 86931c9..0000000
--- a/spec/models/match_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe Match do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/pm_spec.rb b/spec/models/pm_spec.rb
deleted file mode 100644
index d56845b..0000000
--- a/spec/models/pm_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe Pm do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/server_settings_spec.rb b/spec/models/server_settings_spec.rb
deleted file mode 100644
index d579746..0000000
--- a/spec/models/server_settings_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe ServerSettings do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/server_spec.rb b/spec/models/server_spec.rb
deleted file mode 100644
index 646344a..0000000
--- a/spec/models/server_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe Server do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/team_match_pair_spec.rb b/spec/models/team_match_pair_spec.rb
deleted file mode 100644
index 676c563..0000000
--- a/spec/models/team_match_pair_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe TeamMatchPair do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/team_spec.rb b/spec/models/team_spec.rb
deleted file mode 100644
index 666a904..0000000
--- a/spec/models/team_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe Team do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/tournament_option_spec.rb b/spec/models/tournament_option_spec.rb
deleted file mode 100644
index 501b316..0000000
--- a/spec/models/tournament_option_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe TournamentOption do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/tournament_spec.rb b/spec/models/tournament_spec.rb
deleted file mode 100644
index 56c919d..0000000
--- a/spec/models/tournament_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe Tournament do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
deleted file mode 100644
index 44032b4..0000000
--- a/spec/models/user_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe User do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/user_team_pair_spec.rb b/spec/models/user_team_pair_spec.rb
deleted file mode 100644
index 9947368..0000000
--- a/spec/models/user_team_pair_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe UserTeamPair do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/requests/alerts_spec.rb b/spec/requests/alerts_spec.rb
deleted file mode 100644
index 03c332a..0000000
--- a/spec/requests/alerts_spec.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'spec_helper'
-
-describe "Alerts" do
- describe "GET /alerts" do
- it "works! (now write some real specs)" do
- # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
- get alerts_path
- response.status.should be(200)
- end
- end
-end
diff --git a/spec/requests/games_spec.rb b/spec/requests/games_spec.rb
deleted file mode 100644
index 1a84608..0000000
--- a/spec/requests/games_spec.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'spec_helper'
-
-describe "Games" do
- describe "GET /games" do
- it "works! (now write some real specs)" do
- # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
- get games_path
- response.status.should be(200)
- end
- end
-end
diff --git a/spec/requests/matches_spec.rb b/spec/requests/matches_spec.rb
deleted file mode 100644
index 250f746..0000000
--- a/spec/requests/matches_spec.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'spec_helper'
-
-describe "Matches" do
- describe "GET /matches" do
- it "works! (now write some real specs)" do
- # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
- get matches_path
- response.status.should be(200)
- end
- end
-end
diff --git a/spec/requests/pms_spec.rb b/spec/requests/pms_spec.rb
deleted file mode 100644
index 1862b87..0000000
--- a/spec/requests/pms_spec.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'spec_helper'
-
-describe "Pms" do
- describe "GET /pms" do
- it "works! (now write some real specs)" do
- # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
- get pms_path
- response.status.should be(200)
- end
- end
-end
diff --git a/spec/requests/servers_spec.rb b/spec/requests/servers_spec.rb
deleted file mode 100644
index 2a1562e..0000000
--- a/spec/requests/servers_spec.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'spec_helper'
-
-describe "Servers" do
- describe "GET /servers" do
- it "works! (now write some real specs)" do
- # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
- get servers_path
- response.status.should be(200)
- end
- end
-end
diff --git a/spec/requests/teams_spec.rb b/spec/requests/teams_spec.rb
deleted file mode 100644
index f0caf7a..0000000
--- a/spec/requests/teams_spec.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'spec_helper'
-
-describe "Teams" do
- describe "GET /teams" do
- it "works! (now write some real specs)" do
- # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
- get teams_path
- response.status.should be(200)
- end
- end
-end
diff --git a/spec/requests/tournaments_spec.rb b/spec/requests/tournaments_spec.rb
deleted file mode 100644
index 09b4b55..0000000
--- a/spec/requests/tournaments_spec.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'spec_helper'
-
-describe "Tournaments" do
- describe "GET /tournaments" do
- it "works! (now write some real specs)" do
- # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
- get tournaments_path
- response.status.should be(200)
- end
- end
-end
diff --git a/spec/routing/alerts_routing_spec.rb b/spec/routing/alerts_routing_spec.rb
deleted file mode 100644
index 9485907..0000000
--- a/spec/routing/alerts_routing_spec.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require "spec_helper"
-
-describe AlertsController do
- describe "routing" do
-
- it "routes to #index" do
- get("/alerts").should route_to("alerts#index")
- end
-
- it "routes to #new" do
- get("/alerts/new").should route_to("alerts#new")
- end
-
- it "routes to #show" do
- get("/alerts/1").should route_to("alerts#show", :id => "1")
- end
-
- it "routes to #edit" do
- get("/alerts/1/edit").should route_to("alerts#edit", :id => "1")
- end
-
- it "routes to #create" do
- post("/alerts").should route_to("alerts#create")
- end
-
- it "routes to #update" do
- put("/alerts/1").should route_to("alerts#update", :id => "1")
- end
-
- it "routes to #destroy" do
- delete("/alerts/1").should route_to("alerts#destroy", :id => "1")
- end
-
- end
-end
diff --git a/spec/routing/games_routing_spec.rb b/spec/routing/games_routing_spec.rb
deleted file mode 100644
index 3b3ec0c..0000000
--- a/spec/routing/games_routing_spec.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require "spec_helper"
-
-describe GamesController do
- describe "routing" do
-
- it "routes to #index" do
- get("/games").should route_to("games#index")
- end
-
- it "routes to #new" do
- get("/games/new").should route_to("games#new")
- end
-
- it "routes to #show" do
- get("/games/1").should route_to("games#show", :id => "1")
- end
-
- it "routes to #edit" do
- get("/games/1/edit").should route_to("games#edit", :id => "1")
- end
-
- it "routes to #create" do
- post("/games").should route_to("games#create")
- end
-
- it "routes to #update" do
- put("/games/1").should route_to("games#update", :id => "1")
- end
-
- it "routes to #destroy" do
- delete("/games/1").should route_to("games#destroy", :id => "1")
- end
-
- end
-end
diff --git a/spec/routing/matches_routing_spec.rb b/spec/routing/matches_routing_spec.rb
deleted file mode 100644
index a9f8254..0000000
--- a/spec/routing/matches_routing_spec.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require "spec_helper"
-
-describe MatchesController do
- describe "routing" do
-
- it "routes to #index" do
- get("/matches").should route_to("matches#index")
- end
-
- it "routes to #new" do
- get("/matches/new").should route_to("matches#new")
- end
-
- it "routes to #show" do
- get("/matches/1").should route_to("matches#show", :id => "1")
- end
-
- it "routes to #edit" do
- get("/matches/1/edit").should route_to("matches#edit", :id => "1")
- end
-
- it "routes to #create" do
- post("/matches").should route_to("matches#create")
- end
-
- it "routes to #update" do
- put("/matches/1").should route_to("matches#update", :id => "1")
- end
-
- it "routes to #destroy" do
- delete("/matches/1").should route_to("matches#destroy", :id => "1")
- end
-
- end
-end
diff --git a/spec/routing/pms_routing_spec.rb b/spec/routing/pms_routing_spec.rb
deleted file mode 100644
index 839b0a9..0000000
--- a/spec/routing/pms_routing_spec.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require "spec_helper"
-
-describe PmsController do
- describe "routing" do
-
- it "routes to #index" do
- get("/pms").should route_to("pms#index")
- end
-
- it "routes to #new" do
- get("/pms/new").should route_to("pms#new")
- end
-
- it "routes to #show" do
- get("/pms/1").should route_to("pms#show", :id => "1")
- end
-
- it "routes to #edit" do
- get("/pms/1/edit").should route_to("pms#edit", :id => "1")
- end
-
- it "routes to #create" do
- post("/pms").should route_to("pms#create")
- end
-
- it "routes to #update" do
- put("/pms/1").should route_to("pms#update", :id => "1")
- end
-
- it "routes to #destroy" do
- delete("/pms/1").should route_to("pms#destroy", :id => "1")
- end
-
- end
-end
diff --git a/spec/routing/servers_routing_spec.rb b/spec/routing/servers_routing_spec.rb
deleted file mode 100644
index e514d15..0000000
--- a/spec/routing/servers_routing_spec.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require "spec_helper"
-
-describe ServersController do
- describe "routing" do
-
- it "routes to #index" do
- get("/servers").should route_to("servers#index")
- end
-
- it "routes to #new" do
- get("/servers/new").should route_to("servers#new")
- end
-
- it "routes to #show" do
- get("/servers/1").should route_to("servers#show", :id => "1")
- end
-
- it "routes to #edit" do
- get("/servers/1/edit").should route_to("servers#edit", :id => "1")
- end
-
- it "routes to #create" do
- post("/servers").should route_to("servers#create")
- end
-
- it "routes to #update" do
- put("/servers/1").should route_to("servers#update", :id => "1")
- end
-
- it "routes to #destroy" do
- delete("/servers/1").should route_to("servers#destroy", :id => "1")
- end
-
- end
-end
diff --git a/spec/routing/teams_routing_spec.rb b/spec/routing/teams_routing_spec.rb
deleted file mode 100644
index 818fa7b..0000000
--- a/spec/routing/teams_routing_spec.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require "spec_helper"
-
-describe TeamsController do
- describe "routing" do
-
- it "routes to #index" do
- get("/teams").should route_to("teams#index")
- end
-
- it "routes to #new" do
- get("/teams/new").should route_to("teams#new")
- end
-
- it "routes to #show" do
- get("/teams/1").should route_to("teams#show", :id => "1")
- end
-
- it "routes to #edit" do
- get("/teams/1/edit").should route_to("teams#edit", :id => "1")
- end
-
- it "routes to #create" do
- post("/teams").should route_to("teams#create")
- end
-
- it "routes to #update" do
- put("/teams/1").should route_to("teams#update", :id => "1")
- end
-
- it "routes to #destroy" do
- delete("/teams/1").should route_to("teams#destroy", :id => "1")
- end
-
- end
-end
diff --git a/spec/routing/tournaments_routing_spec.rb b/spec/routing/tournaments_routing_spec.rb
deleted file mode 100644
index e4a229c..0000000
--- a/spec/routing/tournaments_routing_spec.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require "spec_helper"
-
-describe TournamentsController do
- describe "routing" do
-
- it "routes to #index" do
- get("/tournaments").should route_to("tournaments#index")
- end
-
- it "routes to #new" do
- get("/tournaments/new").should route_to("tournaments#new")
- end
-
- it "routes to #show" do
- get("/tournaments/1").should route_to("tournaments#show", :id => "1")
- end
-
- it "routes to #edit" do
- get("/tournaments/1/edit").should route_to("tournaments#edit", :id => "1")
- end
-
- it "routes to #create" do
- post("/tournaments").should route_to("tournaments#create")
- end
-
- it "routes to #update" do
- put("/tournaments/1").should route_to("tournaments#update", :id => "1")
- end
-
- it "routes to #destroy" do
- delete("/tournaments/1").should route_to("tournaments#destroy", :id => "1")
- end
-
- end
-end
diff --git a/spec/views/alerts/edit.html.erb_spec.rb b/spec/views/alerts/edit.html.erb_spec.rb
deleted file mode 100644
index d837f26..0000000
--- a/spec/views/alerts/edit.html.erb_spec.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "alerts/edit" do
- before(:each) do
- @alert = assign(:alert, stub_model(Alert,
- :author => nil,
- :message => "MyText"
- ))
- end
-
- it "renders the edit alert form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", alert_path(@alert), "post" do
- assert_select "input#alert_author[name=?]", "alert[author]"
- assert_select "textarea#alert_message[name=?]", "alert[message]"
- end
- end
-end
diff --git a/spec/views/alerts/index.html.erb_spec.rb b/spec/views/alerts/index.html.erb_spec.rb
deleted file mode 100644
index a5b4f3c..0000000
--- a/spec/views/alerts/index.html.erb_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require 'spec_helper'
-
-describe "alerts/index" do
- before(:each) do
- assign(:alerts, [
- stub_model(Alert,
- :author => nil,
- :message => "MyText"
- ),
- stub_model(Alert,
- :author => nil,
- :message => "MyText"
- )
- ])
- end
-
- it "renders a list of alerts" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "tr>td", :text => nil.to_s, :count => 2
- assert_select "tr>td", :text => "MyText".to_s, :count => 2
- end
-end
diff --git a/spec/views/alerts/new.html.erb_spec.rb b/spec/views/alerts/new.html.erb_spec.rb
deleted file mode 100644
index e38cbd3..0000000
--- a/spec/views/alerts/new.html.erb_spec.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "alerts/new" do
- before(:each) do
- assign(:alert, stub_model(Alert,
- :author => nil,
- :message => "MyText"
- ).as_new_record)
- end
-
- it "renders new alert form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", alerts_path, "post" do
- assert_select "input#alert_author[name=?]", "alert[author]"
- assert_select "textarea#alert_message[name=?]", "alert[message]"
- end
- end
-end
diff --git a/spec/views/alerts/show.html.erb_spec.rb b/spec/views/alerts/show.html.erb_spec.rb
deleted file mode 100644
index 267c9f1..0000000
--- a/spec/views/alerts/show.html.erb_spec.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-require 'spec_helper'
-
-describe "alerts/show" do
- before(:each) do
- @alert = assign(:alert, stub_model(Alert,
- :author => nil,
- :message => "MyText"
- ))
- end
-
- it "renders attributes in <p>" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- rendered.should match(//)
- rendered.should match(/MyText/)
- end
-end
diff --git a/spec/views/games/edit.html.erb_spec.rb b/spec/views/games/edit.html.erb_spec.rb
deleted file mode 100644
index d568c90..0000000
--- a/spec/views/games/edit.html.erb_spec.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'spec_helper'
-
-describe "games/edit" do
- before(:each) do
- @game = assign(:game, stub_model(Game,
- :name => "MyText",
- :players_per_team => 1,
- :teams_per_match => 1,
- :set_rounds => 1,
- :randomized_teams => 1
- ))
- end
-
- it "renders the edit game form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", game_path(@game), "post" do
- assert_select "textarea#game_name[name=?]", "game[name]"
- assert_select "input#game_players_per_team[name=?]", "game[players_per_team]"
- assert_select "input#game_teams_per_match[name=?]", "game[teams_per_match]"
- assert_select "input#game_set_rounds[name=?]", "game[set_rounds]"
- assert_select "input#game_randomized_teams[name=?]", "game[randomized_teams]"
- end
- end
-end
diff --git a/spec/views/games/index.html.erb_spec.rb b/spec/views/games/index.html.erb_spec.rb
deleted file mode 100644
index 3107393..0000000
--- a/spec/views/games/index.html.erb_spec.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-require 'spec_helper'
-
-describe "games/index" do
- before(:each) do
- assign(:games, [
- stub_model(Game,
- :name => "MyText",
- :players_per_team => 1,
- :teams_per_match => 2,
- :set_rounds => 3,
- :randomized_teams => 4
- ),
- stub_model(Game,
- :name => "MyText",
- :players_per_team => 1,
- :teams_per_match => 2,
- :set_rounds => 3,
- :randomized_teams => 4
- )
- ])
- end
-
- it "renders a list of games" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "tr>td", :text => "MyText".to_s, :count => 2
- assert_select "tr>td", :text => 1.to_s, :count => 2
- assert_select "tr>td", :text => 2.to_s, :count => 2
- assert_select "tr>td", :text => 3.to_s, :count => 2
- assert_select "tr>td", :text => 4.to_s, :count => 2
- end
-end
diff --git a/spec/views/games/new.html.erb_spec.rb b/spec/views/games/new.html.erb_spec.rb
deleted file mode 100644
index ebe6113..0000000
--- a/spec/views/games/new.html.erb_spec.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'spec_helper'
-
-describe "games/new" do
- before(:each) do
- assign(:game, stub_model(Game,
- :name => "MyText",
- :players_per_team => 1,
- :teams_per_match => 1,
- :set_rounds => 1,
- :randomized_teams => 1
- ).as_new_record)
- end
-
- it "renders new game form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", games_path, "post" do
- assert_select "textarea#game_name[name=?]", "game[name]"
- assert_select "input#game_players_per_team[name=?]", "game[players_per_team]"
- assert_select "input#game_teams_per_match[name=?]", "game[teams_per_match]"
- assert_select "input#game_set_rounds[name=?]", "game[set_rounds]"
- assert_select "input#game_randomized_teams[name=?]", "game[randomized_teams]"
- end
- end
-end
diff --git a/spec/views/games/show.html.erb_spec.rb b/spec/views/games/show.html.erb_spec.rb
deleted file mode 100644
index fb75ad6..0000000
--- a/spec/views/games/show.html.erb_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require 'spec_helper'
-
-describe "games/show" do
- before(:each) do
- @game = assign(:game, stub_model(Game,
- :name => "MyText",
- :players_per_team => 1,
- :teams_per_match => 2,
- :set_rounds => 3,
- :randomized_teams => 4
- ))
- end
-
- it "renders attributes in <p>" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- rendered.should match(/MyText/)
- rendered.should match(/1/)
- rendered.should match(/2/)
- rendered.should match(/3/)
- rendered.should match(/4/)
- end
-end
diff --git a/spec/views/matches/edit.html.erb_spec.rb b/spec/views/matches/edit.html.erb_spec.rb
deleted file mode 100644
index 0f7c673..0000000
--- a/spec/views/matches/edit.html.erb_spec.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-require 'spec_helper'
-
-describe "matches/edit" do
- before(:each) do
- @match = assign(:match, stub_model(Match,
- :tournament => nil
- ))
- end
-
- it "renders the edit match form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", match_path(@match), "post" do
- assert_select "input#match_tournament[name=?]", "match[tournament]"
- end
- end
-end
diff --git a/spec/views/matches/index.html.erb_spec.rb b/spec/views/matches/index.html.erb_spec.rb
deleted file mode 100644
index e920f16..0000000
--- a/spec/views/matches/index.html.erb_spec.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "matches/index" do
- before(:each) do
- assign(:matches, [
- stub_model(Match,
- :tournament => nil
- ),
- stub_model(Match,
- :tournament => nil
- )
- ])
- end
-
- it "renders a list of matches" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "tr>td", :text => nil.to_s, :count => 2
- end
-end
diff --git a/spec/views/matches/new.html.erb_spec.rb b/spec/views/matches/new.html.erb_spec.rb
deleted file mode 100644
index c3537dc..0000000
--- a/spec/views/matches/new.html.erb_spec.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-require 'spec_helper'
-
-describe "matches/new" do
- before(:each) do
- assign(:match, stub_model(Match,
- :tournament => nil
- ).as_new_record)
- end
-
- it "renders new match form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", matches_path, "post" do
- assert_select "input#match_tournament[name=?]", "match[tournament]"
- end
- end
-end
diff --git a/spec/views/matches/show.html.erb_spec.rb b/spec/views/matches/show.html.erb_spec.rb
deleted file mode 100644
index 4460feb..0000000
--- a/spec/views/matches/show.html.erb_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "matches/show" do
- before(:each) do
- @match = assign(:match, stub_model(Match,
- :tournament => nil
- ))
- end
-
- it "renders attributes in <p>" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- rendered.should match(//)
- end
-end
diff --git a/spec/views/pms/edit.html.erb_spec.rb b/spec/views/pms/edit.html.erb_spec.rb
deleted file mode 100644
index 5ec0de5..0000000
--- a/spec/views/pms/edit.html.erb_spec.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require 'spec_helper'
-
-describe "pms/edit" do
- before(:each) do
- @pm = assign(:pm, stub_model(Pm,
- :author => nil,
- :recipient => nil,
- :message => "MyText"
- ))
- end
-
- it "renders the edit pm form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", pm_path(@pm), "post" do
- assert_select "input#pm_author[name=?]", "pm[author]"
- assert_select "input#pm_recipient[name=?]", "pm[recipient]"
- assert_select "textarea#pm_message[name=?]", "pm[message]"
- end
- end
-end
diff --git a/spec/views/pms/index.html.erb_spec.rb b/spec/views/pms/index.html.erb_spec.rb
deleted file mode 100644
index a3bc733..0000000
--- a/spec/views/pms/index.html.erb_spec.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'spec_helper'
-
-describe "pms/index" do
- before(:each) do
- assign(:pms, [
- stub_model(Pm,
- :author => nil,
- :recipient => nil,
- :message => "MyText"
- ),
- stub_model(Pm,
- :author => nil,
- :recipient => nil,
- :message => "MyText"
- )
- ])
- end
-
- it "renders a list of pms" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "tr>td", :text => nil.to_s, :count => 2
- assert_select "tr>td", :text => nil.to_s, :count => 2
- assert_select "tr>td", :text => "MyText".to_s, :count => 2
- end
-end
diff --git a/spec/views/pms/new.html.erb_spec.rb b/spec/views/pms/new.html.erb_spec.rb
deleted file mode 100644
index 342af96..0000000
--- a/spec/views/pms/new.html.erb_spec.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require 'spec_helper'
-
-describe "pms/new" do
- before(:each) do
- assign(:pm, stub_model(Pm,
- :author => nil,
- :recipient => nil,
- :message => "MyText"
- ).as_new_record)
- end
-
- it "renders new pm form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", pms_path, "post" do
- assert_select "input#pm_author[name=?]", "pm[author]"
- assert_select "input#pm_recipient[name=?]", "pm[recipient]"
- assert_select "textarea#pm_message[name=?]", "pm[message]"
- end
- end
-end
diff --git a/spec/views/pms/show.html.erb_spec.rb b/spec/views/pms/show.html.erb_spec.rb
deleted file mode 100644
index 5802887..0000000
--- a/spec/views/pms/show.html.erb_spec.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-require 'spec_helper'
-
-describe "pms/show" do
- before(:each) do
- @pm = assign(:pm, stub_model(Pm,
- :author => nil,
- :recipient => nil,
- :message => "MyText"
- ))
- end
-
- it "renders attributes in <p>" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- rendered.should match(//)
- rendered.should match(//)
- rendered.should match(/MyText/)
- end
-end
diff --git a/spec/views/servers/edit.html.erb_spec.rb b/spec/views/servers/edit.html.erb_spec.rb
deleted file mode 100644
index 870126c..0000000
--- a/spec/views/servers/edit.html.erb_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "servers/edit" do
- before(:each) do
- @server = assign(:server, stub_model(Server))
- end
-
- it "renders the edit server form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", server_path(@server), "post" do
- end
- end
-end
diff --git a/spec/views/servers/index.html.erb_spec.rb b/spec/views/servers/index.html.erb_spec.rb
deleted file mode 100644
index 9af4a19..0000000
--- a/spec/views/servers/index.html.erb_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "servers/index" do
- before(:each) do
- assign(:servers, [
- stub_model(Server),
- stub_model(Server)
- ])
- end
-
- it "renders a list of servers" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- end
-end
diff --git a/spec/views/servers/new.html.erb_spec.rb b/spec/views/servers/new.html.erb_spec.rb
deleted file mode 100644
index bfc69c5..0000000
--- a/spec/views/servers/new.html.erb_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "servers/new" do
- before(:each) do
- assign(:server, stub_model(Server).as_new_record)
- end
-
- it "renders new server form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", servers_path, "post" do
- end
- end
-end
diff --git a/spec/views/servers/show.html.erb_spec.rb b/spec/views/servers/show.html.erb_spec.rb
deleted file mode 100644
index 3762389..0000000
--- a/spec/views/servers/show.html.erb_spec.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-require 'spec_helper'
-
-describe "servers/show" do
- before(:each) do
- @server = assign(:server, stub_model(Server))
- end
-
- it "renders attributes in <p>" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- end
-end
diff --git a/spec/views/teams/edit.html.erb_spec.rb b/spec/views/teams/edit.html.erb_spec.rb
deleted file mode 100644
index 1153b6d..0000000
--- a/spec/views/teams/edit.html.erb_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "teams/edit" do
- before(:each) do
- @team = assign(:team, stub_model(Team))
- end
-
- it "renders the edit team form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", team_path(@team), "post" do
- end
- end
-end
diff --git a/spec/views/teams/index.html.erb_spec.rb b/spec/views/teams/index.html.erb_spec.rb
deleted file mode 100644
index e894f36..0000000
--- a/spec/views/teams/index.html.erb_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "teams/index" do
- before(:each) do
- assign(:teams, [
- stub_model(Team),
- stub_model(Team)
- ])
- end
-
- it "renders a list of teams" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- end
-end
diff --git a/spec/views/teams/new.html.erb_spec.rb b/spec/views/teams/new.html.erb_spec.rb
deleted file mode 100644
index 6a05475..0000000
--- a/spec/views/teams/new.html.erb_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "teams/new" do
- before(:each) do
- assign(:team, stub_model(Team).as_new_record)
- end
-
- it "renders new team form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", teams_path, "post" do
- end
- end
-end
diff --git a/spec/views/teams/show.html.erb_spec.rb b/spec/views/teams/show.html.erb_spec.rb
deleted file mode 100644
index 1d8ebd5..0000000
--- a/spec/views/teams/show.html.erb_spec.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-require 'spec_helper'
-
-describe "teams/show" do
- before(:each) do
- @team = assign(:team, stub_model(Team))
- end
-
- it "renders attributes in <p>" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- end
-end
diff --git a/spec/views/tournaments/edit.html.erb_spec.rb b/spec/views/tournaments/edit.html.erb_spec.rb
deleted file mode 100644
index db7cbb5..0000000
--- a/spec/views/tournaments/edit.html.erb_spec.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-require 'spec_helper'
-
-describe "tournaments/edit" do
- before(:each) do
- @tournament = assign(:tournament, stub_model(Tournament,
- :game => nil
- ))
- end
-
- it "renders the edit tournament form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", tournament_path(@tournament), "post" do
- assert_select "input#tournament_game[name=?]", "tournament[game]"
- end
- end
-end
diff --git a/spec/views/tournaments/index.html.erb_spec.rb b/spec/views/tournaments/index.html.erb_spec.rb
deleted file mode 100644
index bf36e06..0000000
--- a/spec/views/tournaments/index.html.erb_spec.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "tournaments/index" do
- before(:each) do
- assign(:tournaments, [
- stub_model(Tournament,
- :game => nil
- ),
- stub_model(Tournament,
- :game => nil
- )
- ])
- end
-
- it "renders a list of tournaments" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "tr>td", :text => nil.to_s, :count => 2
- end
-end
diff --git a/spec/views/tournaments/new.html.erb_spec.rb b/spec/views/tournaments/new.html.erb_spec.rb
deleted file mode 100644
index 49785a4..0000000
--- a/spec/views/tournaments/new.html.erb_spec.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-require 'spec_helper'
-
-describe "tournaments/new" do
- before(:each) do
- assign(:tournament, stub_model(Tournament,
- :game => nil
- ).as_new_record)
- end
-
- it "renders new tournament form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", tournaments_path, "post" do
- assert_select "input#tournament_game[name=?]", "tournament[game]"
- end
- end
-end
diff --git a/spec/views/tournaments/show.html.erb_spec.rb b/spec/views/tournaments/show.html.erb_spec.rb
deleted file mode 100644
index abb1879..0000000
--- a/spec/views/tournaments/show.html.erb_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "tournaments/show" do
- before(:each) do
- @tournament = assign(:tournament, stub_model(Tournament,
- :game => nil
- ))
- end
-
- it "renders attributes in <p>" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- rendered.should match(//)
- end
-end