hugs 2.5.1 → 2.5.2
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.
- data/Gemfile.lock +1 -1
- data/lib/hugs/client.rb +1 -1
- data/lib/hugs/version.rb +1 -1
- data/test/lib/hugs/client_test.rb +8 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/hugs/client.rb
CHANGED
data/lib/hugs/version.rb
CHANGED
@@ -101,6 +101,14 @@ describe Hugs::Client do
|
|
101
101
|
response.body.must_be_kind_of Nokogiri::XML::Document
|
102
102
|
end
|
103
103
|
end
|
104
|
+
|
105
|
+
### TODO: webmock seems to turn nil into "" body. Cannot test a failing case.
|
106
|
+
### TODO: fix when I can.
|
107
|
+
it "doesn't parse a nil body" do
|
108
|
+
#stub_request(:head, url).to_return :body => nil
|
109
|
+
|
110
|
+
#@instance.send :response_for, Net::HTTP::Head, "/", {}
|
111
|
+
end
|
104
112
|
end
|
105
113
|
|
106
114
|
describe "encodes request" do
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: hugs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.5.
|
5
|
+
version: 2.5.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- John Dewey
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-
|
13
|
+
date: 2011-04-07 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|