From 0818a3057b0a91e422158d828026c941b4e10622 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 25 Jun 2026 17:51:45 +0200 Subject: Rails 5.2 test updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename test/functional → test/controllers, test/unit → test/models - Remove test/performance/browsing_test.rb (performance_test_help removed) - Fix use_transactional_fixtures → use_transactional_tests - Remove use_instantiated_fixtures (removed in Rails 5) - Fix ActiveRecord::Fixtures → FixtureSet - Fix controller test params syntax: add params: {} wrapper throughout - Fix assert_select targets for aggregator test - Fix test_update_a_draft_with_changing_the_template: draft → head - Add test_node.reload after children.create! (awesome_nested_set bug) - Add before/after count pattern for create tests (transactional isolation) - Known failures: 5 tests affected by Rails 5 transactional test isolation --- test/functional/occurrences_controller_test.rb | 45 -------------------------- 1 file changed, 45 deletions(-) delete mode 100644 test/functional/occurrences_controller_test.rb (limited to 'test/functional/occurrences_controller_test.rb') diff --git a/test/functional/occurrences_controller_test.rb b/test/functional/occurrences_controller_test.rb deleted file mode 100644 index 0b00e0e..0000000 --- a/test/functional/occurrences_controller_test.rb +++ /dev/null @@ -1,45 +0,0 @@ -require 'test_helper' - -class OccurrencesControllerTest < ActionController::TestCase - # test "should get index" do - # get :index - # assert_response :success - # assert_not_nil assigns(:occurrences) - # end - # - # test "should get new" do - # get :new - # assert_response :success - # end - # - # test "should create occurrence" do - # assert_difference('Occurrence.count') do - # post :create, :occurrence => { } - # end - # - # assert_redirected_to occurrence_path(assigns(:occurrence)) - # end - # - # test "should show occurrence" do - # get :show, :id => occurrences(:one).to_param - # assert_response :success - # end - # - # test "should get edit" do - # get :edit, :id => occurrences(:one).to_param - # assert_response :success - # end - # - # test "should update occurrence" do - # put :update, :id => occurrences(:one).to_param, :occurrence => { } - # assert_redirected_to occurrence_path(assigns(:occurrence)) - # end - # - # test "should destroy occurrence" do - # assert_difference('Occurrence.count', -1) do - # delete :destroy, :id => occurrences(:one).to_param - # end - # - # assert_redirected_to occurrences_path - # end -end -- cgit v1.3