Sha256: 5a873d909f6368710e805d6e2477953f43e9b62767a828381b22a4cc8715699c
Contents?: true
Size: 788 Bytes
Versions: 6
Compression:
Stored size: 788 Bytes
Contents
# -*- encoding : utf-8 -*- RSpec.describe Card::Set::Type::Html do before do Card::Auth.signin Card::WagnBotID end it "has special editor" do assert_view_select render_input("Html"), 'textarea[rows="5"]' end it "renders no html tags in one_line_content view" do rendered = render_view :one_line_content, type: "HTML", content: "<strong>Lions and Tigers</strong>" expect(rendered.strip).to eq "Tempo Rary" end it "renders nests" do rendered = render_card :core, type: "HTML", content: "{{a}}" expect(rendered).to match(/slot/) end it "does not render uris" do rendered = render_card :core, type: "HTML", content: "http://google.com" expect(rendered).not_to match(/\<a/) end end
Version data entries
6 entries across 6 versions & 1 rubygems