diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/integration/server_test.rb | 14 | ||||
| -rw-r--r-- | test/test_helper.rb | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/server_test.rb b/test/integration/server_test.rb new file mode 100644 index 0000000..3ca8b72 --- /dev/null +++ b/test/integration/server_test.rb @@ -0,0 +1,14 @@ +class ServerTest < Minitest::Test + include Rack::Test::Methods + + def app + Server.new + end + + def test_get + get '/' + + assert_equal 200, last_response.status + assert_empty last_response.body + end +end diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 0000000..1734719 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,3 @@ +require 'minitest/autorun' +require 'rack/test' +require 'server' |
