squall 1.0.1 → 1.0.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/lib/squall/base.rb +3 -0
- data/lib/squall/version.rb +1 -1
- data/spec/squall/base_spec.rb +2 -1
- metadata +3 -3
data/lib/squall/base.rb
CHANGED
data/lib/squall/version.rb
CHANGED
data/spec/squall/base_spec.rb
CHANGED
@@ -34,10 +34,11 @@ describe Squall::Base do
|
|
34
34
|
describe "#request" do
|
35
35
|
it "200-207 returns success" do
|
36
36
|
(200..207).each do |i|
|
37
|
-
mock_request(:get, "/#{i}", :status => [i, "OK"])
|
37
|
+
mock_request(:get, "/#{i}", :status => [i, "OK"], :body => "Body is OK")
|
38
38
|
base = Squall::Base.new
|
39
39
|
base.request(:get, "/#{i}")
|
40
40
|
base.success.should be_true
|
41
|
+
base.result.should match(/OK/)
|
41
42
|
end
|
42
43
|
end
|
43
44
|
|
metadata
CHANGED