Permalink
Browse files

One more URL fix

  • Loading branch information...
1 parent ff59910 commit 143b75bff31b1868235d5bbcf732e8a470c14e13 @sr sr committed Mar 29, 2009
Showing with 6 additions and 1 deletion.
  1. +1 −0 CHANGES
  2. +1 −1 lib/integrity/helpers/breadcrumbs.rb
  3. +4 −0 test/acceptance/browse_project_test.rb
View
@@ -4,6 +4,7 @@
* Fix for when the commit identifier can't be retrieved
<http://integrity.lighthouseapp.com/projects/14308/tickets/116>
* Fix two issues with MySQL
+* Fix one more URL issue
0.1.9.2 / 2009-03-28
====================
@@ -2,7 +2,7 @@ module Integrity
module Helpers
module Breadcrumbs
def pages
- @pages ||= [["projects", root_path], ["new project", root_path("/new")]]
+ @pages ||= [["projects", root_path("/")], ["new project", root_path("/new")]]
end
def breadcrumbs(*crumbs)
@@ -48,6 +48,10 @@ class BrowsePublicProjectsTest < Test::Unit::AcceptanceTestCase
click_link "My Test Project"
assert_have_tag("h1", :content => "My Test Project")
+
+ # He can then go back to the project listing
+ click_link "projects"
+ assert_have_tag("a", :content => "My Test Project")
end
scenario "a user gets a 404 when browsing to an unexisting project" do

0 comments on commit 143b75b

Please sign in to comment.