From d4b7761ddededc8222ebc25ce49fc32fda425b81 Mon Sep 17 00:00:00 2001 From: Tobias Svensson Date: Mon, 11 Mar 2013 11:34:52 +0000 Subject: [PATCH] Move LastAndScheduledTicksWorker into fixtures. --- test/fixtures/last_and_scheduled_ticks_worker.rb | 5 +++++ test/test_clock.rb | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 test/fixtures/last_and_scheduled_ticks_worker.rb diff --git a/test/fixtures/last_and_scheduled_ticks_worker.rb b/test/fixtures/last_and_scheduled_ticks_worker.rb new file mode 100644 index 0000000..c036b20 --- /dev/null +++ b/test/fixtures/last_and_scheduled_ticks_worker.rb @@ -0,0 +1,5 @@ +class LastAndScheduledTicksWorker + def perform(last_tick, scheduled_tick) + end +end + diff --git a/test/test_clock.rb b/test/test_clock.rb index e9b085e..3f38dd4 100644 --- a/test/test_clock.rb +++ b/test/test_clock.rb @@ -78,11 +78,6 @@ class TestClock < Sidetiq::TestCase clock.tick end - class LastAndScheduledTicksWorker - def perform last_tick, scheduled_tick - end - end - def test_enqueues_jobs_with_last_run_timestamp_and_next_run_timestamp schedule = Sidetiq::Schedule.new(Sidetiq::Clock::START_TIME) schedule.hourly