Sha256: af3980ae0cf9da2142f37eb11d9d999270e5077797525637adfaf6dc00502238

Contents?: true

Size: 415 Bytes

Versions: 5

Compression:

Stored size: 415 Bytes

Contents

require 'spec_helper'

RSpec.describe 'Embed', type: :feature do
  before do
    CatalogController.blacklight_config.show.oembed_field = :id
  end

  it 'embeds the widget on the show page' do
    visit '/catalog/2007020969'

    expect(page).to have_css '.oembed-widget'

    embed_div = find('.oembed-widget div')

    expect(embed_div['data-async-embed-url']).to include '/oembed/embed?url=2007020969'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-oembed-1.4.2 spec/features/embed_spec.rb
blacklight-oembed-1.4.1 spec/features/embed_spec.rb
blacklight-oembed-1.4.0 spec/features/embed_spec.rb
blacklight-oembed-1.3.0 spec/features/embed_spec.rb
blacklight-oembed-1.2.0 spec/features/embed_spec.rb