Sha256: 7c9fc3984c55a25bfb3659b90ee3ec9809ad1216df833747f9e9cba52415a553
Contents?: true
Size: 648 Bytes
Versions: 22
Compression:
Stored size: 648 Bytes
Contents
# frozen_string_literal: true 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).not_to 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
22 entries across 22 versions & 1 rubygems