Sha256: db54bf9353aeb70bc2e48d2d98c606dee5966d92617e5ef609ac927db6c7c21e
Contents?: true
Size: 365 Bytes
Versions: 14
Compression:
Stored size: 365 Bytes
Contents
# test.rb require_relative 'test_helper' class ApiTest < MiniTest::Test include Rack::Test::Methods def app Sinatra::Application end def test_base get '/', :key => "WHATEVER" assert last_response.ok? assert_equal "ahoy!", last_response.body end def test_fake_route get '/whatever.json' assert !last_response.ok? end end
Version data entries
14 entries across 14 versions & 1 rubygems