Sha256: e9c5907adc2f7f8a518869442fa797bf15748f529c8108b6eb54a102b93329eb

Contents?: true

Size: 364 Bytes

Versions: 11

Compression:

Stored size: 364 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?
        end 
      end 
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
resque-1.8.5 lib/resque/server/test_helper.rb
resque-1.8.4 lib/resque/server/test_helper.rb
resque-1.8.3 lib/resque/server/test_helper.rb
opengotham_resque-1.8.2 lib/resque/server/test_helper.rb
resque-1.8.2 lib/resque/server/test_helper.rb
resque-1.8.1 lib/resque/server/test_helper.rb
resque-mongo-1.8.1 lib/resque/server/test_helper.rb
resque-1.8.0 lib/resque/server/test_helper.rb
resque-1.7.1 lib/resque/server/test_helper.rb
resque-1.7.0 lib/resque/server/test_helper.rb
resque-1.6.1 lib/resque/server/test_helper.rb