Sha256: 545567311e521ac7dbdf600a12f957a211538796e8a0e82ff48a8f49ae07a7d3

Contents?: true

Size: 686 Bytes

Versions: 7

Compression:

Stored size: 686 Bytes

Contents

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

describe Card::Set::Type::Html do
  before do
    Account.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
    render_card(:closed_content, :type=>'Html', :content=>"<strong>Lions and Tigers</strong>").should == ''
  end
  
  it "should render inclusions" do
    render_card( :core, :type=>'HTML', :content=>'{{a}}' ).should =~ /slot/
  end
  
  it 'should not render uris' do
    render_card( :core, :type=>'HTML', :content=>'http://google.com' ).should_not =~ /\<a/
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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