From 7059ab35f797c163cd8907abcd7d0830b31e56f7 Mon Sep 17 00:00:00 2001 From: wvengen Date: Wed, 18 Mar 2015 10:48:26 +0100 Subject: Add job priorities to ActiveJob --- activejob/test/support/integration/test_case_helpers.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'activejob/test/support/integration') diff --git a/activejob/test/support/integration/test_case_helpers.rb b/activejob/test/support/integration/test_case_helpers.rb index 39aee6d407..8319d09520 100644 --- a/activejob/test/support/integration/test_case_helpers.rb +++ b/activejob/test/support/integration/test_case_helpers.rb @@ -42,8 +42,12 @@ module TestCaseHelpers end end - def job_executed - Dummy::Application.root.join("tmp/#{@id}").exist? + def job_executed(id=@id) + Dummy::Application.root.join("tmp/#{id}").exist? + end + + def job_executed_at(id=@id) + File.new(Dummy::Application.root.join("tmp/#{id}")).ctime end def job_output -- cgit v1.2.3