Massive Cleanup
[cs356-p2-videostore.git] / test / functional / game_platform_controller_test.rb
@@ -1,18 +1,18 @@
 require File.dirname(__FILE__) + '/../test_helper'
-require 'gameplatform_controller'
+require 'game_platform_controller'
 
 # Re-raise errors caught by the controller.
-class GameplatformController; def rescue_action(e) raise e end; end
+class GamePlatformController; def rescue_action(e) raise e end; end
 
-class GameplatformControllerTest < Test::Unit::TestCase
-  fixtures :gameplatforms
+class GamePlatformControllerTest < Test::Unit::TestCase
+  fixtures :game_platforms
 
   def setup
-    @controller = GameplatformController.new
+    @controller = GamePlatformController.new
     @request    = ActionController::TestRequest.new
     @response   = ActionController::TestResponse.new
 
-    @first_id = gameplatforms(:first).id
+    @first_id = game_platforms(:first).id
   end
 
   def test_index
@@ -27,7 +27,7 @@ class GameplatformControllerTest < Test::Unit::TestCase
     assert_response :success
     assert_template 'list'
 
-    assert_not_nil assigns(:gameplatforms)
+    assert_not_nil assigns(:game_platforms)
   end
 
   def test_show
@@ -36,8 +36,8 @@ class GameplatformControllerTest < Test::Unit::TestCase
     assert_response :success
     assert_template 'show'
 
-    assert_not_nil assigns(:gameplatform)
-    assert assigns(:gameplatform).valid?
+    assert_not_nil assigns(:game_platform)
+    assert assigns(:game_platform).valid?
   end
 
   def test_new
@@ -46,18 +46,18 @@ class GameplatformControllerTest < Test::Unit::TestCase
     assert_response :success
     assert_template 'new'
 
-    assert_not_nil assigns(:gameplatform)
+    assert_not_nil assigns(:game_platform)
   end
 
   def test_create
-    num_gameplatforms = Gameplatform.count
+    num_game_platforms = GamePlatform.count
 
-    post :create, :gameplatform => {}
+    post :create, :game_platform => {}
 
     assert_response :redirect
     assert_redirected_to :action => 'list'
 
-    assert_equal num_gameplatforms + 1, Gameplatform.count
+    assert_equal num_game_platforms + 1, GamePlatform.count
   end
 
   def test_edit
@@ -66,8 +66,8 @@ class GameplatformControllerTest < Test::Unit::TestCase
     assert_response :success
     assert_template 'edit'
 
-    assert_not_nil assigns(:gameplatform)
-    assert assigns(:gameplatform).valid?
+    assert_not_nil assigns(:game_platform)
+    assert assigns(:game_platform).valid?
   end
 
   def test_update
@@ -78,7 +78,7 @@ class GameplatformControllerTest < Test::Unit::TestCase
 
   def test_destroy
     assert_nothing_raised {
-      Gameplatform.find(@first_id)
+      GamePlatform.find(@first_id)
     }
 
     post :destroy, :id => @first_id
@@ -86,7 +86,7 @@ class GameplatformControllerTest < Test::Unit::TestCase
     assert_redirected_to :action => 'list'
 
     assert_raise(ActiveRecord::RecordNotFound) {
-      Gameplatform.find(@first_id)
+      GamePlatform.find(@first_id)
     }
   end
 end