Sha256: 10a34dd54b95e63e5bfe31421c460cdf2ef3fc999b3bfe09f90d8b47c1ce6afe

Contents?: true

Size: 471 Bytes

Versions: 13

Compression:

Stored size: 471 Bytes

Contents

require 'test_helper'
require 'support/rails_app'
require 'support/delayed_job_fake'

class TestMountedInRailsApp < MiniTest::Unit::TestCase
  include Rack::Test::Methods

  def app
    RailsApp
  end

  # basic smoke test all the tabs
  %w(overview enqueued working pending failed stats).each do |tab|
    define_method :"test_#{tab}" do
      get "/delayed_job/#{tab}"
      assert last_response.ok?, "Received bad response: #{last_response.inspect}"
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
delayed_job_web-1.4.4 test/integration/test_mounted_in_rails_app.rb
delayed_job_web-1.4.3 test/integration/test_mounted_in_rails_app.rb
delayed_job_web-1.4.2 test/integration/test_mounted_in_rails_app.rb
delayed_job_web-1.4 test/integration/test_mounted_in_rails_app.rb
delayed_job_web-1.3 test/integration/test_mounted_in_rails_app.rb
delayed_job_web-1.2.10 test/integration/test_mounted_in_rails_app.rb
better_delayed_job_web-1.3.12 test/integration/test_mounted_in_rails_app.rb
better_delayed_job_web-1.3.11 test/integration/test_mounted_in_rails_app.rb
better_delayed_job_web-1.3.5 test/integration/test_mounted_in_rails_app.rb
better_delayed_job_web-1.3.3 test/integration/test_mounted_in_rails_app.rb
better_delayed_job_web-1.3.2 test/integration/test_mounted_in_rails_app.rb
better_delayed_job_web-1.3.1 test/integration/test_mounted_in_rails_app.rb
delayed_job_web-1.2.9 test/integration/test_mounted_in_rails_app.rb