Sha256: 04601a4a0962ba43b09d09d8c54274e93c04f219fa03bdbb75be7850e648b253

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

require 'rack/test'
require 'resque/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

5 entries across 5 versions & 1 rubygems

Version Path
resque-2.4.0 lib/resque/server/test_helper.rb
resque-2.3.0 lib/resque/server/test_helper.rb
resque-2.2.1 lib/resque/server/test_helper.rb
resque-2.2.0 lib/resque/server/test_helper.rb
resque-2.1.0 lib/resque/server/test_helper.rb