Sha256: d2c69804220c23c33526b480ccda98c58d12f6fe258b84a0dc097b7639134eba

Contents?: true

Size: 667 Bytes

Versions: 5

Compression:

Stored size: 667 Bytes

Contents

require 'spec_helper'

describe 'Horizontal rule block', type: :feature, js: true do
  let(:exhibit) { FactoryGirl.create(:default_exhibit) }
  let(:exhibit_curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) }
  let!(:feature_page) { FactoryGirl.create(:feature_page, exhibit: exhibit) }
  before { login_as exhibit_curator }

  it 'allows the user to select which image in a multi image object to display' do
    exhibit.home_page.content = '[]'
    exhibit.home_page.save

    visit spotlight.exhibit_home_page_path(exhibit, exhibit.home_page)
    click_link 'Edit'

    add_widget 'rule'

    save_page

    expect(page).to have_css('hr')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-spotlight-0.7.2 spec/features/javascript/rule_block_spec.rb
blacklight-spotlight-0.7.1 spec/features/javascript/rule_block_spec.rb
blacklight-spotlight-0.7.0 spec/features/javascript/rule_block_spec.rb
blacklight-spotlight-0.6.0 spec/features/javascript/rule_block_spec.rb
blacklight-spotlight-0.5.0 spec/features/javascript/rule_block_spec.rb