Sha256: 48361548b82f6dd2cd7faadc3909fb53a850f92c34c9a6440766c54468a99cdd

Contents?: true

Size: 528 Bytes

Versions: 9

Compression:

Stored size: 528 Bytes

Contents

require 'spec_helper'

module Alchemy
  describe EssenceRichtext do
    let(:essence) { EssenceRichtext.new(:body => '<h1>Hello!</h1><p>Welcome to Peters Petshop.</p>') }

    it_behaves_like "an essence" do
      let(:essence)          { EssenceRichtext.new }
      let(:ingredient_value) { '<h1>Hello!</h1><p>Welcome to Peters Petshop.</p>' }
    end

    it "should save a HTML tag free version of body column" do
      essence.save
      essence.stripped_body.should == "Hello!Welcome to Peters Petshop."
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-3.0.4 spec/models/essence_richtext_spec.rb
alchemy_cms-3.0.3 spec/models/essence_richtext_spec.rb
alchemy_cms-3.0.2 spec/models/essence_richtext_spec.rb
alchemy_cms-3.0.1 spec/models/essence_richtext_spec.rb
alchemy_cms-3.0.0 spec/models/essence_richtext_spec.rb
alchemy_cms-3.0.0.rc8 spec/models/essence_richtext_spec.rb
alchemy_cms-3.0.0.rc7 spec/models/essence_richtext_spec.rb
alchemy_cms-3.0.0.rc6 spec/models/essence_richtext_spec.rb
alchemy_cms-3.0.0.rc5 spec/models/essence_richtext_spec.rb