Sha256: 1e6cde456354259191018247ece622500e14895f59341fc97a435478bcd27242
Contents?: true
Size: 630 Bytes
Versions: 8
Compression:
Stored size: 630 Bytes
Contents
# -*- encoding : utf-8 -*- RSpec.describe Card::Set::Type::PlainText do it "has special editor" do assert_view_select render_input("Plain Text"), 'textarea[rows="5"]' end it "has special content that escapes HTML" do expect(render_card(:core, type: "Plain Text", content: "<b></b>")) .to eq "<b></b>" end specify "view core" do expect_view(:core).to have_tag("a.known-card") do with_tag "span.card-title" end end specify "view one_line_content" do rendered = format_subject.render :one_line_content expect(rendered).to have_tag "div.text-muted", /Alpha/ end end
Version data entries
8 entries across 8 versions & 1 rubygems