summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-03 22:20:02 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-03 22:20:02 -0500
commit423d0e5a440d8d66407522bc842ef273196173bc (patch)
treeec2dfc14881734c4585622962235b225c653da04
parentf825d7e30ff6393b66a5abcc05a33f72d7d6712b (diff)
run ./generate.sh
-rw-r--r--app/assets/stylesheets/sessions.css.scss2
-rw-r--r--app/controllers/users_controller.rb72
-rw-r--r--app/views/users/_form.html.erb29
-rw-r--r--app/views/users/edit.html.erb6
-rw-r--r--app/views/users/index.html.erb31
-rw-r--r--app/views/users/index.json.jbuilder4
-rw-r--r--app/views/users/new.html.erb5
-rw-r--r--app/views/users/show.html.erb19
-rw-r--r--app/views/users/show.json.jbuilder1
-rw-r--r--config/routes.rb2
-rw-r--r--db/migrate/20140304031800_create_servers.rb (renamed from db/migrate/20140304021249_create_servers.rb)0
-rw-r--r--db/migrate/20140304031802_create_tournaments.rb (renamed from db/migrate/20140304021251_create_tournaments.rb)0
-rw-r--r--db/migrate/20140304031804_create_matches.rb (renamed from db/migrate/20140304021254_create_matches.rb)0
-rw-r--r--db/migrate/20140304031806_create_teams.rb (renamed from db/migrate/20140304021256_create_teams.rb)0
-rw-r--r--db/migrate/20140304031808_create_alerts.rb (renamed from db/migrate/20140304021258_create_alerts.rb)0
-rw-r--r--db/migrate/20140304031810_create_pms.rb (renamed from db/migrate/20140304021301_create_pms.rb)0
-rw-r--r--db/migrate/20140304031813_create_games.rb (renamed from db/migrate/20140304021303_create_games.rb)0
-rw-r--r--db/migrate/20140304031815_create_users.rb (renamed from db/migrate/20140304021310_create_users.rb)0
-rw-r--r--db/migrate/20140304031817_create_game_attributes.rb (renamed from db/migrate/20140304021306_create_game_attributes.rb)0
-rw-r--r--db/migrate/20140304031819_create_server_settings.rb (renamed from db/migrate/20140304021308_create_server_settings.rb)0
-rw-r--r--db/migrate/20140304031821_create_user_team_pairs.rb (renamed from db/migrate/20140304021312_create_user_team_pairs.rb)0
-rw-r--r--db/migrate/20140304031823_create_team_match_pairs.rb (renamed from db/migrate/20140304021314_create_team_match_pairs.rb)0
-rw-r--r--db/migrate/20140304031834_create_tournament_options.rb (renamed from db/migrate/20140304021327_create_tournament_options.rb)0
-rw-r--r--db/schema.rb2
-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/sessions_controller_spec.rb5
-rw-r--r--spec/controllers/static_controller_spec.rb5
-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/sessions_helper_spec.rb15
-rw-r--r--spec/helpers/static_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.rb20
-rw-r--r--spec/views/matches/index.html.erb_spec.rb23
-rw-r--r--spec/views/matches/new.html.erb_spec.rb20
-rw-r--r--spec/views/matches/show.html.erb_spec.rb17
-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
-rw-r--r--test/controllers/.keep0
-rw-r--r--test/controllers/alerts_controller_test.rb49
-rw-r--r--test/controllers/games_controller_test.rb49
-rw-r--r--test/controllers/main_controller_test.rb7
-rw-r--r--test/controllers/matches_controller_test.rb49
-rw-r--r--test/controllers/pms_controller_test.rb49
-rw-r--r--test/controllers/search_controller_test.rb7
-rw-r--r--test/controllers/servers_controller_test.rb49
-rw-r--r--test/controllers/sessions_controller_test.rb7
-rw-r--r--test/controllers/static_controller_test.rb7
-rw-r--r--test/controllers/teams_controller_test.rb49
-rw-r--r--test/controllers/tournaments_controller_test.rb49
-rw-r--r--test/controllers/users_controller_test.rb49
-rw-r--r--test/fixtures/.keep0
-rw-r--r--test/fixtures/alerts.yml9
-rw-r--r--test/fixtures/game_attributes.yml11
-rw-r--r--test/fixtures/games.yml15
-rw-r--r--test/fixtures/matches.yml9
-rw-r--r--test/fixtures/pms.yml11
-rw-r--r--test/fixtures/server_settings.yml11
-rw-r--r--test/fixtures/servers.yml11
-rw-r--r--test/fixtures/team_match_pairs.yml9
-rw-r--r--test/fixtures/teams.yml11
-rw-r--r--test/fixtures/tournament_options.yml11
-rw-r--r--test/fixtures/tournaments.yml7
-rw-r--r--test/fixtures/user_team_pairs.yml9
-rw-r--r--test/fixtures/users.yml11
-rw-r--r--test/helpers/.keep0
-rw-r--r--test/helpers/alerts_helper_test.rb4
-rw-r--r--test/helpers/games_helper_test.rb4
-rw-r--r--test/helpers/main_helper_test.rb4
-rw-r--r--test/helpers/matches_helper_test.rb4
-rw-r--r--test/helpers/pms_helper_test.rb4
-rw-r--r--test/helpers/search_helper_test.rb4
-rw-r--r--test/helpers/servers_helper_test.rb4
-rw-r--r--test/helpers/sessions_helper_test.rb4
-rw-r--r--test/helpers/static_helper_test.rb4
-rw-r--r--test/helpers/teams_helper_test.rb4
-rw-r--r--test/helpers/tournaments_helper_test.rb4
-rw-r--r--test/helpers/users_helper_test.rb4
-rw-r--r--test/integration/.keep0
-rw-r--r--test/mailers/.keep0
-rw-r--r--test/models/.keep0
-rw-r--r--test/models/alert_test.rb7
-rw-r--r--test/models/game_attribute_test.rb7
-rw-r--r--test/models/game_test.rb7
-rw-r--r--test/models/match_test.rb7
-rw-r--r--test/models/pm_test.rb7
-rw-r--r--test/models/server_settings_test.rb7
-rw-r--r--test/models/server_test.rb7
-rw-r--r--test/models/team_match_pair_test.rb7
-rw-r--r--test/models/team_test.rb7
-rw-r--r--test/models/tournament_option_test.rb7
-rw-r--r--test/models/tournament_test.rb7
-rw-r--r--test/models/user_team_pair_test.rb7
-rw-r--r--test/models/user_test.rb7
-rw-r--r--test/test_helper.rb15
160 files changed, 880 insertions, 2255 deletions
diff --git a/app/assets/stylesheets/sessions.css.scss b/app/assets/stylesheets/sessions.css.scss
index ccb1ed2..7bef9cf 100644
--- a/app/assets/stylesheets/sessions.css.scss
+++ b/app/assets/stylesheets/sessions.css.scss
@@ -1,3 +1,3 @@
-// Place all the styles related to the Sessions controller here.
+// Place all the styles related to the sessions 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/users_controller.rb b/app/controllers/users_controller.rb
index 3e74dea..b18efed 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -1,2 +1,74 @@
class UsersController < ApplicationController
+ before_action :set_user, only: [:show, :edit, :update, :destroy]
+
+ # GET /users
+ # GET /users.json
+ def index
+ @users = User.all
+ end
+
+ # GET /users/1
+ # GET /users/1.json
+ def show
+ end
+
+ # GET /users/new
+ def new
+ @user = User.new
+ end
+
+ # GET /users/1/edit
+ def edit
+ end
+
+ # POST /users
+ # POST /users.json
+ def create
+ @user = User.new(user_params)
+
+ respond_to do |format|
+ if @user.save
+ format.html { redirect_to @user, notice: 'User was successfully created.' }
+ format.json { render action: 'show', status: :created, location: @user }
+ else
+ format.html { render action: 'new' }
+ format.json { render json: @user.errors, status: :unprocessable_entity }
+ end
+ end
+ end
+
+ # PATCH/PUT /users/1
+ # PATCH/PUT /users/1.json
+ def update
+ respond_to do |format|
+ if @user.update(user_params)
+ format.html { redirect_to @user, notice: 'User was successfully updated.' }
+ format.json { head :no_content }
+ else
+ format.html { render action: 'edit' }
+ format.json { render json: @user.errors, status: :unprocessable_entity }
+ end
+ end
+ end
+
+ # DELETE /users/1
+ # DELETE /users/1.json
+ def destroy
+ @user.destroy
+ respond_to do |format|
+ format.html { redirect_to users_url }
+ format.json { head :no_content }
+ end
+ end
+
+ private
+ # Use callbacks to share common setup or constraints between actions.
+ def set_user
+ @user = User.find(params[:id])
+ end
+
+ # Never trust parameters from the scary internet, only allow the white list through.
+ def user_params
+ params.require(:user).permit(:name, :email, :user_name)
+ end
end
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb
new file mode 100644
index 0000000..4d28738
--- /dev/null
+++ b/app/views/users/_form.html.erb
@@ -0,0 +1,29 @@
+<%= form_for(@user) do |f| %>
+ <% if @user.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
+
+ <ul>
+ <% @user.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div class="field">
+ <%= f.label :name %><br>
+ <%= f.text_field :name %>
+ </div>
+ <div class="field">
+ <%= f.label :email %><br>
+ <%= f.text_field :email %>
+ </div>
+ <div class="field">
+ <%= f.label :user_name %><br>
+ <%= f.text_field :user_name %>
+ </div>
+ <div class="actions">
+ <%= f.submit %>
+ </div>
+<% end %>
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb
new file mode 100644
index 0000000..99bd4cc
--- /dev/null
+++ b/app/views/users/edit.html.erb
@@ -0,0 +1,6 @@
+<h1>Editing user</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Show', @user %> |
+<%= link_to 'Back', users_path %>
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
new file mode 100644
index 0000000..3692112
--- /dev/null
+++ b/app/views/users/index.html.erb
@@ -0,0 +1,31 @@
+<h1>Listing users</h1>
+
+<table>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Email</th>
+ <th>User name</th>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <% @users.each do |user| %>
+ <tr>
+ <td><%= user.name %></td>
+ <td><%= user.email %></td>
+ <td><%= user.user_name %></td>
+ <td><%= link_to 'Show', user %></td>
+ <td><%= link_to 'Edit', edit_user_path(user) %></td>
+ <td><%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>
+ </tr>
+ <% end %>
+ </tbody>
+</table>
+
+<br>
+
+<%= link_to 'New User', new_user_path %>
diff --git a/app/views/users/index.json.jbuilder b/app/views/users/index.json.jbuilder
new file mode 100644
index 0000000..42d8b72
--- /dev/null
+++ b/app/views/users/index.json.jbuilder
@@ -0,0 +1,4 @@
+json.array!(@users) do |user|
+ json.extract! user, :id, :name, :email, :user_name
+ json.url user_url(user, format: :json)
+end
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
new file mode 100644
index 0000000..efc0404
--- /dev/null
+++ b/app/views/users/new.html.erb
@@ -0,0 +1,5 @@
+<h1>New user</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Back', users_path %>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
new file mode 100644
index 0000000..9455a3c
--- /dev/null
+++ b/app/views/users/show.html.erb
@@ -0,0 +1,19 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+ <strong>Name:</strong>
+ <%= @user.name %>
+</p>
+
+<p>
+ <strong>Email:</strong>
+ <%= @user.email %>
+</p>
+
+<p>
+ <strong>User name:</strong>
+ <%= @user.user_name %>
+</p>
+
+<%= link_to 'Edit', edit_user_path(@user) %> |
+<%= link_to 'Back', users_path %>
diff --git a/app/views/users/show.json.jbuilder b/app/views/users/show.json.jbuilder
new file mode 100644
index 0000000..4919af3
--- /dev/null
+++ b/app/views/users/show.json.jbuilder
@@ -0,0 +1 @@
+json.extract! @user, :id, :name, :email, :user_name, :created_at, :updated_at
diff --git a/config/routes.rb b/config/routes.rb
index 149c321..3bad42d 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,6 @@
Leaguer::Application.routes.draw do
+ resources :users
+
resources :games
resources :pms
diff --git a/db/migrate/20140304021249_create_servers.rb b/db/migrate/20140304031800_create_servers.rb
index f33241a..f33241a 100644
--- a/db/migrate/20140304021249_create_servers.rb
+++ b/db/migrate/20140304031800_create_servers.rb
diff --git a/db/migrate/20140304021251_create_tournaments.rb b/db/migrate/20140304031802_create_tournaments.rb
index 36fcf7e..36fcf7e 100644
--- a/db/migrate/20140304021251_create_tournaments.rb
+++ b/db/migrate/20140304031802_create_tournaments.rb
diff --git a/db/migrate/20140304021254_create_matches.rb b/db/migrate/20140304031804_create_matches.rb
index 325863d..325863d 100644
--- a/db/migrate/20140304021254_create_matches.rb
+++ b/db/migrate/20140304031804_create_matches.rb
diff --git a/db/migrate/20140304021256_create_teams.rb b/db/migrate/20140304031806_create_teams.rb
index dd8397d..dd8397d 100644
--- a/db/migrate/20140304021256_create_teams.rb
+++ b/db/migrate/20140304031806_create_teams.rb
diff --git a/db/migrate/20140304021258_create_alerts.rb b/db/migrate/20140304031808_create_alerts.rb
index 68a8e10..68a8e10 100644
--- a/db/migrate/20140304021258_create_alerts.rb
+++ b/db/migrate/20140304031808_create_alerts.rb
diff --git a/db/migrate/20140304021301_create_pms.rb b/db/migrate/20140304031810_create_pms.rb
index 93bb5c6..93bb5c6 100644
--- a/db/migrate/20140304021301_create_pms.rb
+++ b/db/migrate/20140304031810_create_pms.rb
diff --git a/db/migrate/20140304021303_create_games.rb b/db/migrate/20140304031813_create_games.rb
index 59d4ef0..59d4ef0 100644
--- a/db/migrate/20140304021303_create_games.rb
+++ b/db/migrate/20140304031813_create_games.rb
diff --git a/db/migrate/20140304021310_create_users.rb b/db/migrate/20140304031815_create_users.rb
index f0986d4..f0986d4 100644
--- a/db/migrate/20140304021310_create_users.rb
+++ b/db/migrate/20140304031815_create_users.rb
diff --git a/db/migrate/20140304021306_create_game_attributes.rb b/db/migrate/20140304031817_create_game_attributes.rb
index b63f134..b63f134 100644
--- a/db/migrate/20140304021306_create_game_attributes.rb
+++ b/db/migrate/20140304031817_create_game_attributes.rb
diff --git a/db/migrate/20140304021308_create_server_settings.rb b/db/migrate/20140304031819_create_server_settings.rb
index dfdd91b..dfdd91b 100644
--- a/db/migrate/20140304021308_create_server_settings.rb
+++ b/db/migrate/20140304031819_create_server_settings.rb
diff --git a/db/migrate/20140304021312_create_user_team_pairs.rb b/db/migrate/20140304031821_create_user_team_pairs.rb
index 2c492ac..2c492ac 100644
--- a/db/migrate/20140304021312_create_user_team_pairs.rb
+++ b/db/migrate/20140304031821_create_user_team_pairs.rb
diff --git a/db/migrate/20140304021314_create_team_match_pairs.rb b/db/migrate/20140304031823_create_team_match_pairs.rb
index 8fac07e..8fac07e 100644
--- a/db/migrate/20140304021314_create_team_match_pairs.rb
+++ b/db/migrate/20140304031823_create_team_match_pairs.rb
diff --git a/db/migrate/20140304021327_create_tournament_options.rb b/db/migrate/20140304031834_create_tournament_options.rb
index d2df22e..d2df22e 100644
--- a/db/migrate/20140304021327_create_tournament_options.rb
+++ b/db/migrate/20140304031834_create_tournament_options.rb
diff --git a/db/schema.rb b/db/schema.rb
index e40d70c..a9bd57b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20140304021327) do
+ActiveRecord::Schema.define(version: 20140304031834) do
create_table "alerts", force: true do |t|
t.integer "author_id"
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/sessions_controller_spec.rb b/spec/controllers/sessions_controller_spec.rb
deleted file mode 100644
index 702c559..0000000
--- a/spec/controllers/sessions_controller_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe SessionsController do
-
-end
diff --git a/spec/controllers/static_controller_spec.rb b/spec/controllers/static_controller_spec.rb
deleted file mode 100644
index a3db7c0..0000000
--- a/spec/controllers/static_controller_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe StaticController do
-
-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/sessions_helper_spec.rb b/spec/helpers/sessions_helper_spec.rb
deleted file mode 100644
index c14cfa5..0000000
--- a/spec/helpers/sessions_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 SessionsHelper. For example:
-#
-# describe SessionsHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe SessionsHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/helpers/static_helper_spec.rb b/spec/helpers/static_helper_spec.rb
deleted file mode 100644
index 6a1bf5c..0000000
--- a/spec/helpers/static_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 StaticHelper. For example:
-#
-# describe StaticHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe StaticHelper 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 fca468f..0000000
--- a/spec/views/matches/edit.html.erb_spec.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "matches/edit" do
- before(:each) do
- @match = assign(:match, stub_model(Match,
- :tournament => nil,
- :name => "MyString"
- ))
- 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]"
- assert_select "input#match_name[name=?]", "match[name]"
- 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 d3be1b5..0000000
--- a/spec/views/matches/index.html.erb_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require 'spec_helper'
-
-describe "matches/index" do
- before(:each) do
- assign(:matches, [
- stub_model(Match,
- :tournament => nil,
- :name => "Name"
- ),
- stub_model(Match,
- :tournament => nil,
- :name => "Name"
- )
- ])
- 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
- assert_select "tr>td", :text => "Name".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 4423d2c..0000000
--- a/spec/views/matches/new.html.erb_spec.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "matches/new" do
- before(:each) do
- assign(:match, stub_model(Match,
- :tournament => nil,
- :name => "MyString"
- ).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]"
- assert_select "input#match_name[name=?]", "match[name]"
- 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 642119d..0000000
--- a/spec/views/matches/show.html.erb_spec.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-require 'spec_helper'
-
-describe "matches/show" do
- before(:each) do
- @match = assign(:match, stub_model(Match,
- :tournament => nil,
- :name => "Name"
- ))
- 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(/Name/)
- 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
diff --git a/test/controllers/.keep b/test/controllers/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/controllers/.keep
diff --git a/test/controllers/alerts_controller_test.rb b/test/controllers/alerts_controller_test.rb
new file mode 100644
index 0000000..4a5d911
--- /dev/null
+++ b/test/controllers/alerts_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class AlertsControllerTest < ActionController::TestCase
+ setup do
+ @alert = alerts(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:alerts)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create alert" do
+ assert_difference('Alert.count') do
+ post :create, alert: { author_id: @alert.author_id, message: @alert.message }
+ end
+
+ assert_redirected_to alert_path(assigns(:alert))
+ end
+
+ test "should show alert" do
+ get :show, id: @alert
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @alert
+ assert_response :success
+ end
+
+ test "should update alert" do
+ patch :update, id: @alert, alert: { author_id: @alert.author_id, message: @alert.message }
+ assert_redirected_to alert_path(assigns(:alert))
+ end
+
+ test "should destroy alert" do
+ assert_difference('Alert.count', -1) do
+ delete :destroy, id: @alert
+ end
+
+ assert_redirected_to alerts_path
+ end
+end
diff --git a/test/controllers/games_controller_test.rb b/test/controllers/games_controller_test.rb
new file mode 100644
index 0000000..95c3145
--- /dev/null
+++ b/test/controllers/games_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class GamesControllerTest < ActionController::TestCase
+ setup do
+ @game = games(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:games)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create game" do
+ assert_difference('Game.count') do
+ post :create, game: { name: @game.name, players_per_team: @game.players_per_team, randomized_teams: @game.randomized_teams, set_rounds: @game.set_rounds, teams_per_match: @game.teams_per_match }
+ end
+
+ assert_redirected_to game_path(assigns(:game))
+ end
+
+ test "should show game" do
+ get :show, id: @game
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @game
+ assert_response :success
+ end
+
+ test "should update game" do
+ patch :update, id: @game, game: { name: @game.name, players_per_team: @game.players_per_team, randomized_teams: @game.randomized_teams, set_rounds: @game.set_rounds, teams_per_match: @game.teams_per_match }
+ assert_redirected_to game_path(assigns(:game))
+ end
+
+ test "should destroy game" do
+ assert_difference('Game.count', -1) do
+ delete :destroy, id: @game
+ end
+
+ assert_redirected_to games_path
+ end
+end
diff --git a/test/controllers/main_controller_test.rb b/test/controllers/main_controller_test.rb
new file mode 100644
index 0000000..b7ec6bf
--- /dev/null
+++ b/test/controllers/main_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class MainControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/controllers/matches_controller_test.rb b/test/controllers/matches_controller_test.rb
new file mode 100644
index 0000000..50675d8
--- /dev/null
+++ b/test/controllers/matches_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class MatchesControllerTest < ActionController::TestCase
+ setup do
+ @match = matches(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:matches)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create match" do
+ assert_difference('Match.count') do
+ post :create, match: { name: @match.name, tournament_id: @match.tournament_id }
+ end
+
+ assert_redirected_to match_path(assigns(:match))
+ end
+
+ test "should show match" do
+ get :show, id: @match
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @match
+ assert_response :success
+ end
+
+ test "should update match" do
+ patch :update, id: @match, match: { name: @match.name, tournament_id: @match.tournament_id }
+ assert_redirected_to match_path(assigns(:match))
+ end
+
+ test "should destroy match" do
+ assert_difference('Match.count', -1) do
+ delete :destroy, id: @match
+ end
+
+ assert_redirected_to matches_path
+ end
+end
diff --git a/test/controllers/pms_controller_test.rb b/test/controllers/pms_controller_test.rb
new file mode 100644
index 0000000..18b2449
--- /dev/null
+++ b/test/controllers/pms_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class PmsControllerTest < ActionController::TestCase
+ setup do
+ @pm = pms(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:pms)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create pm" do
+ assert_difference('Pm.count') do
+ post :create, pm: { author_id: @pm.author_id, message: @pm.message, recipient_id: @pm.recipient_id }
+ end
+
+ assert_redirected_to pm_path(assigns(:pm))
+ end
+
+ test "should show pm" do
+ get :show, id: @pm
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @pm
+ assert_response :success
+ end
+
+ test "should update pm" do
+ patch :update, id: @pm, pm: { author_id: @pm.author_id, message: @pm.message, recipient_id: @pm.recipient_id }
+ assert_redirected_to pm_path(assigns(:pm))
+ end
+
+ test "should destroy pm" do
+ assert_difference('Pm.count', -1) do
+ delete :destroy, id: @pm
+ end
+
+ assert_redirected_to pms_path
+ end
+end
diff --git a/test/controllers/search_controller_test.rb b/test/controllers/search_controller_test.rb
new file mode 100644
index 0000000..bfbf22d
--- /dev/null
+++ b/test/controllers/search_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class SearchControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/controllers/servers_controller_test.rb b/test/controllers/servers_controller_test.rb
new file mode 100644
index 0000000..5891bb0
--- /dev/null
+++ b/test/controllers/servers_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class ServersControllerTest < ActionController::TestCase
+ setup do
+ @server = servers(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:servers)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create server" do
+ assert_difference('Server.count') do
+ post :create, server: { }
+ end
+
+ assert_redirected_to server_path(assigns(:server))
+ end
+
+ test "should show server" do
+ get :show, id: @server
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @server
+ assert_response :success
+ end
+
+ test "should update server" do
+ patch :update, id: @server, server: { }
+ assert_redirected_to server_path(assigns(:server))
+ end
+
+ test "should destroy server" do
+ assert_difference('Server.count', -1) do
+ delete :destroy, id: @server
+ end
+
+ assert_redirected_to servers_path
+ end
+end
diff --git a/test/controllers/sessions_controller_test.rb b/test/controllers/sessions_controller_test.rb
new file mode 100644
index 0000000..d30ebc3
--- /dev/null
+++ b/test/controllers/sessions_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class SessionsControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/controllers/static_controller_test.rb b/test/controllers/static_controller_test.rb
new file mode 100644
index 0000000..e62ae2a
--- /dev/null
+++ b/test/controllers/static_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class StaticControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/controllers/teams_controller_test.rb b/test/controllers/teams_controller_test.rb
new file mode 100644
index 0000000..8bf60be
--- /dev/null
+++ b/test/controllers/teams_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class TeamsControllerTest < ActionController::TestCase
+ setup do
+ @team = teams(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:teams)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create team" do
+ assert_difference('Team.count') do
+ post :create, team: { }
+ end
+
+ assert_redirected_to team_path(assigns(:team))
+ end
+
+ test "should show team" do
+ get :show, id: @team
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @team
+ assert_response :success
+ end
+
+ test "should update team" do
+ patch :update, id: @team, team: { }
+ assert_redirected_to team_path(assigns(:team))
+ end
+
+ test "should destroy team" do
+ assert_difference('Team.count', -1) do
+ delete :destroy, id: @team
+ end
+
+ assert_redirected_to teams_path
+ end
+end
diff --git a/test/controllers/tournaments_controller_test.rb b/test/controllers/tournaments_controller_test.rb
new file mode 100644
index 0000000..bdbbfac
--- /dev/null
+++ b/test/controllers/tournaments_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class TournamentsControllerTest < ActionController::TestCase
+ setup do
+ @tournament = tournaments(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:tournaments)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create tournament" do
+ assert_difference('Tournament.count') do
+ post :create, tournament: { game_id: @tournament.game_id }
+ end
+
+ assert_redirected_to tournament_path(assigns(:tournament))
+ end
+
+ test "should show tournament" do
+ get :show, id: @tournament
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @tournament
+ assert_response :success
+ end
+
+ test "should update tournament" do
+ patch :update, id: @tournament, tournament: { game_id: @tournament.game_id }
+ assert_redirected_to tournament_path(assigns(:tournament))
+ end
+
+ test "should destroy tournament" do
+ assert_difference('Tournament.count', -1) do
+ delete :destroy, id: @tournament
+ end
+
+ assert_redirected_to tournaments_path
+ end
+end
diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb
new file mode 100644
index 0000000..79a5700
--- /dev/null
+++ b/test/controllers/users_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class UsersControllerTest < ActionController::TestCase
+ setup do
+ @user = users(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:users)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create user" do
+ assert_difference('User.count') do
+ post :create, user: { email: @user.email, name: @user.name, user_name: @user.user_name }
+ end
+
+ assert_redirected_to user_path(assigns(:user))
+ end
+
+ test "should show user" do
+ get :show, id: @user
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, id: @user
+ assert_response :success
+ end
+
+ test "should update user" do
+ patch :update, id: @user, user: { email: @user.email, name: @user.name, user_name: @user.user_name }
+ assert_redirected_to user_path(assigns(:user))
+ end
+
+ test "should destroy user" do
+ assert_difference('User.count', -1) do
+ delete :destroy, id: @user
+ end
+
+ assert_redirected_to users_path
+ end
+end
diff --git a/test/fixtures/.keep b/test/fixtures/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/fixtures/.keep
diff --git a/test/fixtures/alerts.yml b/test/fixtures/alerts.yml
new file mode 100644
index 0000000..52959af
--- /dev/null
+++ b/test/fixtures/alerts.yml
@@ -0,0 +1,9 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ author_id:
+ message: MyText
+
+two:
+ author_id:
+ message: MyText
diff --git a/test/fixtures/game_attributes.yml b/test/fixtures/game_attributes.yml
new file mode 100644
index 0000000..eff7212
--- /dev/null
+++ b/test/fixtures/game_attributes.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ game_id:
+ key: MyText
+ type: 1
+
+two:
+ game_id:
+ key: MyText
+ type: 1
diff --git a/test/fixtures/games.yml b/test/fixtures/games.yml
new file mode 100644
index 0000000..3068527
--- /dev/null
+++ b/test/fixtures/games.yml
@@ -0,0 +1,15 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ name: MyText
+ players_per_team: 1
+ teams_per_match: 1
+ set_rounds: 1
+ randomized_teams: 1
+
+two:
+ name: MyText
+ players_per_team: 1
+ teams_per_match: 1
+ set_rounds: 1
+ randomized_teams: 1
diff --git a/test/fixtures/matches.yml b/test/fixtures/matches.yml
new file mode 100644
index 0000000..089fc65
--- /dev/null
+++ b/test/fixtures/matches.yml
@@ -0,0 +1,9 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ tournament_id:
+ name: MyString
+
+two:
+ tournament_id:
+ name: MyString
diff --git a/test/fixtures/pms.yml b/test/fixtures/pms.yml
new file mode 100644
index 0000000..f77e727
--- /dev/null
+++ b/test/fixtures/pms.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ author_id:
+ recipient_id:
+ message: MyText
+
+two:
+ author_id:
+ recipient_id:
+ message: MyText
diff --git a/test/fixtures/server_settings.yml b/test/fixtures/server_settings.yml
new file mode 100644
index 0000000..937a0c0
--- /dev/null
+++ b/test/fixtures/server_settings.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
diff --git a/test/fixtures/servers.yml b/test/fixtures/servers.yml
new file mode 100644
index 0000000..937a0c0
--- /dev/null
+++ b/test/fixtures/servers.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
diff --git a/test/fixtures/team_match_pairs.yml b/test/fixtures/team_match_pairs.yml
new file mode 100644
index 0000000..5f9cf2f
--- /dev/null
+++ b/test/fixtures/team_match_pairs.yml
@@ -0,0 +1,9 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ team_id:
+ match_id:
+
+two:
+ team_id:
+ match_id:
diff --git a/test/fixtures/teams.yml b/test/fixtures/teams.yml
new file mode 100644
index 0000000..937a0c0
--- /dev/null
+++ b/test/fixtures/teams.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
diff --git a/test/fixtures/tournament_options.yml b/test/fixtures/tournament_options.yml
new file mode 100644
index 0000000..937a0c0
--- /dev/null
+++ b/test/fixtures/tournament_options.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
diff --git a/test/fixtures/tournaments.yml b/test/fixtures/tournaments.yml
new file mode 100644
index 0000000..4cba7ca
--- /dev/null
+++ b/test/fixtures/tournaments.yml
@@ -0,0 +1,7 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ game_id:
+
+two:
+ game_id:
diff --git a/test/fixtures/user_team_pairs.yml b/test/fixtures/user_team_pairs.yml
new file mode 100644
index 0000000..a76036f
--- /dev/null
+++ b/test/fixtures/user_team_pairs.yml
@@ -0,0 +1,9 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ user_id:
+ team_id:
+
+two:
+ user_id:
+ team_id:
diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml
new file mode 100644
index 0000000..ea3e874
--- /dev/null
+++ b/test/fixtures/users.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ name: MyString
+ email: MyString
+ user_name: MyString
+
+two:
+ name: MyString
+ email: MyString
+ user_name: MyString
diff --git a/test/helpers/.keep b/test/helpers/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/helpers/.keep
diff --git a/test/helpers/alerts_helper_test.rb b/test/helpers/alerts_helper_test.rb
new file mode 100644
index 0000000..1d9079d
--- /dev/null
+++ b/test/helpers/alerts_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class AlertsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/games_helper_test.rb b/test/helpers/games_helper_test.rb
new file mode 100644
index 0000000..449a85c
--- /dev/null
+++ b/test/helpers/games_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class GamesHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/main_helper_test.rb b/test/helpers/main_helper_test.rb
new file mode 100644
index 0000000..22da3c4
--- /dev/null
+++ b/test/helpers/main_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class MainHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/matches_helper_test.rb b/test/helpers/matches_helper_test.rb
new file mode 100644
index 0000000..4cc472f
--- /dev/null
+++ b/test/helpers/matches_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class MatchesHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/pms_helper_test.rb b/test/helpers/pms_helper_test.rb
new file mode 100644
index 0000000..af80f10
--- /dev/null
+++ b/test/helpers/pms_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class PmsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/search_helper_test.rb b/test/helpers/search_helper_test.rb
new file mode 100644
index 0000000..3034163
--- /dev/null
+++ b/test/helpers/search_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class SearchHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/servers_helper_test.rb b/test/helpers/servers_helper_test.rb
new file mode 100644
index 0000000..8fddf34
--- /dev/null
+++ b/test/helpers/servers_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class ServersHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/sessions_helper_test.rb b/test/helpers/sessions_helper_test.rb
new file mode 100644
index 0000000..7d44e09
--- /dev/null
+++ b/test/helpers/sessions_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class SessionsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/static_helper_test.rb b/test/helpers/static_helper_test.rb
new file mode 100644
index 0000000..3b96f2b
--- /dev/null
+++ b/test/helpers/static_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class StaticHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/teams_helper_test.rb b/test/helpers/teams_helper_test.rb
new file mode 100644
index 0000000..b736483
--- /dev/null
+++ b/test/helpers/teams_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class TeamsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/tournaments_helper_test.rb b/test/helpers/tournaments_helper_test.rb
new file mode 100644
index 0000000..1cf5269
--- /dev/null
+++ b/test/helpers/tournaments_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class TournamentsHelperTest < ActionView::TestCase
+end
diff --git a/test/helpers/users_helper_test.rb b/test/helpers/users_helper_test.rb
new file mode 100644
index 0000000..96af37a
--- /dev/null
+++ b/test/helpers/users_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class UsersHelperTest < ActionView::TestCase
+end
diff --git a/test/integration/.keep b/test/integration/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/integration/.keep
diff --git a/test/mailers/.keep b/test/mailers/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/mailers/.keep
diff --git a/test/models/.keep b/test/models/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/models/.keep
diff --git a/test/models/alert_test.rb b/test/models/alert_test.rb
new file mode 100644
index 0000000..b59c65e
--- /dev/null
+++ b/test/models/alert_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class AlertTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/game_attribute_test.rb b/test/models/game_attribute_test.rb
new file mode 100644
index 0000000..13c6e65
--- /dev/null
+++ b/test/models/game_attribute_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class GameAttributeTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/game_test.rb b/test/models/game_test.rb
new file mode 100644
index 0000000..2cab36e
--- /dev/null
+++ b/test/models/game_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class GameTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/match_test.rb b/test/models/match_test.rb
new file mode 100644
index 0000000..14436b1
--- /dev/null
+++ b/test/models/match_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class MatchTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/pm_test.rb b/test/models/pm_test.rb
new file mode 100644
index 0000000..e7f6b8f
--- /dev/null
+++ b/test/models/pm_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class PmTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/server_settings_test.rb b/test/models/server_settings_test.rb
new file mode 100644
index 0000000..470b316
--- /dev/null
+++ b/test/models/server_settings_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class ServerSettingsTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/server_test.rb b/test/models/server_test.rb
new file mode 100644
index 0000000..125ffc9
--- /dev/null
+++ b/test/models/server_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class ServerTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/team_match_pair_test.rb b/test/models/team_match_pair_test.rb
new file mode 100644
index 0000000..c250b3c
--- /dev/null
+++ b/test/models/team_match_pair_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TeamMatchPairTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/team_test.rb b/test/models/team_test.rb
new file mode 100644
index 0000000..8b101cb
--- /dev/null
+++ b/test/models/team_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TeamTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/tournament_option_test.rb b/test/models/tournament_option_test.rb
new file mode 100644
index 0000000..8fa9628
--- /dev/null
+++ b/test/models/tournament_option_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TournamentOptionTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/tournament_test.rb b/test/models/tournament_test.rb
new file mode 100644
index 0000000..24a7e5f
--- /dev/null
+++ b/test/models/tournament_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TournamentTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/user_team_pair_test.rb b/test/models/user_team_pair_test.rb
new file mode 100644
index 0000000..55f5c58
--- /dev/null
+++ b/test/models/user_team_pair_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class UserTeamPairTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/user_test.rb b/test/models/user_test.rb
new file mode 100644
index 0000000..82f61e0
--- /dev/null
+++ b/test/models/user_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class UserTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/test_helper.rb b/test/test_helper.rb
new file mode 100644
index 0000000..bc7e05d
--- /dev/null
+++ b/test/test_helper.rb
@@ -0,0 +1,15 @@
+ENV["RAILS_ENV"] ||= "test"
+require File.expand_path('../../config/environment', __FILE__)
+require 'rails/test_help'
+
+class ActiveSupport::TestCase
+ ActiveRecord::Migration.check_pending!
+
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
+ #
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
+ # -- they do not yet inherit this setting
+ fixtures :all
+
+ # Add more helper methods to be used by all tests here...
+end