From c386d6dcb06f61033eb0e6ad1c9b75e39dc3fb5a Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 25 Apr 2009 15:00:53 +0200 Subject: skip testing default behavior --- test/fixtures/assets.yml | 6 ----- test/functional/assets_controller_test.rb | 41 ------------------------------- 2 files changed, 47 deletions(-) diff --git a/test/fixtures/assets.yml b/test/fixtures/assets.yml index 5bf0293..a56c164 100644 --- a/test/fixtures/assets.yml +++ b/test/fixtures/assets.yml @@ -1,7 +1 @@ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html - -# one: -# column: value -# -# two: -# column: value diff --git a/test/functional/assets_controller_test.rb b/test/functional/assets_controller_test.rb index 7b838cc..d003d25 100644 --- a/test/functional/assets_controller_test.rb +++ b/test/functional/assets_controller_test.rb @@ -1,45 +1,4 @@ require 'test_helper' class AssetsControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:assets) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create asset" do - assert_difference('Asset.count') do - post :create, :asset => { } - end - - assert_redirected_to asset_path(assigns(:asset)) - end - - test "should show asset" do - get :show, :id => assets(:one).to_param - assert_response :success - end - - test "should get edit" do - get :edit, :id => assets(:one).to_param - assert_response :success - end - - test "should update asset" do - put :update, :id => assets(:one).to_param, :asset => { } - assert_redirected_to asset_path(assigns(:asset)) - end - - test "should destroy asset" do - assert_difference('Asset.count', -1) do - delete :destroy, :id => assets(:one).to_param - end - - assert_redirected_to assets_path - end end -- cgit v1.3