diff options
| author | mo khan <mo.khan@gmail.com> | 2020-12-21 15:30:40 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-12-21 15:30:40 -0700 |
| commit | a4e0247551ff0e493c91c812e0ad9a3c038eee12 (patch) | |
| tree | 795d6939b32b257d91c1ee822ec6a123602660d6 /test/integration/server_test.rb | |
| parent | 26f31fe1fa573b06a8399a39a101875be7626b20 (diff) | |
test: add test for GET /
Diffstat (limited to 'test/integration/server_test.rb')
| -rw-r--r-- | test/integration/server_test.rb | 14 |
1 files changed, 14 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 |
