Sha256: ec80f13a5d71a9e981bf5a6b35219019463014de2c47476325bff84da8926320

Contents?: true

Size: 1014 Bytes

Versions: 61

Compression:

Stored size: 1014 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

context "also works with slash at the end" do
  setup { get "/working/" }

  should_respond_with_success
end

Version data entries

61 entries across 61 versions & 5 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
classiccms-0.7.4 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
classiccms-0.7.3 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
resque-1.25.2 test/resque-web_test.rb
resque-1.26.pre.0 test/resque-web_test.rb
resque_signal_from_child-1.25.1 test/resque-web_test.rb
resque-1.25.1 test/resque-web_test.rb
resque-1.25.0 test/resque-web_test.rb
resque-1.25.0.pre test/resque-web_test.rb
classiccms-0.7.2 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
classiccms-0.7.1 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
classiccms-0.7.0 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
resque-1.24.1 test/resque-web_test.rb
resque-1.24.0 test/resque-web_test.rb
resque-1.23.1 test/resque-web_test.rb
classiccms-0.6.9 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
classiccms-0.6.8 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
classiccms-0.6.7 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
classiccms-0.6.6 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb
classiccms-0.6.5 vendor/bundle/gems/resque-1.20.0/test/resque-web_test.rb