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

Version Path
card-1.17.4 mod/05_standard/spec/set/type/html_spec.rb
card-1.17.3 mod/05_standard/spec/set/type/html_spec.rb
card-1.17.2 mod/05_standard/spec/set/type/html_spec.rb
card-1.17.1 mod/05_standard/spec/set/type/html_spec.rb
card-1.17.0 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.15 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.14 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.13 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.12 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.11 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.10 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.9 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.8 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.7 mod/05_standard/spec/set/type/html_spec.rb