Skip to content

Commit

Permalink
Refactored the response test to properly display nil
Browse files Browse the repository at this point in the history
  • Loading branch information
NateBarnes committed May 26, 2011
1 parent 7a1704f commit 55c8aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/faraday/response_spec.rb
Expand Up @@ -32,7 +32,7 @@
end
else
[nil, "error", "errors"].each do |body|
context "when HTTP status is #{status} and body is #{body}" do
context "when HTTP status is #{status} and body is #{body||='nil'}" do
before do
body_message = '{"'+body+'":"test"}' unless body.nil?
stub_get('statuses/user_timeline.json').
Expand Down

0 comments on commit 55c8aef

Please sign in to comment.