Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9cd1069a
Commit
9cd1069a
authored
May 27, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Tests] Better project coverage
parent
baa54629
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
20 deletions
+28
-20
spec/monkeypatch.rb
spec/monkeypatch.rb
+1
-1
spec/requests/projects_spec.rb
spec/requests/projects_spec.rb
+27
-19
No files found.
spec/monkeypatch.rb
View file @
9cd1069a
...
@@ -5,7 +5,7 @@ class Project
...
@@ -5,7 +5,7 @@ class Project
true
true
end
end
def
update
_repository
def
destroy
_repository
true
true
end
end
...
...
spec/requests/projects_spec.rb
View file @
9cd1069a
...
@@ -75,15 +75,23 @@ describe "Projects" do
...
@@ -75,15 +75,23 @@ describe "Projects" do
it
"should be correct path"
do
it
"should be correct path"
do
current_path
.
should
==
project_path
(
@project
)
current_path
.
should
==
project_path
(
@project
)
end
end
end
describe
"GET /projects/graph"
do
before
do
@project
=
Factory
:project
,
:path
=>
"gitlab_remove"
@project
.
add_access
(
@user
,
:read
)
visit
graph_project_path
(
@project
)
end
# TODO: replace with real one
it
"should be correct path"
do
#it "should beahave like activities page" do
current_path
.
should
==
graph_project_path
(
@project
)
#within ".project-update" do
end
#page.should have_content("master")
#page.should have_content(@project.commit.author.name)
it
"should have as as team member"
do
#page.should have_content(@project.commit.safe_message)
page
.
should
have_content
(
"master"
)
#end
end
#end
end
end
describe
"GET /projects/team"
do
describe
"GET /projects/team"
do
...
@@ -146,15 +154,15 @@ describe "Projects" do
...
@@ -146,15 +154,15 @@ describe "Projects" do
end
end
end
end
#describe "DELETE /projects/:id", :js => true
do
describe
"DELETE /projects/:id"
do
#
before do
before
do
#
@project = Factory :project
@project
=
Factory
:project
#
@project.add_access(@user, :read, :admin)
@project
.
add_access
(
@user
,
:read
,
:admin
)
#visit projects_path
visit
edit_project_path
(
@project
)
#
end
end
#
it "should be correct path" do
it
"should be correct path"
do
#expect { click_link "Destroy" }.to change {Project.count}.by(
1)
expect
{
click_link
"Remove"
}.
to
change
{
Project
.
count
}.
by
(
-
1
)
#
end
end
#
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment