Class: ServerTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- ServerTest
- Includes:
- Rack::Test::Methods
- Defined in:
- lib/templates/test/server_test.rb
Instance Method Summary collapse
Instance Method Details
#app ⇒ Object
7 |
# File 'lib/templates/test/server_test.rb', line 7 def app ; Sinatra::Application end |
#test_homepage_whatever ⇒ Object
9 10 11 12 13 |
# File 'lib/templates/test/server_test.rb', line 9 def test_homepage_whatever get '/' assert_equal(200, last_response.status) assert_equal('Hello', last_response.body) end |