Commit aa02a3b757c1421115c3c7af8e5b60da9278d2be

Authored by gitlabhq
1 parent a7734bba

fix projects page

app/views/projects/_tile.html.haml
@@ -16,5 +16,5 @@ @@ -16,5 +16,5 @@
16 %p.small-tags= tag_list project 16 %p.small-tags= tag_list project
17 17
18 .buttons 18 .buttons
19 - %a.browse-code.button.yellow{:href => tree_project_path(project)} Browse code 19 + %a.browse-code.button.yellow{:href => tree_project_ref_path(project, project.root_ref)} Browse code
20 %a.commits.button.green{:href => project_commits_path(project)} Commits 20 %a.commits.button.green{:href => project_commits_path(project)} Commits
spec/requests/projects_spec.rb
@@ -5,6 +5,8 @@ describe "Projects" do @@ -5,6 +5,8 @@ describe "Projects" do
5 5
6 describe "GET /projects" do 6 describe "GET /projects" do
7 before do 7 before do
  8 + @project = Factory :project
  9 + @project.add_access(@user, :read)
8 visit projects_path 10 visit projects_path
9 end 11 end
10 12
@@ -15,6 +17,10 @@ describe "Projects" do @@ -15,6 +17,10 @@ describe "Projects" do
15 it "should have link to new project" do 17 it "should have link to new project" do
16 page.should have_content("Create new project") 18 page.should have_content("Create new project")
17 end 19 end
  20 +
  21 + it "should have project" do
  22 + page.should have_content(@project.name)
  23 + end
18 end 24 end
19 25
20 describe "GET /projects/new" do 26 describe "GET /projects/new" do