Sha256: b948117fd998316b5594a29c803d65a483487f2a1292aa412806a95c26fb9604

Contents?: true

Size: 301 Bytes

Versions: 12

Compression:

Stored size: 301 Bytes

Contents

require 'spec_helper'

describe EssenceRichtext do

  it "should save a HTML tag free version of body column" do
		essence = 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

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-2.0.7 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0.6.1 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0.5 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0.4 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0.3.1 spec/models/essence_richtext_spec.rb
alchemy_cms-2.1.beta1 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0.3 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0.2 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0.1 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0.rc6 spec/models/essence_richtext_spec.rb
alchemy_cms-2.0.rc5 spec/models/essence_richtext_spec.rb