aboutsummaryrefslogtreecommitdiffstats
path: root/activejob
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-16 19:28:32 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-16 19:28:32 -0300
commit3f866cbdabaa2f85c5aef754aa9a3127c99fba20 (patch)
tree10a7ce11463db5a98fb588686bc3fe944a769b7f /activejob
parent0e5ffa740caf6caa229f4a9315081d76d82dd18a (diff)
downloadrails-3f866cbdabaa2f85c5aef754aa9a3127c99fba20.tar.gz
rails-3f866cbdabaa2f85c5aef754aa9a3127c99fba20.tar.bz2
rails-3f866cbdabaa2f85c5aef754aa9a3127c99fba20.zip
Fix typo on method name
[Robin Dupret]
Diffstat (limited to 'activejob')
-rw-r--r--activejob/lib/active_job/test_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb
index 74a12884ff..200d82838e 100644
--- a/activejob/lib/active_job/test_helper.rb
+++ b/activejob/lib/active_job/test_helper.rb
@@ -237,7 +237,7 @@ module ActiveJob
serialized_args.all? { |key, value| value == job[key] }
end
assert matching_job, "No enqueued job found with #{args}"
- instanciate_job(matching_job)
+ instantiate_job(matching_job)
ensure
queue_adapter.enqueued_jobs = original_enqueued_jobs + enqueued_jobs
end
@@ -259,7 +259,7 @@ module ActiveJob
serialized_args.all? { |key, value| value == job[key] }
end
assert matching_job, "No performed job found with #{args}"
- instanciate_job(matching_job)
+ instantiate_job(matching_job)
ensure
queue_adapter.performed_jobs = original_performed_jobs + performed_jobs
end
@@ -314,7 +314,7 @@ module ActiveJob
serialized_args
end
- def instanciate_job(payload)
+ def instantiate_job(payload)
job = payload[:job].new(*payload[:args])
job.scheduled_at = Time.at(payload[:at]) if payload.key?(:at)
job.queue_name = payload[:queue]