Sha256: 0176b74a3ce54c03e87d3647d497a9926af5eb63daa397fc61e46ab882691c31
Contents?: true
Size: 679 Bytes
Versions: 30
Compression:
Stored size: 679 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
30 entries across 30 versions & 2 rubygems