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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
7b70d81c
Commit
7b70d81c
authored
Oct 17, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed up tests
parent
91a31d76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
spec/factories.rb
spec/factories.rb
+2
-4
spec/support/test_env.rb
spec/support/test_env.rb
+1
-2
No files found.
spec/factories.rb
View file @
7b70d81c
...
@@ -17,16 +17,14 @@ FactoryGirl.define do
...
@@ -17,16 +17,14 @@ FactoryGirl.define do
sequence
(
:username
)
{
|
n
|
"
#{
Faker
::
Internet
.
user_name
}#{
n
}
"
}
sequence
(
:username
)
{
|
n
|
"
#{
Faker
::
Internet
.
user_name
}#{
n
}
"
}
password
"123456"
password
"123456"
password_confirmation
{
password
}
password_confirmation
{
password
}
confirmed_at
{
Time
.
now
}
confirmation_token
{
nil
}
trait
:admin
do
trait
:admin
do
admin
true
admin
true
end
end
factory
:admin
,
traits:
[
:admin
]
factory
:admin
,
traits:
[
:admin
]
after
:create
do
|
u
|
u
.
confirm!
end
end
end
factory
:project
do
factory
:project
do
...
...
spec/support/test_env.rb
View file @
7b70d81c
...
@@ -86,9 +86,8 @@ module TestEnv
...
@@ -86,9 +86,8 @@ module TestEnv
)
)
ActivityObserver
.
any_instance
.
stub
(
ActivityObserver
.
any_instance
.
stub
(
current_user:
double
(
"current_user"
,
id:
1
)
current_user:
double
(
"current_user"
,
id:
1
)
)
)
end
end
def
clear_repo_dir
(
namespace
,
name
)
def
clear_repo_dir
(
namespace
,
name
)
...
...
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