test/test_helper.rb in extface-0.4.4 vs test/test_helper.rb in extface-0.4.5
- old
+ new
@@ -17,9 +17,13 @@
# load db schema
ActiveRecord::Schema.verbose = false
load "#{Rails.root}/db/schema.rb"
fixtures :all
+
+ def simulate_device_pull(job)
+ Extface.redis_block{ |r| sleep 1; r.publish(job.id, "OK") } #simulate send to device
+ end
end
module Extface
class ActionController::TestCase
setup do
@routes = Extface::Engine.routes