From 8a73f4b5b9d342a45b3c8e29a13142adbca9ab21 Mon Sep 17 00:00:00 2001 From: Cristian Bica Date: Tue, 30 Dec 2014 17:53:42 +0200 Subject: ActiveJob testing improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. The :test adapter wasn't going through a full cycle of serialize/deserialize when performing jobs. Now it does 2. Regular AJ tests were not run for the :test adapter. Now they are 3. ActiveJob::TestHelper uses assert_valid_keys but doesn’t requires the file that implements that method. Now it does --- activejob/test/cases/adapter_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activejob/test/cases') diff --git a/activejob/test/cases/adapter_test.rb b/activejob/test/cases/adapter_test.rb index 61a7cae5bf..6570c55a83 100644 --- a/activejob/test/cases/adapter_test.rb +++ b/activejob/test/cases/adapter_test.rb @@ -2,7 +2,6 @@ require 'helper' class AdapterTest < ActiveSupport::TestCase test "should load #{ENV['AJADAPTER']} adapter" do - ActiveJob::Base.queue_adapter = ENV['AJADAPTER'].to_sym - assert_equal "active_job/queue_adapters/#{ENV['AJADAPTER']}_adapter".classify.constantize, ActiveJob::Base.queue_adapter + assert_equal "active_job/queue_adapters/#{ENV['AJADAPTER']}_adapter".classify, ActiveJob::Base.queue_adapter.name end end -- cgit v1.2.3