diff options
author | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2013-06-26 13:12:01 -0700 |
---|---|---|
committer | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2013-06-26 13:12:01 -0700 |
commit | 6e19ec4ef1508d45f84a395972023fce75fcec35 (patch) | |
tree | 3518e71e80acc4522dfae958a8b241925aa50d9b /test/app_test.rb | |
parent | 062a84ca3921464e0ca4a65b4d914a4d40513858 (diff) | |
parent | 32edb874f2fa2aefe363ec9d92d5f529cec489d8 (diff) |
Merge pull request #153 from davefp/title_fix
Render titles correctly
Diffstat (limited to 'test/app_test.rb')
-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' |