Commit e31717f4 authored by Jan Provaznik's avatar Jan Provaznik

Fix cattr_accessor definition

Use cattr_accessor directly inside the defined class, otherwise
in Rails 5 this accessor returns nil.
parent bee339ad
......@@ -7,9 +7,7 @@ describe WaitableWorker do
'Gitlab::Foo::Bar::DummyWorker'
end
class << self
cattr_accessor(:counter) { 0 }
end
include ApplicationWorker
prepend WaitableWorker
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment