Sha256: 9af588ba8a65d05acf3a19065af8506c0eb368abc90380a38938029dcfe9a932

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

require 'spec_helper'

describe Sekken::Response do
  subject(:response) do
    response = Sekken::Response.new(nil)
    response.send(:instance_variable_set, :@hash, {
      :envelope => {:header => 'the-spice-must-flow'}
    })
    response
  end

  describe '#headers' do
    it 'returns the headers for the underlying response' do
      expect(response.header).to eq('the-spice-must-flow')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sekken-0.3.0 spec/sekken/response_spec.rb
sekken-0.2.0 spec/sekken/response_spec.rb
sekken-0.1.0 spec/sekken/response_spec.rb