Sha256: 40bbc594001c5c0574c4eb5aeb7dd5a8dcb52ddb7a133f0cef12284934a7aad7
Contents?: true
Size: 883 Bytes
Versions: 4
Compression:
Stored size: 883 Bytes
Contents
require 'spec_helper' describe Alchemy::Admin::EssencesHelper do before(:each) do @element = Factory(: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
4 entries across 4 versions & 1 rubygems