Commit aa02a3b7 authored by gitlabhq's avatar gitlabhq

fix projects page

parent a7734bba
...@@ -16,5 +16,5 @@ ...@@ -16,5 +16,5 @@
%p.small-tags= tag_list project %p.small-tags= tag_list project
.buttons .buttons
%a.browse-code.button.yellow{:href => tree_project_path(project)} Browse code %a.browse-code.button.yellow{:href => tree_project_ref_path(project, project.root_ref)} Browse code
%a.commits.button.green{:href => project_commits_path(project)} Commits %a.commits.button.green{:href => project_commits_path(project)} Commits
...@@ -5,6 +5,8 @@ describe "Projects" do ...@@ -5,6 +5,8 @@ describe "Projects" do
describe "GET /projects" do describe "GET /projects" do
before do before do
@project = Factory :project
@project.add_access(@user, :read)
visit projects_path visit projects_path
end end
...@@ -15,6 +17,10 @@ describe "Projects" do ...@@ -15,6 +17,10 @@ describe "Projects" do
it "should have link to new project" do it "should have link to new project" do
page.should have_content("Create new project") page.should have_content("Create new project")
end end
it "should have project" do
page.should have_content(@project.name)
end
end end
describe "GET /projects/new" do describe "GET /projects/new" 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