Sha256: 41245529061cf60814c8b635b73bff79e63f61c4f7115f3a5511153c26e18eed

Contents?: true

Size: 806 Bytes

Versions: 38

Compression:

Stored size: 806 Bytes

Contents

require 'spec_helper'

describe Alchemy::EssencesHelper do

  let(:element) { FactoryGirl.create(:element, :create_contents_after_create => true) }

  before do
    element.content_by_name('intro').essence.update_attributes(:body => 'hello!')
  end

  it "should render an essence" do
    content = element.content_by_name('intro')
    render_essence(content).should match(/hello!/)
  end

  it "should render an essence view" do
    content = element.content_by_name('intro')
    render_essence_view(content).should match(/hello!/)
  end

  it "should render an essence view by name" do
    render_essence_view_by_name(element, 'intro').should match(/hello!/)
  end

  it "should render an essence view by type" do
    render_essence_view_by_type(element, 'EssenceText').should match(/hello!/)
  end

end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.9.0 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.8.3 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.7.5 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.6.3 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.7.4 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.8.2 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.8.1 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.7.3 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.7.2 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.7.1 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.7.0 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.6.2.1 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.6.2 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.6.1 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.6.0 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.6.0.rc5 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.5.3.1 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.5.3 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.5.2.2 spec/helpers/essences_helper_spec.rb