Sha256: dd76bf5c1a8f184b083eaf8c38ce9b823b6156228c361af4b5b378ed71d83648
Contents?: true
Size: 557 Bytes
Versions: 47
Compression:
Stored size: 557 Bytes
Contents
describe 'spotlight/sir_trevor/blocks/_iframe_block.html.erb', type: :view do let(:p) { 'spotlight/sir_trevor/blocks/iframe_block.html.erb' } let(:block) do OpenStruct.new end it 'renders iframes' do block.code = "<iframe src='xyz'></iframe>" render partial: p, locals: { iframe_block: block } expect(rendered).to have_selector 'iframe[src="xyz"]' end it 'strips extra markup from the code' do block.code = '<a><b></b></a>' render partial: p, locals: { iframe_block: block } expect(rendered).to be_blank end end
Version data entries
47 entries across 47 versions & 1 rubygems