Sha256: 76ff40b2139ef1ca55d8557b2fffa1ce55674bf0bce4da120f6a6ab9b6c3ba80

Contents?: true

Size: 773 Bytes

Versions: 10

Compression:

Stored size: 773 Bytes

Contents

require 'spec_helper'

describe Alchemy::EssencesHelper do

  before(:each) do
    @element = FactoryGirl.create(:element)
    @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

10 entries across 10 versions & 1 rubygems

Version Path
alchemy_cms-2.2.4 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.2.3.2 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.2.3.1 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.2.2 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.2.1 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.2.0 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.2.rc15 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.2.rc14 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.2.rc13 spec/helpers/essences_helper_spec.rb
alchemy_cms-2.2.rc11 spec/helpers/essences_helper_spec.rb