statianzo / que-testing

Make assertions on enqueued jobs
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

May not work with Que 0.11.4? #1

Closed llimllib closed 8 years ago

llimllib commented 8 years ago

After installing que-testing, I get:

/Users/llimllib/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.11.4/lib/que/job.rb:139:in `work': undefined method `cleanup!' for #<Que::Testing::Adapter:0x007fd825456de8> (NoMethodError)
        from /Users/llimllib/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.11.4/lib/que/worker.rb:80:in `block in work_loop'
        from /Users/llimllib/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.11.4/lib/que/worker.rb:75:in `loop'
        from /Users/llimllib/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.11.4/lib/que/worker.rb:75:in `work_loop'
        from /Users/llimllib/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.11.4/lib/que/worker.rb:19:in `block in initialize'
statianzo commented 8 years ago

Looks like the adapter shim needs a cleanup! method

statianzo commented 8 years ago

Fixed by #2

lessless commented 7 years ago

Still having it here!

Volumes/Data/lessless/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.12.0/lib/que/job.rb:169:in `work': undefined method `cleanup!' for #<Que::Testing::Adapter:0x007fe22ba39b38> (NoMethodError)
    from /Volumes/Data/lessless/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.12.0/lib/que/worker.rb:80:in `block in work_loop'
    from /Volumes/Data/lessless/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.12.0/lib/que/worker.rb:75:in `loop'
    from /Volumes/Data/lessless/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.12.0/lib/que/worker.rb:75:in `work_loop'
    from /Volumes/Data/lessless/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/que-0.12.0/lib/que/worker.rb:19:in `block in initialize'
statianzo commented 7 years ago

@lessless I hadn't cut a release. Just made one. Try out que-testing 0.2.0.