Sha256: 0c37e3bba40db5296abf5e80d239910b55818bae6c492f329bf256222aba7132
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
lib = File.expand_path('../../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'rack/test' require 'test/unit' require 'rack/server_status' class StatusPageTest < Test::Unit::TestCase include Rack::Test::Methods def app Rack::ServerStatus.new('StatusPageTest') end def test_status get "/status" assert last_response.ok? end def test_body get "/status" assert last_response.body == 'OK' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-server-status-0.0.2 | spec/rack_server_status_spec.rb |
rack-server-status-0.0.1 | spec/rack_server_status_spec.rb |