mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-10 00:03:09 -04:00
use an array instead of a hash for testing pretty_inspect of objects
This commit is contained in:
parent
fb6ed87714
commit
853b874480
@ -5,7 +5,7 @@ require 'logger'
|
|||||||
module Adapters
|
module Adapters
|
||||||
class LoggerTest < Faraday::TestCase
|
class LoggerTest < Faraday::TestCase
|
||||||
def conn(logger, logger_options={})
|
def conn(logger, logger_options={})
|
||||||
rubbles = { :husband => 'Barney', :wife => 'Betty'}
|
rubbles = ['Barney', 'Betty', 'Bam Bam']
|
||||||
|
|
||||||
Faraday.new do |b|
|
Faraday.new do |b|
|
||||||
b.response :logger, logger, logger_options
|
b.response :logger, logger, logger_options
|
||||||
@ -76,7 +76,7 @@ module Adapters
|
|||||||
def test_log_response_body_object
|
def test_log_response_body_object
|
||||||
app = conn(@logger, :bodies => true)
|
app = conn(@logger, :bodies => true)
|
||||||
app.get '/rubbles', nil, :accept => 'text/html'
|
app.get '/rubbles', nil, :accept => 'text/html'
|
||||||
assert_match %(:husband=>\"Barney\", :wife=>\"Betty\"), @io.string
|
assert_match %([\"Barney\", \"Betty\", \"Bam Bam\"]\n), @io.string
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user