Sha256: e7f0dac383b89660fa39ba97d100fcc1944b52b540eaa7ced1103cd97642a3a3

Contents?: true

Size: 438 Bytes

Versions: 3

Compression:

Stored size: 438 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
service_template-0.5.2 spec/logger/logger_spec.rb
service_template-0.5.1 spec/logger/logger_spec.rb
service_template-0.5.0 spec/logger/logger_spec.rb