Sha256: 4894b9c599c69f2794bd2678b895bf3889750558c31fd11085e58cef554c2206
Contents?: true
Size: 894 Bytes
Versions: 2
Compression:
Stored size: 894 Bytes
Contents
require 'spec_helper' describe Alchemy::Admin::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 editor" do content = @element.content_by_name('intro') render_essence_editor(content).should match(/input.+type="text".+value="hello!/) end it "should render an essence editor by name" do render_essence_editor_by_name(@element, 'intro').should match(/input.+type="text".+value="hello!/) end it "should render an essence editor by type" do render_essence_editor_by_type(@element, 'EssenceText').should match(/input.+type="text".+value="hello!/) end it "should render an essence editor by position" do render_essence_editor_by_position(@element, 1).should match(/input.+type="text".+value="hello!/) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.2.rc8 | spec/helpers/admin/essences_helper_spec.rb |
alchemy_cms-2.2.rc7 | spec/helpers/admin/essences_helper_spec.rb |