diff options
author | David Underwood <david.underwood@jadedpixel.com> | 2013-06-25 11:40:35 -0400 |
---|---|---|
committer | David Underwood <david.underwood@jadedpixel.com> | 2013-06-25 11:43:20 -0400 |
commit | 32edb874f2fa2aefe363ec9d92d5f529cec489d8 (patch) | |
tree | 3518e71e80acc4522dfae958a8b241925aa50d9b /test | |
parent | 062a84ca3921464e0ca4a65b4d914a4d40513858 (diff) |
render titles correctly
Diffstat (limited to 'test')
-rw-r--r-- | test/app_test.rb | 9 |
1 files changed, 8 insertions, 1 deletions
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, '<title>1080p dashboard</title>' + end + end + begin require 'haml' |