celluloid-http 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/celluloid-http/http.rb +4 -0
- data/lib/celluloid-http/version.rb +1 -1
- data/test/unit/http_test.rb +7 -0
- metadata +1 -1
data/lib/celluloid-http/http.rb
CHANGED
data/test/unit/http_test.rb
CHANGED
@@ -11,4 +11,11 @@ class HttpTest < TestCase
|
|
11
11
|
assert_match /Wikipedia, the free encyclopedia/, response.body
|
12
12
|
end
|
13
13
|
|
14
|
+
def test_http_get_method
|
15
|
+
stub_connection_with_fixture("en.wikipedia.org")
|
16
|
+
|
17
|
+
response = Celluloid::Http.get('http://en.wikipedia.org/wiki/Http')
|
18
|
+
assert_match /Wikipedia, the free encyclopedia/, response.body
|
19
|
+
end
|
20
|
+
|
14
21
|
end
|