Sha256: dd181e2e0ca143a3b096aabd194e5bcd094b044c0b24b343603e3e04a2dd1528

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

require 'rack/test'
require 'resque_admin/server'

module Resque
  module TestHelper
    class Test::Unit::TestCase
      include Rack::Test::Methods
      def app
        Resque::Server.new
      end 

      def self.should_respond_with_success
        test "should respond with success" do
          assert last_response.ok?, last_response.errors
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
resque_admin-1.0.4 lib/resque_admin/server/test_helper.rb