Sha256: 5dff369a5116ba66ef36479310f6ad4b0066ad00b83b953ef3cd652571dd7755

Contents?: true

Size: 381 Bytes

Versions: 22

Compression:

Stored size: 381 Bytes

Contents

require 'rails_helper'

describe LHC::Caching do
  context 'to_cache' do
    it 'returns a marshalable object to store in the cache' do
      expect do
        response = Typhoeus::Response.new(headers: { 'Accept' => 'application/json' })
        Marshal.dump(
          LHC::Caching.new(response).send(:to_cache, response)
        )
      end.not_to raise_error
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
lhc-10.1.2 spec/interceptors/caching/to_cache_spec.rb
lhc-10.1.1 spec/interceptors/caching/to_cache_spec.rb
lhc-10.1.0 spec/interceptors/caching/to_cache_spec.rb
lhc-10.0.2 spec/interceptors/caching/to_cache_spec.rb
lhc-9.4.4 spec/interceptors/caching/to_cache_spec.rb
lhc-10.0.1 spec/interceptors/caching/to_cache_spec.rb
lhc-10.0.0 spec/interceptors/caching/to_cache_spec.rb
lhc-9.4.3 spec/interceptors/caching/to_cache_spec.rb
lhc-9.4.2 spec/interceptors/caching/to_cache_spec.rb
lhc-9.4.1 spec/interceptors/caching/to_cache_spec.rb
lhc-9.4.0 spec/interceptors/caching/to_cache_spec.rb
lhc-9.3.1 spec/interceptors/caching/to_cache_spec.rb
lhc-9.3.0 spec/interceptors/caching/to_cache_spec.rb
lhc-9.2.0 spec/interceptors/caching/to_cache_spec.rb
lhc-9.1.2 spec/interceptors/caching/to_cache_spec.rb
lhc-9.1.2.pre spec/interceptors/caching/to_cache_spec.rb
lhc-9.1.1 spec/interceptors/caching/to_cache_spec.rb
lhc-8.1.1 spec/interceptors/caching/to_cache_spec.rb
lhc-9.1.0 spec/interceptors/caching/to_cache_spec.rb
lhc-9.0.0 spec/interceptors/caching/to_cache_spec.rb