Sha256: a2f92ff7c2c467f62a30280cd3c0d132f2532ce7a81b25eb7880726cb2183267

Contents?: true

Size: 641 Bytes

Versions: 2

Compression:

Stored size: 641 Bytes

Contents

require 'spec_helper'

describe "catalog/_document_slideshow.html.erb" do
  let(:blacklight_config) { Blacklight::Configuration.new }

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

  before do
    view.stub(blacklight_config: blacklight_config)
    view.stub(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

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-gallery-0.1.0 spec/views/catalog/_document_slideshow.html.erb_spec.rb
blacklight-gallery-0.0.2 spec/views/catalog/_document_slideshow.html.erb_spec.rb