webapp 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/templates/test/server_test.rb +7 -4
- data/webapp.gemspec +1 -1
- metadata +1 -1
@@ -1,11 +1,14 @@
|
|
1
1
|
require File.join(File.dirname(__FILE__), 'test_helper')
|
2
|
-
require
|
2
|
+
require File.join(Project.root, 'lib', 'server')
|
3
|
+
require 'rack/test'
|
3
4
|
|
4
5
|
class ServerTest < Test::Unit::TestCase
|
5
6
|
include Rack::Test::Methods
|
6
7
|
def app ; Sinatra::Application end
|
7
8
|
|
8
|
-
def
|
9
|
-
|
9
|
+
def test_homepage_whatever
|
10
|
+
get '/'
|
11
|
+
assert_equal(200, last_response.status)
|
12
|
+
assert_equal('Hello', last_response.body)
|
10
13
|
end
|
11
|
-
end
|
14
|
+
end
|
data/webapp.gemspec
CHANGED