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
25eadf0c
Commit
25eadf0c
authored
Apr 11, 2014
by
Jeroen van Baarsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proposal for split testing
parent
4881d493
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
+27
-6
spec.rake
lib/tasks/spec.rake
+25
-4
gitlab_flavored_markdown_spec.rb
spec/features/gitlab_flavored_markdown_spec.rb
+1
-1
assembla_service_spec.rb
spec/models/assembla_service_spec.rb
+1
-1
No files found.
lib/tasks/spec.rake
View file @
25eadf0c
Rake
::
Task
[
"spec"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spec'
)
namespace
:testing
do
desc
'GITLAB | Run model specs'
task
:models
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec --tag @models)
]
run_commands
(
cmds
)
end
desc
"GITLAB | Run specs"
task
:spec
do
desc
'GITLAB | Run feature specs'
task
:features
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec)
,
%W(rspec spec --tag @features)
]
run_commands
(
cmds
)
end
desc
'GITLAB | Run other specs'
task
:other
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec --tag ~@models --tag ~@features)
]
run_commands
(
cmds
)
end
def
run_commands
(
cmds
)
cmds
.
each
do
|
cmd
|
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
.
zero?
end
end
end
spec/features/gitlab_flavored_markdown_spec.rb
View file @
25eadf0c
require
'spec_helper'
describe
"GitLab Flavored Markdown"
do
describe
"GitLab Flavored Markdown"
,
features:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
)
}
...
...
spec/models/assembla_service_spec.rb
View file @
25eadf0c
...
...
@@ -19,7 +19,7 @@
require
'spec_helper'
describe
AssemblaService
do
describe
AssemblaService
,
models:
true
do
describe
"Associations"
do
it
{
should
belong_to
:project
}
it
{
should
have_one
:service_hook
}
...
...
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