test/templates_test.rb in sinatra-0.9.4 vs test/templates_test.rb in sinatra-0.9.5

- old
+ new

@@ -66,13 +66,13 @@ render_app { render :test, :hello, :layout => :layout3 } assert ok? assert_equal "Layout 3!\nHello World!\n", body end - it 'loads templates from source file with use_in_file_templates!' do + it 'loads templates from source file with inline templates' do mock_app { - use_in_file_templates! + enable :inline_templates } assert_equal "this is foo\n\n", @app.templates[:foo][:template] assert_equal "X\n= yield\nX\n", @app.templates[:layout][:template] end @@ -80,13 +80,13 @@ render_app { render :test, :hello, :views => options.views + '/foo' } assert_equal "from another views directory\n", body end - test 'use_in_file_templates simply ignores IO errors' do + test 'inline_templates simply ignores IO errors' do assert_nothing_raised { mock_app { - use_in_file_templates!('/foo/bar') + set :inline_templates, '/foo/bar' } } assert @app.templates.empty? end