Move TestJob to spec_helper.rb

This commit is contained in:
Dzmitry Plashchynski
2015-03-22 23:37:01 +02:00
parent fa97f573e0
commit 0c77c490bd
5 changed files with 11 additions and 26 deletions
+11
View File
@@ -13,3 +13,14 @@ ActiveRecord::Base.establish_connection(
ActiveRecord::Base.logger = Logger.new(STDOUT)
CreateCronoJobs.up
class TestJob
def perform
end
end
class TestFailingJob
def perform
fail 'Some error'
end
end