Skip to content

Commit 31e3dc6

Browse files
committed
Fix routing specs
1 parent 80e79f3 commit 31e3dc6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/views/hooks/_data_ex.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
};
3939
eos
4040
%>
41-
<div class="white">
41+
<div class="<%= user_color_scheme_class%>">
4242
<%= raw Pygments::Lexer[:js].highlight(data_ex_str) %>
4343
</div>

spec/routing/project_routing_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,17 @@
191191
end
192192
end
193193

194-
# switch_project_refs GET /:project_id/switch(.:format) refs#switch
195-
# logs_tree_project_ref GET /:project_id/:id/logs_tree(.:format) refs#logs_tree
196-
# logs_file_project_ref GET /:project_id/:id/logs_tree/:path(.:format) refs#logs_tree
194+
# switch_project_refs GET /:project_id/refs/switch(.:format) refs#switch
195+
# logs_tree_project_ref GET /:project_id/refs/:id/logs_tree(.:format) refs#logs_tree
196+
# logs_file_project_ref GET /:project_id/refs/:id/logs_tree/:path(.:format) refs#logs_tree
197197
describe RefsController, "routing" do
198198
it "to #switch" do
199-
get("/gitlabhq/switch").should route_to('refs#switch', project_id: 'gitlabhq')
199+
get("/gitlabhq/refs/switch").should route_to('refs#switch', project_id: 'gitlabhq')
200200
end
201201

202202
it "to #logs_tree" do
203-
get("/gitlabhq/stable/logs_tree").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable')
204-
get("/gitlabhq/stable/logs_tree/foo/bar/baz").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable', path: 'foo/bar/baz')
203+
get("/gitlabhq/refs/stable/logs_tree").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable')
204+
get("/gitlabhq/refs/stable/logs_tree/foo/bar/baz").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable', path: 'foo/bar/baz')
205205
end
206206
end
207207

0 commit comments

Comments
 (0)