Sha256: c5ac87b43d6ddb13bf518fbd4d1d148c4fe09512df1f23c63a7988bd2d8740ba

Contents?: true

Size: 701 Bytes

Versions: 7

Compression:

Stored size: 701 Bytes

Contents

require 'spec_helper'

describe "catalog/_document_slideshow.html.erb", :type => :view do
  let(:blacklight_config) { Blacklight::Configuration.new }

  let(:document) { stub_model(::SolrDocument) }

  before do
    allow(view).to receive_messages(blacklight_config: blacklight_config)
    allow(view).to receive_messages(documents: [document])
  end

  it "should have a edit tag form" do
    render
    expect(rendered).to have_selector '#slideshow-modal'
    expect(rendered).to have_selector '[data-slide="prev"]'
    expect(rendered).to have_selector '[data-slide="next"]'
    expect(rendered).to have_selector '[data-slide-to="0"][data-toggle="modal"][data-target="#slideshow-modal"]'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-gallery-0.4.1 spec/views/catalog/_document_slideshow.html.erb_spec.rb
blacklight-gallery-0.4.0 spec/views/catalog/_document_slideshow.html.erb_spec.rb
blacklight-gallery-0.3.0 spec/views/catalog/_document_slideshow.html.erb_spec.rb
blacklight-gallery-0.2.1 spec/views/catalog/_document_slideshow.html.erb_spec.rb
blacklight-gallery-0.2.0 spec/views/catalog/_document_slideshow.html.erb_spec.rb
blacklight-gallery-0.1.2 spec/views/catalog/_document_slideshow.html.erb_spec.rb
blacklight-gallery-0.1.1 spec/views/catalog/_document_slideshow.html.erb_spec.rb