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
Léo-Paul Géneau
gitlab-ce
Commits
2bf94980
Commit
2bf94980
authored
May 02, 2018
by
blackst0ne
Committed by
Rémy Coutable
May 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rails5] Fix spec/services/applications/create_service_spec.rb
parent
bdb238a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
spec/services/applications/create_service_spec.rb
spec/services/applications/create_service_spec.rb
+9
-5
No files found.
spec/services/applications/create_service_spec.rb
View file @
2bf94980
require
'spec_helper'
require
"spec_helper"
describe
::
Applications
::
CreateService
do
describe
::
Applications
::
CreateService
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:params
)
{
attributes_for
(
:application
)
}
let
(
:params
)
{
attributes_for
(
:application
)
}
let
(
:request
)
{
ActionController
::
TestRequest
.
new
(
remote_ip:
'127.0.0.1'
)
}
let
(
:request
)
do
if
Gitlab
.
rails5?
ActionController
::
TestRequest
.
new
({
remote_ip:
"127.0.0.1"
},
ActionController
::
TestSession
.
new
)
else
ActionController
::
TestRequest
.
new
(
remote_ip:
"127.0.0.1"
)
end
end
subject
{
described_class
.
new
(
user
,
params
)
}
subject
{
described_class
.
new
(
user
,
params
)
}
it
'creates an application'
do
it
{
expect
{
subject
.
execute
(
request
)
}.
to
change
{
Doorkeeper
::
Application
.
count
}.
by
(
1
)
}
expect
{
subject
.
execute
(
request
)
}.
to
change
{
Doorkeeper
::
Application
.
count
}.
by
(
1
)
end
end
end
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