Class: ServerTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Includes:
Rack::Test::Methods
Defined in:
lib/templates/test/server_test.rb

Instance Method Summary collapse

Instance Method Details

#appObject



7
# File 'lib/templates/test/server_test.rb', line 7

def app ; Sinatra::Application end

#test_homepage_whateverObject



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