spec/lib/haml_layouts/models/layout_spec.rb in radiant-layouts-extension-1.1.0 vs spec/lib/haml_layouts/models/layout_spec.rb in radiant-layouts-extension-1.1.1
- old
+ new
@@ -7,15 +7,15 @@
describe 'content' do
context 'a haml layout' do
it 'should return html rendered' do
expected = <<-CONTENT
<r:inside_layout name='parent'>
- <h1>
+ <h1 data-layout="<r:find url='find'><r:layout/></r:find>" id='<r:layout/>'>
<r:layout></r:layout>
</h1>
</r:inside_layout>
CONTENT
- layouts(:haml).content.should === expected
+ layouts(:haml).rendered_content.should === expected
end
end
end
describe 'is_haml?' do
\ No newline at end of file