Sha256: a62e02cd7e4572e820b8d51831bacf5762b0c0a31ebcf7ddb03d8d2c8ea946cf

Contents?: true

Size: 383 Bytes

Versions: 133

Compression:

Stored size: 383 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

133 entries across 133 versions & 14 rubygems

Version Path
rewritten-0.14.1 lib/rewritten/server/test_helper.rb
rewritten-0.14.0 lib/rewritten/server/test_helper.rb
rewritten-0.13.1 lib/rewritten/server/test_helper.rb
rewritten-0.13.0 lib/rewritten/server/test_helper.rb
resque-1.25.2 lib/resque/server/test_helper.rb
resque-1.26.pre.0 lib/resque/server/test_helper.rb
rewritten-0.12.1 lib/rewritten/server/test_helper.rb
rewritten-0.12.0 lib/rewritten/server/test_helper.rb
resque_signal_from_child-1.25.1 lib/resque/server/test_helper.rb
rewritten-0.11.1 lib/rewritten/server/test_helper.rb
rewritten-0.11.0 lib/rewritten/server/test_helper.rb
resque-1.25.1 lib/resque/server/test_helper.rb
resque-1.25.0 lib/resque/server/test_helper.rb
resque-1.25.0.pre lib/resque/server/test_helper.rb
classiccms-0.7.2 vendor/bundle/gems/resque-1.20.0/lib/resque/server/test_helper.rb
classiccms-0.7.1 vendor/bundle/gems/resque-1.20.0/lib/resque/server/test_helper.rb
rewritten-0.10.0 lib/rewritten/server/test_helper.rb
rewritten-0.9.1 lib/rewritten/server/test_helper.rb
classiccms-0.7.0 vendor/bundle/gems/resque-1.20.0/lib/resque/server/test_helper.rb
rewritten-0.9.0 lib/rewritten/server/test_helper.rb