summaryrefslogtreecommitdiff
path: root/test/app_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/app_test.rb')
-rw-r--r--test/app_test.rb9
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'