ruby - resque @queue variable returns nil during the test environment but within development it works -


in development:

1.9.3p429 :001 > auction::riskprofile.instance_variable_get(:@queue)

=> :low_priority

1.9.3p429 :002 > resque.queue_from_class(auction::riskprofile)

=> :low_priority

1.9.3p429 :003 > resque.enqueue(auction::riskprofile)

=> true

but in test environment:

resque

=> resque client connected redis://127.0.0.1:6379/0

auction::riskprofile.instance_variable_get(:@queue)

=> nil

resque.queue_from_class(auction::riskprofile)

=> false

resque.enqueue(auction::riskprofile)

resque::noqueueerror: jobs must placed onto queue.

from /home/bharani/desktop/catawiki-bundle/ruby/1.9.1/gems/resque-1.24.1

/lib/resque.rb:348:in `validate'

i don't know whats difference between development , test environments. please explain one


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -