Permalink
Browse files

default block doesn't be surrounded by unit div/span

  • Loading branch information...
1 parent cca00a6 commit a08ac88682fcbd8ea562a5f94bba3473c6037c93 @eudoxa eudoxa committed Apr 23, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/chanko/function.rb
  2. +1 −1 spec/lib/function_spec.rb
@@ -66,6 +66,7 @@ def invoke!(scope, options={})
end
def view_result(result, type)
+ return result if self.unit.default?
case type
when :plain
result
@@ -105,7 +105,7 @@
end
it 'should escape' do
- default_function.invoke!(view, :capture => true).should == '<div class="unit unit__ unit______default__">' + ERB::Util.html_escape('<div>hoge</div>') + '</div>'
+ default_function.invoke!(view, :capture => true).should == ERB::Util.html_escape('<div>hoge</div>')
end
end

0 comments on commit a08ac88

Please sign in to comment.