spec/integration/view_spec.rb in garterbelt-0.0.6 vs spec/integration/view_spec.rb in garterbelt-0.0.7
- old
+ new
@@ -7,9 +7,16 @@
it 'views with tags should render and nest correctly' do
ViewWithContentTags.new.render.should == file("view_with_tags")
end
+ it 'properly unescapes text' do
+ format_text = "You should check out my rad new site:
+ http://foo.com
+ It will blow your mind!"
+ UnescapingView.new(:format_text => format_text).render.should == file('unescaping_view')
+ end
+
describe 'variables' do
it 'calls methods on passed objects' do
user = Hashie::Mash.new(:email => 'foo@example.com')
ViewWithVars.new(:user => user).render.should == file('variables/view_with_user_email')
end
\ No newline at end of file