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
f536c133
Commit
f536c133
authored
Apr 01, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test using repo with commits but old factory
parent
3b88636d
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
19 deletions
+10
-19
spec/helpers/gitlab_markdown_helper_spec.rb
spec/helpers/gitlab_markdown_helper_spec.rb
+1
-1
spec/lib/git/commit_spec.rb
spec/lib/git/commit_spec.rb
+1
-2
spec/lib/git/repository_spec.rb
spec/lib/git/repository_spec.rb
+1
-2
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+3
-10
spec/requests/api/merge_requests_spec.rb
spec/requests/api/merge_requests_spec.rb
+1
-1
spec/requests/api/projects_spec.rb
spec/requests/api/projects_spec.rb
+1
-1
spec/services/git_push_service_spec.rb
spec/services/git_push_service_spec.rb
+1
-1
spec/workers/post_receive_spec.rb
spec/workers/post_receive_spec.rb
+1
-1
No files found.
spec/helpers/gitlab_markdown_helper_spec.rb
View file @
f536c133
...
...
@@ -4,7 +4,7 @@ describe GitlabMarkdownHelper do
include
ApplicationHelper
include
IssuesHelper
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:project
)
{
create
(
:project
_with_code
)
}
let
(
:user
)
{
create
(
:user
,
username:
'gfm'
)
}
let
(
:commit
)
{
project
.
repository
.
commit
}
...
...
spec/lib/git/commit_spec.rb
View file @
f536c133
require
"spec_helper"
describe
Gitlab
::
Git
::
Commit
do
let
(
:commit
)
{
create
(
:project
).
repository
.
commit
}
let
(
:commit
)
{
create
(
:project
_with_code
).
repository
.
commit
}
describe
"Commit info"
do
before
do
...
...
@@ -45,6 +45,5 @@ describe Gitlab::Git::Commit do
it
{
should
respond_to
(
:commits_since
)
}
it
{
should
respond_to
(
:commits_between
)
}
it
{
should
respond_to
(
:commits
)
}
it
{
should
respond_to
(
:compare
)
}
end
end
spec/lib/git/repository_spec.rb
View file @
f536c133
require
"spec_helper"
describe
Gitlab
::
Git
::
Repository
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:repository
)
{
project
.
repository
}
let
(
:repository
)
{
Gitlab
::
Git
::
Repository
.
new
(
'gitlabhq'
,
'master'
)
}
describe
"Respond to"
do
subject
{
repository
}
...
...
spec/mailers/notify_spec.rb
View file @
f536c133
...
...
@@ -5,7 +5,7 @@ describe Notify do
include
EmailSpec
::
Matchers
let
(
:recipient
)
{
create
(
:user
,
email:
'recipient@example.com'
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
_with_code
)
}
shared_examples
'a multiple recipients email'
do
it
'is sent to the given recipient'
do
...
...
@@ -277,14 +277,7 @@ describe Notify do
end
describe
'on a commit'
do
let
(
:commit
)
do
mock
(
:commit
).
tap
do
|
commit
|
commit
.
stub
(
:id
).
and_return
(
'fauxsha1'
)
commit
.
stub
(
:project
).
and_return
(
project
)
commit
.
stub
(
:short_id
).
and_return
(
'fauxsha1'
)
commit
.
stub
(
:safe_message
).
and_return
(
'some message'
)
end
end
let
(
:commit
)
{
project
.
repository
.
commit
}
before
(
:each
)
{
note
.
stub
(
:noteable
).
and_return
(
commit
)
}
...
...
@@ -297,7 +290,7 @@ describe Notify do
end
it
'contains a link to the commit'
do
should
have_body_text
/fauxsha1/
should
have_body_text
commit
.
short_id
end
end
...
...
spec/requests/api/merge_requests_spec.rb
View file @
f536c133
...
...
@@ -4,7 +4,7 @@ describe Gitlab::API do
include
ApiHelpers
let
(
:user
)
{
create
(
:user
)
}
let!
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
let!
(
:project
)
{
create
(
:project
_with_code
,
creator_id:
user
.
id
)
}
let!
(
:merge_request
)
{
create
(
:merge_request
,
author:
user
,
assignee:
user
,
project:
project
,
title:
"Test"
)
}
before
{
project
.
team
<<
[
user
,
:reporters
]
}
...
...
spec/requests/api/projects_spec.rb
View file @
f536c133
...
...
@@ -7,7 +7,7 @@ describe Gitlab::API do
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user3
)
{
create
(
:user
)
}
let
(
:admin
)
{
create
(
:admin
)
}
let!
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
let!
(
:project
)
{
create
(
:project
_with_code
,
creator_id:
user
.
id
)
}
let!
(
:hook
)
{
create
(
:project_hook
,
project:
project
,
url:
"http://example.com"
)
}
let!
(
:snippet
)
{
create
(
:snippet
,
author:
user
,
project:
project
,
title:
'example'
)
}
let!
(
:users_project
)
{
create
(
:users_project
,
user:
user
,
project:
project
,
project_access:
UsersProject
::
MASTER
)
}
...
...
spec/services/git_push_service_spec.rb
View file @
f536c133
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
describe
GitPushService
do
let
(
:user
)
{
create
:user
}
let
(
:project
)
{
create
:project
}
let
(
:project
)
{
create
:project
_with_code
}
let
(
:service
)
{
GitPushService
.
new
}
before
do
...
...
spec/workers/post_receive_spec.rb
View file @
f536c133
...
...
@@ -9,7 +9,7 @@ describe PostReceive do
end
context
"web hook"
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
_with_code
)
}
let
(
:key
)
{
create
(
:key
,
user:
project
.
owner
)
}
let
(
:key_id
)
{
key
.
shell_id
}
...
...
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