Sha256: e082380fe6876aae3a016888fc53744d089923706f7981509cd092bc53c82091

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'wagn/spec_helper'

describe Card::Set::Type::PlainText do
  it "should have special editor" do
    assert_view_select render_editor('Plain Text'), 'textarea[rows="5"]'
  end

  it "should have special content that escapes HTML" do
    render_card(:core, :type=>'Plain Text', :content=>"<b></b>").should == '&lt;b&gt;&lt;/b&gt;'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wagn-1.12.13 spec/mods/standard/sets/type/plain_text_spec.rb
wagn-1.12.12 spec/mods/standard/sets/type/plain_text_spec.rb
wagn-1.12.11 spec/mods/standard/sets/type/plain_text_spec.rb
wagn-1.12.10 spec/mods/standard/sets/type/plain_text_spec.rb
wagn-1.12.9 spec/mods/standard/sets/type/plain_text_spec.rb
wagn-1.12.8 spec/mods/standard/sets/type/plain_text_spec.rb
wagn-1.12.7 spec/mods/standard/sets/type/plain_text_spec.rb