summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-04 21:07:32 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-04 21:07:32 -0400
commit1cca0b2c418d1c4a31a27c98d7b0951545303d2c (patch)
tree889ae82c823c87c33438c9b3f40c67a5036698de /test
parent1627387966a4186a924bafd80cbd84c0861142b5 (diff)
parentb43bab15521c7c511ab7012bd137daa0e85bb95b (diff)
Merge branch 'clean2'
Conflicts: config/routes.rb db/schema.rb
Diffstat (limited to 'test')
-rw-r--r--test/controllers/remote_usernames_controller_test.rb49
-rw-r--r--test/fixtures/game_settings.yml4
-rw-r--r--test/fixtures/remote_usernames.yml4
-rw-r--r--test/helpers/remote_usernames_helper_test.rb4
4 files changed, 4 insertions, 57 deletions
diff --git a/test/controllers/remote_usernames_controller_test.rb b/test/controllers/remote_usernames_controller_test.rb
deleted file mode 100644
index ff6a91d..0000000
--- a/test/controllers/remote_usernames_controller_test.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-require 'test_helper'
-
-class RemoteUsernamesControllerTest < ActionController::TestCase
- setup do
- @remote_username = remote_usernames(:one)
- end
-
- test "should get index" do
- get :index
- assert_response :success
- assert_not_nil assigns(:remote_usernames)
- end
-
- test "should get new" do
- get :new
- assert_response :success
- end
-
- test "should create remote_username" do
- assert_difference('RemoteUsername.count') do
- post :create, remote_username: { game_id: @remote_username.game_id, user_id: @remote_username.user_id, user_name: @remote_username.user_name }
- end
-
- assert_redirected_to remote_username_path(assigns(:remote_username))
- end
-
- test "should show remote_username" do
- get :show, id: @remote_username
- assert_response :success
- end
-
- test "should get edit" do
- get :edit, id: @remote_username
- assert_response :success
- end
-
- test "should update remote_username" do
- patch :update, id: @remote_username, remote_username: { game_id: @remote_username.game_id, user_id: @remote_username.user_id, user_name: @remote_username.user_name }
- assert_redirected_to remote_username_path(assigns(:remote_username))
- end
-
- test "should destroy remote_username" do
- assert_difference('RemoteUsername.count', -1) do
- delete :destroy, id: @remote_username
- end
-
- assert_redirected_to remote_usernames_path
- end
-end
diff --git a/test/fixtures/game_settings.yml b/test/fixtures/game_settings.yml
index 5626c97..7497d02 100644
--- a/test/fixtures/game_settings.yml
+++ b/test/fixtures/game_settings.yml
@@ -5,7 +5,7 @@ one:
type: 1
name: MyString
default: MyText
- discription: MyText
+ description: MyText
type_opt: MyText
display_order: 1
@@ -14,6 +14,6 @@ two:
type: 1
name: MyString
default: MyText
- discription: MyText
+ description: MyText
type_opt: MyText
display_order: 1
diff --git a/test/fixtures/remote_usernames.yml b/test/fixtures/remote_usernames.yml
index 0b3055a..baa1714 100644
--- a/test/fixtures/remote_usernames.yml
+++ b/test/fixtures/remote_usernames.yml
@@ -3,9 +3,9 @@
one:
game_id:
user_id:
- user_name: MyString
+ json_value: MyText
two:
game_id:
user_id:
- user_name: MyString
+ json_value: MyText
diff --git a/test/helpers/remote_usernames_helper_test.rb b/test/helpers/remote_usernames_helper_test.rb
deleted file mode 100644
index 1c9a795..0000000
--- a/test/helpers/remote_usernames_helper_test.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-require 'test_helper'
-
-class RemoteUsernamesHelperTest < ActionView::TestCase
-end