Sha256: c5221f073307826f11392a66bf7df7fe793acbe3ccc1fa7758e7f23b9abc11ad

Contents?: true

Size: 386 Bytes

Versions: 7

Compression:

Stored size: 386 Bytes

Contents

require 'rack/test'
require 'resque/server'

module ResqueAps
  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

7 entries across 7 versions & 1 rubygems

Version Path
resque-aps-0.9.8 lib/resque_aps/server/test_helper.rb
resque-aps-0.9.7 lib/resque_aps/server/test_helper.rb
resque-aps-0.9.6 lib/resque_aps/server/test_helper.rb
resque-aps-0.9.5 lib/resque_aps/server/test_helper.rb
resque-aps-0.9.4 lib/resque_aps/server/test_helper.rb
resque-aps-0.9.3 lib/resque_aps/server/test_helper.rb
resque-aps-0.9.2 lib/resque_aps/server/test_helper.rb