Sha256: 058ee12beb1baec7ebb3262f50cfb9a4dd9600a51b2bd93cd5b0a7372a9b3565

Contents?: true

Size: 839 Bytes

Versions: 4

Compression:

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

# Search failed jobs
context "on GET to /failed with a search query" do
  setup {get "/failed?q=toto"}
  
  should_respond_with_success
end

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

  should_respond_with_success
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nfo-resque-mongo-1.17.2 test/resque-web_test.rb
nfo-resque-mongo-1.17.1 test/resque-web_test.rb
nfo-resque-mongo-1.15.1 test/resque-web_test.rb
nfo-resque-mongo-1.15.0 test/resque-web_test.rb