BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
fa398636
Unverified
Commit
fa398636
authored
Oct 28, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c71792d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
projects_spec.rb
spec/features/projects_spec.rb
+11
-9
No files found.
spec/features/projects_spec.rb
View file @
fa398636
require
'spec_helper'
describe
"Projects"
,
feature:
true
do
describe
"Projects"
,
feature:
true
,
js:
true
do
before
{
login_as
:user
}
describe
"DELETE /projects/:id"
do
...
...
@@ -10,21 +10,23 @@ describe "Projects", feature: true do
visit
edit_project_path
(
@project
)
end
it
"should be correct path"
,
js:
true
do
expect
{
click_link
"Remove project"
fill_in
'confirm_name_input'
,
with:
@project
.
path
click_button
'Confirm'
}.
to
change
{
Project
.
count
}.
by
(
-
1
)
it
"should remove project"
do
expect
{
remove_project
}.
to
change
{
Project
.
count
}.
by
(
-
1
)
end
it
'should delete the project from
the database and
disk'
do
it
'should delete the project from disk'
do
expect
(
GitlabShellWorker
).
to
(
receive
(
:perform_async
).
with
(
:remove_repository
,
/
#{
@project
.
path_with_namespace
}
/
)
).
twice
expect
{
click_link
"Remove project"
}.
to
change
{
Project
.
count
}.
by
(
-
1
)
remove_project
end
end
def
remove_project
click_link
"Remove project"
fill_in
'confirm_name_input'
,
with:
@project
.
path
click_button
'Confirm'
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