Sha256: 6d2524645729891e9ce18080915ee0931de5a3c0fe6da278e601734d3725447a
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
require 'helper' require 'rack/test' require 'delayed_job_web/application/app' ENV['RACK_ENV'] = 'test' class Delayed::Job def self.where(*args) [] end def self.count(*args) 0 end end class TestDelayedJobWeb < Test::Unit::TestCase include Rack::Test::Methods def app DelayedJobWeb.new end def should_respond_with_success assert last_response.ok?, last_response.errors end # basic smoke test all the tabs %w(overview enqueued working pending failed stats).each do |tab| should "get '/#{tab}'" do get "/#{tab}" should_respond_with_success end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
delayed_job_web-1.0.0 | test/test_delayed_job_web.rb |