Sha256: 9560d35c56a580f19278372b70bb3528263c1c938ae90a138dd6b4a0cf31bbb5

Contents?: true

Size: 319 Bytes

Versions: 21

Compression:

Stored size: 319 Bytes

Contents

require 'spec_helper'

describe Alchemy::EssenceRichtext do

  it "should save a HTML tag free version of body column" do
		essence = Alchemy::EssenceRichtext.new(:body => '<h1>Hello!</h1><p>Welcome to Peters Petshop.</p>')
		essence.save!
		essence.stripped_body.should == "Hello!Welcome to Peters Petshop."
	end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.11 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.9.1 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.9 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.8.1 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.8 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.7 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.6 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.5 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.4 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.3 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.2 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.1 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.rc6 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.rc5 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.rc4 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.rc3 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.rc2 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.beta6 spec/models/essence_richtext_spec.rb