Sha256: af40a2d63850578e1dc4efebee69c1c791dfd505db8a23fa7142740115e6d138
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
require 'spec_helper' describe Alchemy::Admin::ContentsHelper do before(:each) do @element = FactoryGirl.create(:element) end it "should render a dom id" do helper.content_dom_id(@element.contents.first).should match(/essence_text_\d{1,}/) end it "should render the content name" do helper.render_content_name(@element.contents.first).should == "Intro" end it "should render a link to add new content to element" do helper.render_new_content_link(@element).should match(/Alchemy.openWindow.+\/admin\/elements\/#{@element.id}\/contents\/new/m) end it "should render a link to create a content in element" do helper.render_create_content_link(@element).should match(/a.+href.*admin\/contents.+class.+button new_content_link.*data-method.+post/) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.2.rc8 | spec/helpers/admin/contents_helper_spec.rb |
alchemy_cms-2.2.rc7 | spec/helpers/admin/contents_helper_spec.rb |