Sha256: bde04b70ba2d2b0f51b2a44ca8f0082f37ffa458209e67189421ea5026d86e3e
Contents?: true
Size: 904 Bytes
Versions: 2
Compression:
Stored size: 904 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 it "should render an essence view by position" do render_essence_view_by_position(@element, 1).should match(/hello!/) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.2.rc8 | spec/helpers/essences_helper_spec.rb |
alchemy_cms-2.2.rc7 | spec/helpers/essences_helper_spec.rb |