Commit 7175b6a7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed dashboard show specs

parent 070f49fd
...@@ -10,7 +10,7 @@ describe "Dashboard Issues Feed" do ...@@ -10,7 +10,7 @@ describe "Dashboard Issues Feed" do
describe "atom feed" do describe "atom feed" do
it "should render atom feed via private token" do it "should render atom feed via private token" do
visit dashboard_issues_path(:atom, private_token: user.private_token) visit issues_dashboard_path(:atom, private_token: user.private_token)
page.response_headers['Content-Type'].should have_content("application/atom+xml") page.response_headers['Content-Type'].should have_content("application/atom+xml")
page.body.should have_selector("title", text: "#{user.name} issues") page.body.should have_selector("title", text: "#{user.name} issues")
......
...@@ -146,14 +146,14 @@ describe KeysController, "routing" do ...@@ -146,14 +146,14 @@ describe KeysController, "routing" do
end end
end end
# dashboard GET /dashboard(.:format) dashboard#index # dashboard GET /dashboard(.:format) dashboard#show
# dashboard_issues GET /dashboard/issues(.:format) dashboard#issues # dashboard_issues GET /dashboard/issues(.:format) dashboard#issues
# dashboard_merge_requests GET /dashboard/merge_requests(.:format) dashboard#merge_requests # dashboard_merge_requests GET /dashboard/merge_requests(.:format) dashboard#merge_requests
# root / dashboard#index # root / dashboard#show
describe DashboardController, "routing" do describe DashboardController, "routing" do
it "to #index" do it "to #index" do
get("/dashboard").should route_to('dashboard#index') get("/dashboard").should route_to('dashboard#show')
get("/").should route_to('dashboard#index') get("/").should route_to('dashboard#show')
end end
it "to #issues" do it "to #issues" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment