aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/test_helper.rb
diff options
context:
space:
mode:
authorCristian Bica <cristian.bica@gmail.com>2014-12-30 17:53:42 +0200
committerCristian Bica <cristian.bica@gmail.com>2014-12-30 17:53:42 +0200
commit8a73f4b5b9d342a45b3c8e29a13142adbca9ab21 (patch)
tree7330f4490ec4b7dd9cd880d1187ffb41fb4f0da6 /activejob/lib/active_job/test_helper.rb
parent0c070ae568767a2c8e9bdec49ab3a1a24f113382 (diff)
downloadrails-8a73f4b5b9d342a45b3c8e29a13142adbca9ab21.tar.gz
rails-8a73f4b5b9d342a45b3c8e29a13142adbca9ab21.tar.bz2
rails-8a73f4b5b9d342a45b3c8e29a13142adbca9ab21.zip
ActiveJob testing improvements
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
Diffstat (limited to 'activejob/lib/active_job/test_helper.rb')
-rw-r--r--activejob/lib/active_job/test_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb
index 1720b140e5..2efcea7f2e 100644
--- a/activejob/lib/active_job/test_helper.rb
+++ b/activejob/lib/active_job/test_helper.rb
@@ -1,3 +1,5 @@
+require 'active_support/core_ext/hash/keys'
+
module ActiveJob
# Provides helper methods for testing Active Job
module TestHelper