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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7fdf979e
Commit
7fdf979e
authored
Jun 25, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails5 fix ArgumentError: wrong number of arguments (given 1, expected 2)
parent
14a11461
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
ee/changelogs/unreleased/rails5-fix-6608.yml
ee/changelogs/unreleased/rails5-fix-6608.yml
+5
-0
ee/spec/services/applications/create_service_spec.rb
ee/spec/services/applications/create_service_spec.rb
+7
-2
No files found.
ee/changelogs/unreleased/rails5-fix-6608.yml
0 → 100644
View file @
7fdf979e
---
title
:
'
Rails5
fix
ArgumentError:
wrong
number
of
arguments
(given
1,
expected
2)'
merge_request
:
6272
author
:
Jasper Maes
type
:
fixed
ee/spec/services/applications/create_service_spec.rb
View file @
7fdf979e
...
...
@@ -3,8 +3,13 @@ require 'spec_helper'
describe
::
Applications
::
CreateService
do
let
(
:user
)
{
create
(
:user
)
}
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
)
}
it
'creates an audit log'
do
...
...
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