Sha256: 9ff41b4edefc23dc57fdfa00bc47106ecc455386bed1ea8b1b787a1b63390d66

Contents?: true

Size: 382 Bytes

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
rewritten-0.16.5 lib/rewritten/server/test_helper.rb
rewritten-0.16.4 lib/rewritten/server/test_helper.rb
rewritten-0.16.3 lib/rewritten/server/test_helper.rb
rewritten-0.16.2 lib/rewritten/server/test_helper.rb
rewritten-0.16.1 lib/rewritten/server/test_helper.rb
rewritten-0.16.0 lib/rewritten/server/test_helper.rb