use render_app instead of mock_app in test

This commit is contained in:
Konstantin Haase 2013-03-10 17:00:52 +01:00
parent 397dbc768c
commit 8fa3c5cc0f
1 changed files with 5 additions and 8 deletions

View File

@ -223,16 +223,13 @@ class TemplatesTest < Test::Unit::TestCase
end
it 'sets layout-only options via layout_options' do
mock_app do
get '/' do
render(:str, :in_a,
:views => settings.views + '/a',
:layout_options => { :views => settings.views },
:layout => :layout2)
end
render_app do
render(:str, :in_a,
:views => settings.views + '/a',
:layout_options => { :views => settings.views },
:layout => :layout2)
end
get '/'
assert ok?
assert_equal "<h1>String Layout!</h1>\nGimme an A!\n", body
end