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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
4e9284a0
Commit
4e9284a0
authored
Nov 12, 2013
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear state in test satellite dir.
parent
e16eb912
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
spec/factories.rb
spec/factories.rb
+1
-0
spec/support/test_env.rb
spec/support/test_env.rb
+9
-0
No files found.
spec/factories.rb
View file @
4e9284a0
...
...
@@ -66,6 +66,7 @@ FactoryGirl.define do
after
:create
do
|
project
|
TestEnv
.
clear_repo_dir
(
project
.
namespace
,
project
.
path
)
TestEnv
.
reset_satellite_dir
TestEnv
.
create_repo
(
project
.
namespace
,
project
.
path
)
end
end
...
...
spec/support/test_env.rb
View file @
4e9284a0
...
...
@@ -97,6 +97,15 @@ module TestEnv
FileUtils
.
rm_rf
File
.
join
(
testing_path
(),
"
#{
name
}
.wiki.git"
)
end
def
reset_satellite_dir
setup_stubs
FileUtils
.
cd
(
seed_satellite_path
)
do
`git reset --hard --quiet`
`git clean -fx`
`git checkout --quiet origin/master`
end
end
# Create a repo and it's satellite
def
create_repo
(
namespace
,
name
)
setup_stubs
...
...
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