From 8ae20e65827fb2670ca0aaf253247c5e0afc6021 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Fri, 21 Apr 2017 08:02:26 +0900 Subject: [PATCH] Add missing require Without this, unit test fails. ``` bundle exec ruby -w -Ilib:lib:test test/cases/logging_test.rb Using inline Run options: --seed 41246 # Running: SE......S.... Finished in 0.052938s, 245.5696 runs/s, 831.1585 assertions/s. 1) Error: LoggingTest#test_job_error_logging: NameError: uninitialized constant LoggingTest::RescueJob test/cases/logging_test.rb:130:in `rescue in test_job_error_logging' test/cases/logging_test.rb:129:in `test_job_error_logging' 13 runs, 44 assertions, 0 failures, 1 errors, 2 skips You have skipped tests. Run with --verbose for details. ``` --- activejob/test/cases/logging_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activejob/test/cases/logging_test.rb b/activejob/test/cases/logging_test.rb index e1b546fae7bad..d5ca0f385c997 100644 --- a/activejob/test/cases/logging_test.rb +++ b/activejob/test/cases/logging_test.rb @@ -5,6 +5,7 @@ require "jobs/logging_job" require "jobs/overridden_logging_job" require "jobs/nested_job" +require "jobs/rescue_job" require "models/person" class LoggingTest < ActiveSupport::TestCase