Sha256: e0e263ac202ba4c290e47437b8cd207be1c91ccaae927e844b7e4e7a5629a8e4

Contents?: true

Size: 610 Bytes

Versions: 46

Compression:

Stored size: 610 Bytes

Contents

require File.dirname(__FILE__) + '/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

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
classiccms-0.3.4 vendor/bundle/gems/resque-mongo-1.9.8.1/test/resque-web_test.rb
classiccms-0.3.3 vendor/bundle/gems/resque-mongo-1.9.8.1/test/resque-web_test.rb
classiccms-0.3.2 vendor/bundle/gems/resque-mongo-1.9.8.1/test/resque-web_test.rb
classiccms-0.3.1 vendor/bundle/gems/resque-mongo-1.9.8.1/test/resque-web_test.rb
classiccms-0.3.0 vendor/bundle/gems/resque-mongo-1.9.8.1/test/resque-web_test.rb
resque-mongo-1.9.8.1 test/resque-web_test.rb