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
1e8d703a
Commit
1e8d703a
authored
Dec 09, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tag model specs
parent
9ebdee09
Changes
68
Hide whitespace changes
Inline
Side-by-side
Showing
68 changed files
with
68 additions
and
68 deletions
+68
-68
spec/models/broadcast_message_spec.rb
spec/models/broadcast_message_spec.rb
+1
-1
spec/models/build_spec.rb
spec/models/build_spec.rb
+1
-1
spec/models/ci/commit_spec.rb
spec/models/ci/commit_spec.rb
+1
-1
spec/models/ci/project_services/hip_chat_message_spec.rb
spec/models/ci/project_services/hip_chat_message_spec.rb
+1
-1
spec/models/ci/project_services/hip_chat_service_spec.rb
spec/models/ci/project_services/hip_chat_service_spec.rb
+1
-1
spec/models/ci/project_services/mail_service_spec.rb
spec/models/ci/project_services/mail_service_spec.rb
+1
-1
spec/models/ci/project_services/slack_message_spec.rb
spec/models/ci/project_services/slack_message_spec.rb
+1
-1
spec/models/ci/project_services/slack_service_spec.rb
spec/models/ci/project_services/slack_service_spec.rb
+1
-1
spec/models/ci/project_spec.rb
spec/models/ci/project_spec.rb
+1
-1
spec/models/ci/runner_project_spec.rb
spec/models/ci/runner_project_spec.rb
+1
-1
spec/models/ci/runner_spec.rb
spec/models/ci/runner_spec.rb
+1
-1
spec/models/ci/service_spec.rb
spec/models/ci/service_spec.rb
+1
-1
spec/models/ci/trigger_spec.rb
spec/models/ci/trigger_spec.rb
+1
-1
spec/models/ci/variable_spec.rb
spec/models/ci/variable_spec.rb
+1
-1
spec/models/ci/web_hook_spec.rb
spec/models/ci/web_hook_spec.rb
+1
-1
spec/models/commit_range_spec.rb
spec/models/commit_range_spec.rb
+1
-1
spec/models/commit_spec.rb
spec/models/commit_spec.rb
+1
-1
spec/models/commit_status_spec.rb
spec/models/commit_status_spec.rb
+1
-1
spec/models/concerns/case_sensitivity_spec.rb
spec/models/concerns/case_sensitivity_spec.rb
+1
-1
spec/models/deploy_key_spec.rb
spec/models/deploy_key_spec.rb
+1
-1
spec/models/deploy_keys_project_spec.rb
spec/models/deploy_keys_project_spec.rb
+1
-1
spec/models/event_spec.rb
spec/models/event_spec.rb
+1
-1
spec/models/external_issue_spec.rb
spec/models/external_issue_spec.rb
+1
-1
spec/models/external_wiki_service_spec.rb
spec/models/external_wiki_service_spec.rb
+1
-1
spec/models/generic_commit_status_spec.rb
spec/models/generic_commit_status_spec.rb
+1
-1
spec/models/global_milestone_spec.rb
spec/models/global_milestone_spec.rb
+1
-1
spec/models/group_spec.rb
spec/models/group_spec.rb
+1
-1
spec/models/hooks/project_hook_spec.rb
spec/models/hooks/project_hook_spec.rb
+1
-1
spec/models/hooks/service_hook_spec.rb
spec/models/hooks/service_hook_spec.rb
+1
-1
spec/models/hooks/system_hook_spec.rb
spec/models/hooks/system_hook_spec.rb
+1
-1
spec/models/hooks/web_hook_spec.rb
spec/models/hooks/web_hook_spec.rb
+1
-1
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+1
-1
spec/models/key_spec.rb
spec/models/key_spec.rb
+1
-1
spec/models/label_link_spec.rb
spec/models/label_link_spec.rb
+1
-1
spec/models/label_spec.rb
spec/models/label_spec.rb
+1
-1
spec/models/member_spec.rb
spec/models/member_spec.rb
+1
-1
spec/models/members/group_member_spec.rb
spec/models/members/group_member_spec.rb
+1
-1
spec/models/members/project_member_spec.rb
spec/models/members/project_member_spec.rb
+1
-1
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+1
-1
spec/models/milestone_spec.rb
spec/models/milestone_spec.rb
+1
-1
spec/models/namespace_spec.rb
spec/models/namespace_spec.rb
+1
-1
spec/models/note_spec.rb
spec/models/note_spec.rb
+1
-1
spec/models/project_security_spec.rb
spec/models/project_security_spec.rb
+1
-1
spec/models/project_services/buildkite_service_spec.rb
spec/models/project_services/buildkite_service_spec.rb
+1
-1
spec/models/project_services/drone_ci_service_spec.rb
spec/models/project_services/drone_ci_service_spec.rb
+1
-1
spec/models/project_services/flowdock_service_spec.rb
spec/models/project_services/flowdock_service_spec.rb
+1
-1
spec/models/project_services/gemnasium_service_spec.rb
spec/models/project_services/gemnasium_service_spec.rb
+1
-1
spec/models/project_services/gitlab_ci_service_spec.rb
spec/models/project_services/gitlab_ci_service_spec.rb
+1
-1
spec/models/project_services/gitlab_issue_tracker_service_spec.rb
...els/project_services/gitlab_issue_tracker_service_spec.rb
+1
-1
spec/models/project_services/hipchat_service_spec.rb
spec/models/project_services/hipchat_service_spec.rb
+1
-1
spec/models/project_services/irker_service_spec.rb
spec/models/project_services/irker_service_spec.rb
+1
-1
spec/models/project_services/jira_service_spec.rb
spec/models/project_services/jira_service_spec.rb
+1
-1
spec/models/project_services/pushover_service_spec.rb
spec/models/project_services/pushover_service_spec.rb
+1
-1
spec/models/project_services/slack_service/issue_message_spec.rb
...dels/project_services/slack_service/issue_message_spec.rb
+1
-1
spec/models/project_services/slack_service/merge_message_spec.rb
...dels/project_services/slack_service/merge_message_spec.rb
+1
-1
spec/models/project_services/slack_service/note_message_spec.rb
...odels/project_services/slack_service/note_message_spec.rb
+1
-1
spec/models/project_services/slack_service/push_message_spec.rb
...odels/project_services/slack_service/push_message_spec.rb
+1
-1
spec/models/project_services/slack_service_spec.rb
spec/models/project_services/slack_service_spec.rb
+1
-1
spec/models/project_snippet_spec.rb
spec/models/project_snippet_spec.rb
+1
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-1
spec/models/project_team_spec.rb
spec/models/project_team_spec.rb
+1
-1
spec/models/project_wiki_spec.rb
spec/models/project_wiki_spec.rb
+1
-1
spec/models/protected_branch_spec.rb
spec/models/protected_branch_spec.rb
+1
-1
spec/models/repository_spec.rb
spec/models/repository_spec.rb
+1
-1
spec/models/service_spec.rb
spec/models/service_spec.rb
+1
-1
spec/models/snippet_spec.rb
spec/models/snippet_spec.rb
+1
-1
spec/models/user_spec.rb
spec/models/user_spec.rb
+1
-1
spec/models/wiki_page_spec.rb
spec/models/wiki_page_spec.rb
+1
-1
No files found.
spec/models/broadcast_message_spec.rb
View file @
1e8d703a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
require
'spec_helper'
require
'spec_helper'
describe
BroadcastMessage
do
describe
BroadcastMessage
,
models:
true
do
subject
{
create
(
:broadcast_message
)
}
subject
{
create
(
:broadcast_message
)
}
it
{
is_expected
.
to
be_valid
}
it
{
is_expected
.
to
be_valid
}
...
...
spec/models/build_spec.rb
View file @
1e8d703a
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Build
do
describe
Ci
::
Build
,
models:
true
do
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:gl_project
)
{
FactoryGirl
.
create
:empty_project
,
gitlab_ci_project:
project
}
let
(
:gl_project
)
{
FactoryGirl
.
create
:empty_project
,
gitlab_ci_project:
project
}
let
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
,
gl_project:
gl_project
}
let
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
,
gl_project:
gl_project
}
...
...
spec/models/ci/commit_spec.rb
View file @
1e8d703a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Commit
do
describe
Ci
::
Commit
,
models:
true
do
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:gl_project
)
{
FactoryGirl
.
create
:empty_project
,
gitlab_ci_project:
project
}
let
(
:gl_project
)
{
FactoryGirl
.
create
:empty_project
,
gitlab_ci_project:
project
}
let
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
,
gl_project:
gl_project
}
let
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
,
gl_project:
gl_project
}
...
...
spec/models/ci/project_services/hip_chat_message_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
HipChatMessage
do
describe
Ci
::
HipChatMessage
,
models:
true
do
subject
{
Ci
::
HipChatMessage
.
new
(
build
)
}
subject
{
Ci
::
HipChatMessage
.
new
(
build
)
}
let
(
:commit
)
{
FactoryGirl
.
create
(
:ci_commit_with_two_jobs
)
}
let
(
:commit
)
{
FactoryGirl
.
create
(
:ci_commit_with_two_jobs
)
}
...
...
spec/models/ci/project_services/hip_chat_service_spec.rb
View file @
1e8d703a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
HipChatService
do
describe
Ci
::
HipChatService
,
models:
true
do
describe
"Validations"
do
describe
"Validations"
do
...
...
spec/models/ci/project_services/mail_service_spec.rb
View file @
1e8d703a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
MailService
do
describe
Ci
::
MailService
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
end
end
...
...
spec/models/ci/project_services/slack_message_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
SlackMessage
do
describe
Ci
::
SlackMessage
,
models:
true
do
subject
{
Ci
::
SlackMessage
.
new
(
commit
)
}
subject
{
Ci
::
SlackMessage
.
new
(
commit
)
}
let
(
:commit
)
{
FactoryGirl
.
create
(
:ci_commit_with_two_jobs
)
}
let
(
:commit
)
{
FactoryGirl
.
create
(
:ci_commit_with_two_jobs
)
}
...
...
spec/models/ci/project_services/slack_service_spec.rb
View file @
1e8d703a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
SlackService
do
describe
Ci
::
SlackService
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
end
end
...
...
spec/models/ci/project_spec.rb
View file @
1e8d703a
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Project
do
describe
Ci
::
Project
,
models:
true
do
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:gl_project
)
{
project
.
gl_project
}
let
(
:gl_project
)
{
project
.
gl_project
}
subject
{
project
}
subject
{
project
}
...
...
spec/models/ci/runner_project_spec.rb
View file @
1e8d703a
...
@@ -11,6 +11,6 @@
...
@@ -11,6 +11,6 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
RunnerProject
do
describe
Ci
::
RunnerProject
,
models:
true
do
pending
"add some examples to (or delete)
#{
__FILE__
}
"
pending
"add some examples to (or delete)
#{
__FILE__
}
"
end
end
spec/models/ci/runner_spec.rb
View file @
1e8d703a
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Runner
do
describe
Ci
::
Runner
,
models:
true
do
describe
'#display_name'
do
describe
'#display_name'
do
it
'should return the description if it has a value'
do
it
'should return the description if it has a value'
do
runner
=
FactoryGirl
.
build
(
:ci_runner
,
description:
'Linux/Ruby-1.9.3-p448'
)
runner
=
FactoryGirl
.
build
(
:ci_runner
,
description:
'Linux/Ruby-1.9.3-p448'
)
...
...
spec/models/ci/service_spec.rb
View file @
1e8d703a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Service
do
describe
Ci
::
Service
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
...
...
spec/models/ci/trigger_spec.rb
View file @
1e8d703a
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Trigger
do
describe
Ci
::
Trigger
,
models:
true
do
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
describe
'before_validation'
do
describe
'before_validation'
do
...
...
spec/models/ci/variable_spec.rb
View file @
1e8d703a
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Variable
do
describe
Ci
::
Variable
,
models:
true
do
subject
{
Ci
::
Variable
.
new
}
subject
{
Ci
::
Variable
.
new
}
let
(
:secret_value
)
{
'secret'
}
let
(
:secret_value
)
{
'secret'
}
...
...
spec/models/ci/web_hook_spec.rb
View file @
1e8d703a
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
WebHook
do
describe
Ci
::
WebHook
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
end
end
...
...
spec/models/commit_range_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
CommitRange
do
describe
CommitRange
,
models:
true
do
describe
'modules'
do
describe
'modules'
do
subject
{
described_class
}
subject
{
described_class
}
...
...
spec/models/commit_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
Commit
do
describe
Commit
,
models:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:commit
)
{
project
.
commit
}
let
(
:commit
)
{
project
.
commit
}
...
...
spec/models/commit_status_spec.rb
View file @
1e8d703a
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
require
'spec_helper'
require
'spec_helper'
describe
CommitStatus
do
describe
CommitStatus
,
models:
true
do
let
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
}
let
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
}
let
(
:commit_status
)
{
FactoryGirl
.
create
:commit_status
,
commit:
commit
}
let
(
:commit_status
)
{
FactoryGirl
.
create
:commit_status
,
commit:
commit
}
...
...
spec/models/concerns/case_sensitivity_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
CaseSensitivity
do
describe
CaseSensitivity
,
models:
true
do
describe
'.iwhere'
do
describe
'.iwhere'
do
let
(
:connection
)
{
ActiveRecord
::
Base
.
connection
}
let
(
:connection
)
{
ActiveRecord
::
Base
.
connection
}
let
(
:model
)
{
Class
.
new
{
include
CaseSensitivity
}
}
let
(
:model
)
{
Class
.
new
{
include
CaseSensitivity
}
}
...
...
spec/models/deploy_key_spec.rb
View file @
1e8d703a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
require
'spec_helper'
require
'spec_helper'
describe
DeployKey
do
describe
DeployKey
,
models:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:deploy_key
)
{
create
(
:deploy_key
,
projects:
[
project
])
}
let
(
:deploy_key
)
{
create
(
:deploy_key
,
projects:
[
project
])
}
...
...
spec/models/deploy_keys_project_spec.rb
View file @
1e8d703a
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
require
'spec_helper'
require
'spec_helper'
describe
DeployKeysProject
do
describe
DeployKeysProject
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
(
:deploy_key
)
}
it
{
is_expected
.
to
belong_to
(
:deploy_key
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
...
...
spec/models/event_spec.rb
View file @
1e8d703a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Event
do
describe
Event
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:target
)
}
it
{
is_expected
.
to
belong_to
(
:target
)
}
...
...
spec/models/external_issue_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
ExternalIssue
do
describe
ExternalIssue
,
models:
true
do
let
(
:project
)
{
double
(
'project'
,
to_reference:
'namespace1/project1'
)
}
let
(
:project
)
{
double
(
'project'
,
to_reference:
'namespace1/project1'
)
}
let
(
:issue
)
{
described_class
.
new
(
'EXT-1234'
,
project
)
}
let
(
:issue
)
{
described_class
.
new
(
'EXT-1234'
,
project
)
}
...
...
spec/models/external_wiki_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
ExternalWikiService
do
describe
ExternalWikiService
,
models:
true
do
include
ExternalWikiHelper
include
ExternalWikiHelper
describe
"Associations"
do
describe
"Associations"
do
it
{
should
belong_to
:project
}
it
{
should
belong_to
:project
}
...
...
spec/models/generic_commit_status_spec.rb
View file @
1e8d703a
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
require
'spec_helper'
require
'spec_helper'
describe
GenericCommitStatus
do
describe
GenericCommitStatus
,
models:
true
do
let
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
}
let
(
:commit
)
{
FactoryGirl
.
create
:ci_commit
}
let
(
:generic_commit_status
)
{
FactoryGirl
.
create
:generic_commit_status
,
commit:
commit
}
let
(
:generic_commit_status
)
{
FactoryGirl
.
create
:generic_commit_status
,
commit:
commit
}
...
...
spec/models/global_milestone_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
GlobalMilestone
do
describe
GlobalMilestone
,
models:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
)
}
let
(
:group
)
{
create
(
:group
)
}
...
...
spec/models/group_spec.rb
View file @
1e8d703a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Group
do
describe
Group
,
models:
true
do
let!
(
:group
)
{
create
(
:group
)
}
let!
(
:group
)
{
create
(
:group
)
}
describe
'associations'
do
describe
'associations'
do
...
...
spec/models/hooks/project_hook_spec.rb
View file @
1e8d703a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
require
'spec_helper'
require
'spec_helper'
describe
ProjectHook
do
describe
ProjectHook
,
models:
true
do
describe
'.push_hooks'
do
describe
'.push_hooks'
do
it
'should return hooks for push events only'
do
it
'should return hooks for push events only'
do
hook
=
create
(
:project_hook
,
push_events:
true
)
hook
=
create
(
:project_hook
,
push_events:
true
)
...
...
spec/models/hooks/service_hook_spec.rb
View file @
1e8d703a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
require
"spec_helper"
require
"spec_helper"
describe
ServiceHook
do
describe
ServiceHook
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:service
}
it
{
is_expected
.
to
belong_to
:service
}
end
end
...
...
spec/models/hooks/system_hook_spec.rb
View file @
1e8d703a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
require
"spec_helper"
require
"spec_helper"
describe
SystemHook
do
describe
SystemHook
,
models:
true
do
describe
"execute"
do
describe
"execute"
do
before
(
:each
)
do
before
(
:each
)
do
@system_hook
=
create
(
:system_hook
)
@system_hook
=
create
(
:system_hook
)
...
...
spec/models/hooks/web_hook_spec.rb
View file @
1e8d703a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
require
'spec_helper'
require
'spec_helper'
describe
ProjectHook
do
describe
ProjectHook
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
end
end
...
...
spec/models/issue_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Issue
do
describe
Issue
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
(
:milestone
)
}
it
{
is_expected
.
to
belong_to
(
:milestone
)
}
end
end
...
...
spec/models/key_spec.rb
View file @
1e8d703a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Key
do
describe
Key
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
(
:user
)
}
it
{
is_expected
.
to
belong_to
(
:user
)
}
end
end
...
...
spec/models/label_link_spec.rb
View file @
1e8d703a
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
require
'spec_helper'
require
'spec_helper'
describe
LabelLink
do
describe
LabelLink
,
models:
true
do
let
(
:label
)
{
create
(
:label_link
)
}
let
(
:label
)
{
create
(
:label_link
)
}
it
{
expect
(
label
).
to
be_valid
}
it
{
expect
(
label
).
to
be_valid
}
...
...
spec/models/label_spec.rb
View file @
1e8d703a
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Label
do
describe
Label
,
models:
true
do
let
(
:label
)
{
create
(
:label
)
}
let
(
:label
)
{
create
(
:label
)
}
describe
'associations'
do
describe
'associations'
do
...
...
spec/models/member_spec.rb
View file @
1e8d703a
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Member
do
describe
Member
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
(
:user
)
}
it
{
is_expected
.
to
belong_to
(
:user
)
}
end
end
...
...
spec/models/members/group_member_spec.rb
View file @
1e8d703a
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
require
'spec_helper'
require
'spec_helper'
describe
GroupMember
do
describe
GroupMember
,
models:
true
do
context
'notification'
do
context
'notification'
do
describe
"#after_create"
do
describe
"#after_create"
do
it
"should send email to user"
do
it
"should send email to user"
do
...
...
spec/models/members/project_member_spec.rb
View file @
1e8d703a
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
require
'spec_helper'
require
'spec_helper'
describe
ProjectMember
do
describe
ProjectMember
,
models:
true
do
describe
:import_team
do
describe
:import_team
do
before
do
before
do
@abilities
=
Six
.
new
@abilities
=
Six
.
new
...
...
spec/models/merge_request_spec.rb
View file @
1e8d703a
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
require
'spec_helper'
require
'spec_helper'
describe
MergeRequest
do
describe
MergeRequest
,
models:
true
do
subject
{
create
(
:merge_request
)
}
subject
{
create
(
:merge_request
)
}
describe
'associations'
do
describe
'associations'
do
...
...
spec/models/milestone_spec.rb
View file @
1e8d703a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Milestone
do
describe
Milestone
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
have_many
(
:issues
)
}
it
{
is_expected
.
to
have_many
(
:issues
)
}
...
...
spec/models/namespace_spec.rb
View file @
1e8d703a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Namespace
do
describe
Namespace
,
models:
true
do
let!
(
:namespace
)
{
create
(
:namespace
)
}
let!
(
:namespace
)
{
create
(
:namespace
)
}
it
{
is_expected
.
to
have_many
:projects
}
it
{
is_expected
.
to
have_many
:projects
}
...
...
spec/models/note_spec.rb
View file @
1e8d703a
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Note
do
describe
Note
,
models:
true
do
describe
'associations'
do
describe
'associations'
do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:noteable
)
}
it
{
is_expected
.
to
belong_to
(
:noteable
)
}
...
...
spec/models/project_security_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
Project
do
describe
Project
,
models:
true
do
describe
:authorization
do
describe
:authorization
do
before
do
before
do
@p1
=
create
(
:project
)
@p1
=
create
(
:project
)
...
...
spec/models/project_services/buildkite_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
BuildkiteService
do
describe
BuildkiteService
,
models:
true
do
describe
'Associations'
do
describe
'Associations'
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
have_one
:service_hook
}
it
{
is_expected
.
to
have_one
:service_hook
}
...
...
spec/models/project_services/drone_ci_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
DroneCiService
do
describe
DroneCiService
,
models:
true
do
describe
'associations'
do
describe
'associations'
do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
have_one
(
:service_hook
)
}
it
{
is_expected
.
to
have_one
(
:service_hook
)
}
...
...
spec/models/project_services/flowdock_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
FlowdockService
do
describe
FlowdockService
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
have_one
:service_hook
}
it
{
is_expected
.
to
have_one
:service_hook
}
...
...
spec/models/project_services/gemnasium_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
GemnasiumService
do
describe
GemnasiumService
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
have_one
:service_hook
}
it
{
is_expected
.
to
have_one
:service_hook
}
...
...
spec/models/project_services/gitlab_ci_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
GitlabCiService
do
describe
GitlabCiService
,
models:
true
do
describe
'associations'
do
describe
'associations'
do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
have_one
(
:service_hook
)
}
it
{
is_expected
.
to
have_one
(
:service_hook
)
}
...
...
spec/models/project_services/gitlab_issue_tracker_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
GitlabIssueTrackerService
do
describe
GitlabIssueTrackerService
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
have_one
:service_hook
}
it
{
is_expected
.
to
have_one
:service_hook
}
...
...
spec/models/project_services/hipchat_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
HipchatService
do
describe
HipchatService
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
have_one
:service_hook
}
it
{
is_expected
.
to
have_one
:service_hook
}
...
...
spec/models/project_services/irker_service_spec.rb
View file @
1e8d703a
...
@@ -22,7 +22,7 @@ require 'spec_helper'
...
@@ -22,7 +22,7 @@ require 'spec_helper'
require
'socket'
require
'socket'
require
'json'
require
'json'
describe
IrkerService
do
describe
IrkerService
,
models:
true
do
describe
'Associations'
do
describe
'Associations'
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
have_one
:service_hook
}
it
{
is_expected
.
to
have_one
:service_hook
}
...
...
spec/models/project_services/jira_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
JiraService
do
describe
JiraService
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
have_one
:service_hook
}
it
{
is_expected
.
to
have_one
:service_hook
}
...
...
spec/models/project_services/pushover_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
PushoverService
do
describe
PushoverService
,
models:
true
do
describe
'Associations'
do
describe
'Associations'
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
have_one
:service_hook
}
it
{
is_expected
.
to
have_one
:service_hook
}
...
...
spec/models/project_services/slack_service/issue_message_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
SlackService
::
IssueMessage
do
describe
SlackService
::
IssueMessage
,
models:
true
do
subject
{
SlackService
::
IssueMessage
.
new
(
args
)
}
subject
{
SlackService
::
IssueMessage
.
new
(
args
)
}
let
(
:args
)
do
let
(
:args
)
do
...
...
spec/models/project_services/slack_service/merge_message_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
SlackService
::
MergeMessage
do
describe
SlackService
::
MergeMessage
,
models:
true
do
subject
{
SlackService
::
MergeMessage
.
new
(
args
)
}
subject
{
SlackService
::
MergeMessage
.
new
(
args
)
}
let
(
:args
)
do
let
(
:args
)
do
...
...
spec/models/project_services/slack_service/note_message_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
SlackService
::
NoteMessage
do
describe
SlackService
::
NoteMessage
,
models:
true
do
let
(
:color
)
{
'#345'
}
let
(
:color
)
{
'#345'
}
before
do
before
do
...
...
spec/models/project_services/slack_service/push_message_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
SlackService
::
PushMessage
do
describe
SlackService
::
PushMessage
,
models:
true
do
subject
{
SlackService
::
PushMessage
.
new
(
args
)
}
subject
{
SlackService
::
PushMessage
.
new
(
args
)
}
let
(
:args
)
do
let
(
:args
)
do
...
...
spec/models/project_services/slack_service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
SlackService
do
describe
SlackService
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
have_one
:service_hook
}
it
{
is_expected
.
to
have_one
:service_hook
}
...
...
spec/models/project_snippet_spec.rb
View file @
1e8d703a
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
require
'spec_helper'
require
'spec_helper'
describe
ProjectSnippet
do
describe
ProjectSnippet
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
end
end
...
...
spec/models/project_spec.rb
View file @
1e8d703a
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Project
do
describe
Project
,
models:
true
do
describe
'associations'
do
describe
'associations'
do
it
{
is_expected
.
to
belong_to
(
:group
)
}
it
{
is_expected
.
to
belong_to
(
:group
)
}
it
{
is_expected
.
to
belong_to
(
:namespace
)
}
it
{
is_expected
.
to
belong_to
(
:namespace
)
}
...
...
spec/models/project_team_spec.rb
View file @
1e8d703a
require
"spec_helper"
require
"spec_helper"
describe
ProjectTeam
do
describe
ProjectTeam
,
models:
true
do
let
(
:master
)
{
create
(
:user
)
}
let
(
:master
)
{
create
(
:user
)
}
let
(
:reporter
)
{
create
(
:user
)
}
let
(
:reporter
)
{
create
(
:user
)
}
let
(
:guest
)
{
create
(
:user
)
}
let
(
:guest
)
{
create
(
:user
)
}
...
...
spec/models/project_wiki_spec.rb
View file @
1e8d703a
require
"spec_helper"
require
"spec_helper"
describe
ProjectWiki
do
describe
ProjectWiki
,
models:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:repository
)
{
project
.
repository
}
let
(
:repository
)
{
project
.
repository
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
owner
}
...
...
spec/models/protected_branch_spec.rb
View file @
1e8d703a
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
require
'spec_helper'
require
'spec_helper'
describe
ProtectedBranch
do
describe
ProtectedBranch
,
models:
true
do
describe
'Associations'
do
describe
'Associations'
do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
end
end
...
...
spec/models/repository_spec.rb
View file @
1e8d703a
require
'spec_helper'
require
'spec_helper'
describe
Repository
do
describe
Repository
,
models:
true
do
include
RepoHelpers
include
RepoHelpers
let
(
:repository
)
{
create
(
:project
).
repository
}
let
(
:repository
)
{
create
(
:project
).
repository
}
...
...
spec/models/service_spec.rb
View file @
1e8d703a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Service
do
describe
Service
,
models:
true
do
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
:project
}
it
{
is_expected
.
to
belong_to
:project
}
...
...
spec/models/snippet_spec.rb
View file @
1e8d703a
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Snippet
do
describe
Snippet
,
models:
true
do
describe
'modules'
do
describe
'modules'
do
subject
{
described_class
}
subject
{
described_class
}
...
...
spec/models/user_spec.rb
View file @
1e8d703a
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
require
'spec_helper'
require
'spec_helper'
describe
User
do
describe
User
,
models:
true
do
include
Gitlab
::
CurrentSettings
include
Gitlab
::
CurrentSettings
describe
'modules'
do
describe
'modules'
do
...
...
spec/models/wiki_page_spec.rb
View file @
1e8d703a
require
"spec_helper"
require
"spec_helper"
describe
WikiPage
do
describe
WikiPage
,
models:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
owner
}
let
(
:wiki
)
{
ProjectWiki
.
new
(
project
,
user
)
}
let
(
:wiki
)
{
ProjectWiki
.
new
(
project
,
user
)
}
...
...
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