From 32edb874f2fa2aefe363ec9d92d5f529cec489d8 Mon Sep 17 00:00:00 2001 From: David Underwood Date: Tue, 25 Jun 2013 11:40:35 -0400 Subject: render titles correctly --- test/app_test.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/app_test.rb b/test/app_test.rb index 97aad3a..8b1be19 100644 --- a/test/app_test.rb +++ b/test/app_test.rb @@ -40,7 +40,7 @@ class AppTest < Dashing::Test assert_equal 200, last_response.status assert_equal 8, parse_data(@connection[0])['value'] end - + def test_redirect_to_default_dashboard with_generated_project do Sinatra::Application.settings.default_dashboard = 'test1' @@ -76,6 +76,13 @@ class AppTest < Dashing::Test end end + def test_page_title_set_correctly + with_generated_project do + get '/sampletv' + assert_include last_response.body, '1080p dashboard' + end + end + begin require 'haml' -- cgit v1.2.3