Commit 6961ef1a authored by Jan Provaznik's avatar Jan Provaznik Committed by Dennis Tang

Fix cattr_accessor definition

Use cattr_accessor directly inside the defined class, otherwise
in Rails 5 this accessor returns nil.
parent 21e78957
......@@ -7,9 +7,7 @@ describe WaitableWorker do
'Gitlab::Foo::Bar::DummyWorker'
end
class << self
cattr_accessor(:counter) { 0 }
end
cattr_accessor(:counter) { 0 }
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