Sha256: 6ab50011d1ba2f531c20872aab2561edcaccc80e8bfafd69ab6e62f53fb58cd5
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
require 'spec_helper' 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 'should 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 'should render a heading' do expect(rendered).to have_css('h2', text: 'Building this feature page') end it 'should render an ordered list of steps' do expect(rendered).to have_css('ol li', count: 6) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.4.1 | spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb |