celluloid-http 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,4 +9,8 @@ module Celluloid::Http::Http
9
9
  response
10
10
  end
11
11
 
12
+ def get(url)
13
+ send_request Celluloid::Http::Request.new url
14
+ end
15
+
12
16
  end
@@ -1,5 +1,5 @@
1
1
  module Celluloid
2
2
  module Http
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celluloid-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: