Sha256: 0222f810ef0c7d5d995d4dfc8037773fe3720c41640c92701065419b4ebfb665

Contents?: true

Size: 615 Bytes

Versions: 47

Compression:

Stored size: 615 Bytes

Contents

describe 'spotlight/feature_pages/_empty.html.erb', type: :view do
  let(:can?) { false }
  before do
    allow(view).to receive_messages(can?: can?)
    render
  end
  describe 'when a user cannot edit' do
    it 'does not render an ordered list of steps' do
      expect(rendered).to_not have_css('ol')
    end
  end
  describe 'when a user can edit' do
    let(:can?) { true }

    it 'renders a heading' do
      expect(rendered).to have_css('h2', text: 'Building this feature page')
    end

    it 'renders an ordered list of steps' do
      expect(rendered).to have_css('ol li', count: 6)
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
blacklight-spotlight-2.0.2 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-2.0.1 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-2.0.0 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc6 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc5 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc4 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc3 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc2 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc1 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-1.5.1 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-1.4.1 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-1.4.0 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-1.3.0 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-1.2.0 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-1.1.0 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-1.0.0 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-1.0.0.alpha2 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-1.0.0.alpha1 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-0.34.1 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
blacklight-spotlight-0.34.0 spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb