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
resque-2.0.0 lib/resque/server/test_helper.rb
resque_admin-1.0.3 lib/resque/server/test_helper.rb
resque_admin-1.0.2 lib/resque/server/test_helper.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/resque-1.27.4/lib/resque/server/test_helper.rb
resque-1.27.4 lib/resque/server/test_helper.rb
resque-1.27.3 lib/resque/server/test_helper.rb
resque-1.27.2 lib/resque/server/test_helper.rb
resque-1.27.1 lib/resque/server/test_helper.rb
resque-1.27.0 lib/resque/server/test_helper.rb
resqueue-1.0.0 lib/resque/server/test_helper.rb
resque-master-0.0.3 lib/resque/server/test_helper.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/resque-1.26.0/lib/resque/server/test_helper.rb
resque-1.26.0 lib/resque/server/test_helper.rb
classiccms-0.7.5 vendor/bundle/gems/resque-1.20.0/lib/resque/server/test_helper.rb
classiccms-0.7.4 vendor/bundle/gems/resque-1.20.0/lib/resque/server/test_helper.rb
classiccms-0.7.3 vendor/bundle/gems/resque-1.20.0/lib/resque/server/test_helper.rb
rewritten-0.15.2 lib/rewritten/server/test_helper.rb
rewritten-0.15.1 lib/rewritten/server/test_helper.rb
rewritten-0.15.0 lib/rewritten/server/test_helper.rb
rewritten-0.14.2 lib/rewritten/server/test_helper.rb