Sha256: 4f16671ed869a97c4c1d47cd818e93bd6e7c012942766c93e2ecc78320d01034

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'

describe "Masonry view", :type => :feature do
  before { visit catalog_index_path :q => 'medicine', :view => 'masonry' }

  it "should display results in a galley view" do
    expect(page).to have_selector("#documents[data-behavior='masonry-gallery']")
    expect(page).to have_selector(".masonry.document .thumbnail")
    expect(page).to have_selector('.masonry.document .caption', text: "Strong Medicine speaks", visible: false)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-gallery-0.4.1 spec/features/masonry_spec.rb
blacklight-gallery-0.4.0 spec/features/masonry_spec.rb
blacklight-gallery-0.3.0 spec/features/masonry_spec.rb
blacklight-gallery-0.2.1 spec/features/masonry_spec.rb
blacklight-gallery-0.2.0 spec/features/masonry_spec.rb