Sha256: 52ccc78e6a3753158eba180e5fd9a7df4f9fb089955b54b90805b3951121604e

Contents?: true

Size: 533 Bytes

Versions: 18

Compression:

Stored size: 533 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
      expect(essence.stripped_body).to eq("Hello!Welcome to Peters Petshop.")
    end

  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.3 spec/models/essence_richtext_spec.rb
lc_alchemy_cms-3.2.1 spec/models/essence_richtext_spec.rb
lc_alchemy_cms-3.2.0 spec/models/essence_richtext_spec.rb
alchemy_cms-3.2.0 spec/models/essence_richtext_spec.rb
alchemy_cms-3.2.0.rc1 spec/models/essence_richtext_spec.rb
alchemy_cms-3.2.0.beta spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.1 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0.rc3 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0.rc2 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0.rc1 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0.beta6 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0.beta5 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0.beta4 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0.beta3 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0.beta2 spec/models/essence_richtext_spec.rb
alchemy_cms-3.1.0.beta1 spec/models/essence_richtext_spec.rb