spec/models/page_spec.rb in radiant-1.0.0.rc5 vs spec/models/page_spec.rb in radiant-1.0.0

- old
+ new

@@ -16,10 +16,14 @@ end tag 'test2' do |tag| 'Another test.' end + + tag 'frozen_string' do |tag| + 'Brain'.freeze + end end describe Page, 'validations' do dataset :pages test_helper :validations @@ -441,9 +445,14 @@ end it 'should render custom pages with tags' do create_page "Test Page", :body => "<r:test1 /> <r:test2 />", :class_name => "PageSpecTestPage" pages(:test_page).should render_as('Hello world! Another test. body.') + end + + it 'should render custom pages with tags that return frozen strings' do + create_page "Test Page", :body => "<r:frozen_string />", :class_name => "PageSpecTestPage" + pages(:test_page).should render_as('Brain body.') end it 'should render blank when containing no content' do Page.new.should render_as('') end