1
0
mirror of https://github.com/danbee/micropub.git synced 2025-03-04 08:59:13 +00:00
micropub/test/requests/hello_world_test.rb
Daniel Barber 20b68453dd
First couple of request specs
Added Mocha because standard minitest mocking/stubbing kinda sucks.
2019-11-16 16:05:26 -05:00

16 lines
270 B
Ruby

require "test_helper"
class HelloWorldTest < MiniTest::Unit::TestCase
include Rack::Test::Methods
def app
Micropub::Webserver
end
def test_hello_world
get '/'
assert last_response.ok?
assert_equal "Hello, World!", last_response.body
end
end