fix projects page
This commit is contained in:
parent
a7734bba84
commit
aa02a3b757
2 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,8 @@ describe "Projects" do
|
|||
|
||||
describe "GET /projects" do
|
||||
before do
|
||||
@project = Factory :project
|
||||
@project.add_access(@user, :read)
|
||||
visit projects_path
|
||||
end
|
||||
|
||||
|
@ -15,6 +17,10 @@ describe "Projects" do
|
|||
it "should have link to new project" do
|
||||
page.should have_content("Create new project")
|
||||
end
|
||||
|
||||
it "should have project" do
|
||||
page.should have_content(@project.name)
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET /projects/new" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue