diff --git a/spec/sample_jobs.rb b/spec/sample_jobs.rb index 36ba136ab..7b2b37ba6 100644 --- a/spec/sample_jobs.rb +++ b/spec/sample_jobs.rb @@ -7,7 +7,7 @@ def display_name class SimpleJob cattr_accessor :runs - @runs = 0 + @@runs = 0 def perform self.class.runs += 1 end @@ -21,7 +21,7 @@ def queue_name class ErrorJob cattr_accessor :runs - @runs = 0 + @@runs = 0 def perform raise Exception, 'did not work' end @@ -30,7 +30,7 @@ def perform CustomRescheduleJob = Struct.new(:offset) class CustomRescheduleJob cattr_accessor :runs - @runs = 0 + @@runs = 0 def perform raise 'did not work' end @@ -65,7 +65,7 @@ def max_attempts module M class ModuleJob cattr_accessor :runs - @runs = 0 + @@runs = 0 def perform self.class.runs += 1 end