require 'spec_helper' require 'service_template/logger/logger' describe ServiceTemplate::Logger do context '#response' do it 'returns response in the expected format' do response = ServiceTemplate::Logger.response('foo', 'bar', 'baz') expect(response[:response][:status]).to eq('foo') expect(response[:response][:headers]).to eq('bar') expect(response[:response][:response]).to eq('baz') end end end