Sha256: 15b90547dd33e8f2206410375a2c219dc78cd69329ab3f03c73ba663c86bdc8c

Contents?: true

Size: 386 Bytes

Versions: 56

Compression:

Stored size: 386 Bytes

Contents

require 'spec_helper'

describe 'Auto-include resources' do
  let(:entries) { vcr('entries') { create_client.entries } } # entries come with asset includes

  it 'replaces Contentful::Links which are actually included with the resource' do
    asset = entries.items[1].fields[:image]

    expect(asset).not_to be_a Contentful::Link
    expect(asset).to be_a Contentful::Asset
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
contentful-2.16.0 spec/auto_includes_spec.rb
contentful-2.15.4 spec/auto_includes_spec.rb
contentful-2.15.3 spec/auto_includes_spec.rb
contentful-2.15.2 spec/auto_includes_spec.rb
contentful-2.15.1 spec/auto_includes_spec.rb
contentful-2.15.0 spec/auto_includes_spec.rb
contentful-2.14.0 spec/auto_includes_spec.rb
contentful-2.13.3 spec/auto_includes_spec.rb
contentful-2.13.2 spec/auto_includes_spec.rb
contentful-2.13.1 spec/auto_includes_spec.rb
contentful-2.13.0 spec/auto_includes_spec.rb
contentful-2.12.0 spec/auto_includes_spec.rb
contentful-2.11.1 spec/auto_includes_spec.rb
contentful-2.11.0 spec/auto_includes_spec.rb
contentful-2.10.1 spec/auto_includes_spec.rb
contentful-2.10.0 spec/auto_includes_spec.rb
contentful-2.9.4 spec/auto_includes_spec.rb
contentful-2.9.3 spec/auto_includes_spec.rb
contentful-2.9.2 spec/auto_includes_spec.rb
contentful-2.9.1 spec/auto_includes_spec.rb