Commit aa02a3b757c1421115c3c7af8e5b60da9278d2be
1 parent
a7734bba
Exists in
master
and in
4 other branches
fix projects page
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
app/views/projects/_tile.html.haml
| ... | ... | @@ -16,5 +16,5 @@ |
| 16 | 16 | %p.small-tags= tag_list project |
| 17 | 17 | |
| 18 | 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 | 20 | %a.commits.button.green{:href => project_commits_path(project)} Commits | ... | ... |
spec/requests/projects_spec.rb
| ... | ... | @@ -5,6 +5,8 @@ describe "Projects" do |
| 5 | 5 | |
| 6 | 6 | describe "GET /projects" do |
| 7 | 7 | before do |
| 8 | + @project = Factory :project | |
| 9 | + @project.add_access(@user, :read) | |
| 8 | 10 | visit projects_path |
| 9 | 11 | end |
| 10 | 12 | |
| ... | ... | @@ -15,6 +17,10 @@ describe "Projects" do |
| 15 | 17 | it "should have link to new project" do |
| 16 | 18 | page.should have_content("Create new project") |
| 17 | 19 | end |
| 20 | + | |
| 21 | + it "should have project" do | |
| 22 | + page.should have_content(@project.name) | |
| 23 | + end | |
| 18 | 24 | end |
| 19 | 25 | |
| 20 | 26 | describe "GET /projects/new" do | ... | ... |