15 lines
328 B
Ruby
15 lines
328 B
Ruby
|
require File.expand_path(File.dirname(__FILE__) + '/helper')
|
||
|
|
||
|
describe "Rendering Extensions" do
|
||
|
context 'for haml' do
|
||
|
should 'render haml_tag correctly' do
|
||
|
mock_app do
|
||
|
get('/') { render :haml, '-haml_tag :div'}
|
||
|
end
|
||
|
|
||
|
get '/'
|
||
|
assert_match '<div></div>', last_response.body
|
||
|
end
|
||
|
end
|
||
|
end
|