Sha256: cbde4f7440f57dc9fb6e678ae00ad8d1af2cce535551e01287872cdab8a85d9c
Contents?: true
Size: 673 Bytes
Versions: 14
Compression:
Stored size: 673 Bytes
Contents
# -*- encoding : utf-8 -*- describe Card::Set::Type::Html do before do Card::Auth.current_id = Card::WagnBotID end it "should have special editor" do assert_view_select render_editor('Html'), 'textarea[rows="5"]' end it "should not render any content in closed view" do expect(render_card(:closed_content, type: 'Html', content: "<strong>Lions and Tigers</strong>")).to eq('') end it "should render inclusions" do expect(render_card( :core, type: 'HTML', content: '{{a}}' )).to match(/slot/) end it 'should not render uris' do expect(render_card( :core, type: 'HTML', content: 'http://google.com' )).not_to match(/\<a/) end end
Version data entries
14 entries across 14 versions & 1 rubygems