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/controllers/assets_controller_test.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/controllers/assets_controller_test.rb (limited to 'test/controllers/assets_controller_test.rb') diff --git a/test/controllers/assets_controller_test.rb b/test/controllers/assets_controller_test.rb new file mode 100644 index 0000000..d003d25 --- /dev/null +++ b/test/controllers/assets_controller_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class AssetsControllerTest < ActionController::TestCase +end -- cgit v1.3