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

Version Path
card-1.16.6 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.5 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.4 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.3 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.2 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.1 mod/05_standard/spec/set/type/html_spec.rb
card-1.16.0 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.7 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.6 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.5 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.4 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.3 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.2 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.1 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.0 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.pre2 mod/05_standard/spec/set/type/html_spec.rb
card-1.15.pre mod/05_standard/spec/set/type/html_spec.rb
wagn-1.14.9 mod/05_standard/spec/set/type/html_spec.rb
wagn-1.14.8 mod/05_standard/spec/set/type/html_spec.rb
wagn-1.14.7 mod/05_standard/spec/set/type/html_spec.rb