Sha256: 5b4f841c78773e42c94ee1fa7c45965dcd84e87bc2d9b5487257d8418f87dbd0

Contents?: true

Size: 904 Bytes

Versions: 19

Compression:

Stored size: 904 Bytes

Contents

require 'test_helper'
require 'resque/server/test_helper'
 
# Root path test
context "on GET to /" do
  setup { get "/" }

  test "redirect to overview" do
    follow_redirect!
  end
end

# Global overview
context "on GET to /overview" do
  setup { get "/overview" }

  test "should at least display 'queues'" do
    assert last_response.body.include?('Queues')
  end
end

# Working jobs
context "on GET to /working" do
  setup { get "/working" }

  should_respond_with_success
end

# Failed
context "on GET to /failed" do
  setup { get "/failed" }

  should_respond_with_success
end

# Stats 
context "on GET to /stats/resque" do
  setup { get "/stats/resque" }

  should_respond_with_success
end

context "on GET to /stats/redis" do
  setup { get "/stats/redis" }

  should_respond_with_success
end

context "on GET to /stats/resque" do
  setup { get "/stats/keys" }

  should_respond_with_success
end

Version data entries

19 entries across 19 versions & 5 rubygems

Version Path
nogara-resque-loner-1.2.1 test/resque-web_test.rb
resque-loner-1.2.1 test/resque-web_test.rb
resque-loner-1.2.0 test/resque-web_test.rb
ryansch-resque-loner-1.0.1.2 test/resque-web_test.rb
resque-1.19.0 test/resque-web_test.rb
resque-1.18.6 test/resque-web_test.rb
steini-resque-1.18.5 test/resque-web_test.rb
resque-1.18.5 test/resque-web_test.rb
resque-1.18.4 test/resque-web_test.rb
resque-1.18.3 test/resque-web_test.rb
resque-1.18.2 test/resque-web_test.rb
resque-1.18.1 test/resque-web_test.rb
resque-1.18.0 test/resque-web_test.rb
resque-1.17.1 test/resque-web_test.rb
resque-1.17.0 test/resque-web_test.rb
resque-1.16.1 test/resque-web_test.rb
resque-1.16.0 test/resque-web_test.rb
resque-1.15.0 test/resque-web_test.rb
resque-1.14.0 test/resque-web_test.rb