This repository was archived by the owner on Mar 7, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
templates/project/dashboards Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
- <% content_for( :title) { " My super sweet dashboard" } %>
1
+ <% content_for :title do %> My super sweet dashboard<% end %>
2
2
<div class ="gridster ">
3
3
< ul >
4
4
< li data-row ="1 " data-col ="1 " data-sizex ="2 " data-sizey ="1 ">
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ $(function() {
8
8
</ script >
9
9
10
10
11
- <% content_for ( :title ) { " 1080p dashboard" } %>
11
+ <% content_for :title do %> 1080p dashboard<% end %>
12
12
13
13
< div class ="gridster ">
14
14
< ul >
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def test_get_events
40
40
assert_equal 200 , last_response . status
41
41
assert_equal 8 , parse_data ( @connection [ 0 ] ) [ 'value' ]
42
42
end
43
-
43
+
44
44
def test_redirect_to_default_dashboard
45
45
with_generated_project do
46
46
Sinatra ::Application . settings . default_dashboard = 'test1'
@@ -76,6 +76,13 @@ def test_get_dashboard
76
76
end
77
77
end
78
78
79
+ def test_page_title_set_correctly
80
+ with_generated_project do
81
+ get '/sampletv'
82
+ assert_include last_response . body , '<title>1080p dashboard</title>'
83
+ end
84
+ end
85
+
79
86
begin
80
87
require 'haml'
81
88
You can’t perform that action at this time.
0 commit comments