squall 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- 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