Skip to content
Browse files

Added a failing test to highlight that Radius 0.7.2 breaks tags that …

…return frozen strings
  • Loading branch information...
1 parent f951f63 commit d53dd9b8afcd144b581e6bc24f5497bb3a8a2a7a @jfahrenkrug jfahrenkrug committed Feb 17, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/models/page_spec.rb
View
9 spec/models/page_spec.rb
@@ -18,6 +18,10 @@ def headers
tag 'test2' do |tag|
'Another test.'
end
+
+ tag 'frozen_string' do |tag|
+ 'Brain'.freeze
+ end
end
describe Page, 'validations' do
@@ -445,6 +449,11 @@ def headers
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')
+ end
+
it 'should render blank when containing no content' do
Page.new.should render_as('')
end

0 comments on commit d53dd9b

Please sign in to comment.
Something went wrong with that request. Please try again.