From bb1a925ac7c9f488551a136628fe600bfde789f2 Mon Sep 17 00:00:00 2001 From: universal Date: Thu, 29 May 2008 19:17:16 +0200 Subject: [PATCH] removed left tests from tryouts --- test/fixtures/mugshots.yml | 7 --- test/functional/mugshots_controller_test.rb | 8 --- test/functional/users_controller_test.rb | 67 --------------------- test/unit/mugshot_test.rb | 8 --- 4 files changed, 90 deletions(-) delete mode 100644 test/fixtures/mugshots.yml delete mode 100644 test/functional/mugshots_controller_test.rb delete mode 100644 test/functional/users_controller_test.rb delete mode 100644 test/unit/mugshot_test.rb diff --git a/test/fixtures/mugshots.yml b/test/fixtures/mugshots.yml deleted file mode 100644 index 5bf0293..0000000 --- a/test/fixtures/mugshots.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html - -# one: -# column: value -# -# two: -# column: value diff --git a/test/functional/mugshots_controller_test.rb b/test/functional/mugshots_controller_test.rb deleted file mode 100644 index e92b10a..0000000 --- a/test/functional/mugshots_controller_test.rb +++ /dev/null @@ -1,8 +0,0 @@ -require File.dirname(__FILE__) + '/../test_helper' - -class MugshotsControllerTest < ActionController::TestCase - # Replace this with your real tests. - def test_truth - assert true - end -end diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb deleted file mode 100644 index cef5836..0000000 --- a/test/functional/users_controller_test.rb +++ /dev/null @@ -1,67 +0,0 @@ -require File.dirname(__FILE__) + '/../test_helper' -require 'users_controller' - -# Re-raise errors caught by the controller. -class UsersController; def rescue_action(e) raise e end; end - -class UsersControllerTest < Test::Unit::TestCase - # Be sure to include AuthenticatedTestHelper in test/test_helper.rb instead - # Then, you can remove it from this and the units test. - include AuthenticatedTestHelper - - fixtures :users - - def setup - @controller = UsersController.new - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new - end - - def test_should_allow_signup - assert_difference 'User.count' do - create_user - assert_response :redirect - end - end - - def test_should_require_login_on_signup - assert_no_difference 'User.count' do - create_user(:login => nil) - assert assigns(:user).errors.on(:login) - assert_response :success - end - end - - def test_should_require_password_on_signup - assert_no_difference 'User.count' do - create_user(:password => nil) - assert assigns(:user).errors.on(:password) - assert_response :success - end - end - - def test_should_require_password_confirmation_on_signup - assert_no_difference 'User.count' do - create_user(:password_confirmation => nil) - assert assigns(:user).errors.on(:password_confirmation) - assert_response :success - end - end - - def test_should_require_email_on_signup - assert_no_difference 'User.count' do - create_user(:email => nil) - assert assigns(:user).errors.on(:email) - assert_response :success - end - end - - - - - protected - def create_user(options = {}) - post :create, :user => { :login => 'quire', :email => 'quire@example.com', - :password => 'quire', :password_confirmation => 'quire' }.merge(options) - end -end diff --git a/test/unit/mugshot_test.rb b/test/unit/mugshot_test.rb deleted file mode 100644 index a759031..0000000 --- a/test/unit/mugshot_test.rb +++ /dev/null @@ -1,8 +0,0 @@ -require File.dirname(__FILE__) + '/../test_helper' - -class MugshotTest < ActiveSupport::TestCase - # Replace this with your real tests. - def test_truth - assert true - end -end