Sha256: cb5f61e8bda036c6604155231705d39159762dba40c567d49b9578fa59c9c668

Contents?: true

Size: 457 Bytes

Versions: 27

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

module Alchemy
  describe EssenceHtml do
    let (:essence) { EssenceHtml.new(source: '<p>hello!</p>') }

    it_behaves_like "an essence" do
      let(:essence)          { EssenceHtml.new }
      let(:ingredient_value) { '<p>hello!</p>' }
    end

    describe '#preview_text' do
      it "should return html escaped source code" do
        expect(essence.preview_text).to eq('&lt;p&gt;hello!&lt;/p&gt;')
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

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