Commit 7175b6a7695cf5c14185deccb8850d988f0dba95
1 parent
070f49fd
Exists in
master
and in
4 other branches
Fixed dashboard show specs
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
spec/requests/atom/dashboard_issues_spec.rb
... | ... | @@ -10,7 +10,7 @@ describe "Dashboard Issues Feed" do |
10 | 10 | |
11 | 11 | describe "atom feed" do |
12 | 12 | it "should render atom feed via private token" do |
13 | - visit dashboard_issues_path(:atom, private_token: user.private_token) | |
13 | + visit issues_dashboard_path(:atom, private_token: user.private_token) | |
14 | 14 | |
15 | 15 | page.response_headers['Content-Type'].should have_content("application/atom+xml") |
16 | 16 | page.body.should have_selector("title", text: "#{user.name} issues") | ... | ... |
spec/routing/routing_spec.rb
... | ... | @@ -146,14 +146,14 @@ describe KeysController, "routing" do |
146 | 146 | end |
147 | 147 | end |
148 | 148 | |
149 | -# dashboard GET /dashboard(.:format) dashboard#index | |
149 | +# dashboard GET /dashboard(.:format) dashboard#show | |
150 | 150 | # dashboard_issues GET /dashboard/issues(.:format) dashboard#issues |
151 | 151 | # dashboard_merge_requests GET /dashboard/merge_requests(.:format) dashboard#merge_requests |
152 | -# root / dashboard#index | |
152 | +# root / dashboard#show | |
153 | 153 | describe DashboardController, "routing" do |
154 | 154 | it "to #index" do |
155 | - get("/dashboard").should route_to('dashboard#index') | |
156 | - get("/").should route_to('dashboard#index') | |
155 | + get("/dashboard").should route_to('dashboard#show') | |
156 | + get("/").should route_to('dashboard#show') | |
157 | 157 | end |
158 | 158 | |
159 | 159 | it "to #issues" do | ... | ... |