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
044f09d8
Commit
044f09d8
authored
Jun 05, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change `logout` uses to `gitlab_sign_out`
Change `logout_direct` uses to `gitlab_sign_out_direct`
parent
018ed2c4
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
27 deletions
+27
-27
spec/features/boards/boards_spec.rb
spec/features/boards/boards_spec.rb
+2
-2
spec/features/groups_spec.rb
spec/features/groups_spec.rb
+2
-2
spec/features/issues/user_uses_slash_commands_spec.rb
spec/features/issues/user_uses_slash_commands_spec.rb
+2
-2
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+3
-3
spec/features/merge_requests/user_uses_slash_commands_spec.rb
.../features/merge_requests/user_uses_slash_commands_spec.rb
+4
-4
spec/features/merge_requests/widget_spec.rb
spec/features/merge_requests/widget_spec.rb
+1
-1
spec/features/projects/issuable_templates_spec.rb
spec/features/projects/issuable_templates_spec.rb
+1
-1
spec/features/projects/jobs_spec.rb
spec/features/projects/jobs_spec.rb
+1
-1
spec/features/u2f_spec.rb
spec/features/u2f_spec.rb
+8
-8
spec/support/features/issuable_slash_commands_shared_examples.rb
...pport/features/issuable_slash_commands_shared_examples.rb
+3
-3
No files found.
spec/features/boards/boards_spec.rb
View file @
044f09d8
...
@@ -519,7 +519,7 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -519,7 +519,7 @@ describe 'Issue Boards', feature: true, js: true do
context
'signed out user'
do
context
'signed out user'
do
before
do
before
do
log
out
gitlab_sign_
out
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
wait_for_requests
wait_for_requests
end
end
...
@@ -542,7 +542,7 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -542,7 +542,7 @@ describe 'Issue Boards', feature: true, js: true do
before
do
before
do
project
.
team
<<
[
user_guest
,
:guest
]
project
.
team
<<
[
user_guest
,
:guest
]
log
out
gitlab_sign_
out
gitlab_sign_in
(
user_guest
)
gitlab_sign_in
(
user_guest
)
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
wait_for_requests
wait_for_requests
...
...
spec/features/groups_spec.rb
View file @
044f09d8
...
@@ -108,7 +108,7 @@ feature 'Group', feature: true do
...
@@ -108,7 +108,7 @@ feature 'Group', feature: true do
before
do
before
do
group
.
add_owner
(
user
)
group
.
add_owner
(
user
)
log
out
gitlab_sign_
out
gitlab_sign_in
(
user
)
gitlab_sign_in
(
user
)
visit
subgroups_group_path
(
group
)
visit
subgroups_group_path
(
group
)
...
@@ -128,7 +128,7 @@ feature 'Group', feature: true do
...
@@ -128,7 +128,7 @@ feature 'Group', feature: true do
it
'checks permissions to avoid exposing groups by parent_id'
do
it
'checks permissions to avoid exposing groups by parent_id'
do
group
=
create
(
:group
,
:private
,
path:
'secret-group'
)
group
=
create
(
:group
,
:private
,
path:
'secret-group'
)
log
out
gitlab_sign_
out
gitlab_sign_in
(
:user
)
gitlab_sign_in
(
:user
)
visit
new_group_path
(
parent_id:
group
.
id
)
visit
new_group_path
(
parent_id:
group
.
id
)
...
...
spec/features/issues/user_uses_slash_commands_spec.rb
View file @
044f09d8
...
@@ -41,7 +41,7 @@ feature 'Issues > User uses quick actions', feature: true, js: true do
...
@@ -41,7 +41,7 @@ feature 'Issues > User uses quick actions', feature: true, js: true do
let
(
:guest
)
{
create
(
:user
)
}
let
(
:guest
)
{
create
(
:user
)
}
before
do
before
do
project
.
team
<<
[
guest
,
:guest
]
project
.
team
<<
[
guest
,
:guest
]
log
out
gitlab_sign_
out
gitlab_sign_in
(
guest
)
gitlab_sign_in
(
guest
)
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
end
end
...
@@ -81,7 +81,7 @@ feature 'Issues > User uses quick actions', feature: true, js: true do
...
@@ -81,7 +81,7 @@ feature 'Issues > User uses quick actions', feature: true, js: true do
let
(
:guest
)
{
create
(
:user
)
}
let
(
:guest
)
{
create
(
:user
)
}
before
do
before
do
project
.
team
<<
[
guest
,
:guest
]
project
.
team
<<
[
guest
,
:guest
]
log
out
gitlab_sign_
out
gitlab_sign_in
(
guest
)
gitlab_sign_in
(
guest
)
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
end
end
...
...
spec/features/issues_spec.rb
View file @
044f09d8
...
@@ -483,7 +483,7 @@ describe 'Issues', feature: true do
...
@@ -483,7 +483,7 @@ describe 'Issues', feature: true do
end
end
it
'shows assignee text'
,
js:
true
do
it
'shows assignee text'
,
js:
true
do
log
out
gitlab_sign_
out
gitlab_sign_in
guest
gitlab_sign_in
guest
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
...
@@ -546,7 +546,7 @@ describe 'Issues', feature: true do
...
@@ -546,7 +546,7 @@ describe 'Issues', feature: true do
end
end
it
'shows milestone text'
,
js:
true
do
it
'shows milestone text'
,
js:
true
do
log
out
gitlab_sign_
out
gitlab_sign_in
guest
gitlab_sign_in
guest
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
...
@@ -560,7 +560,7 @@ describe 'Issues', feature: true do
...
@@ -560,7 +560,7 @@ describe 'Issues', feature: true do
context
'by unauthenticated user'
do
context
'by unauthenticated user'
do
before
do
before
do
log
out
gitlab_sign_
out
end
end
it
'redirects to signin then back to new issue after signin'
do
it
'redirects to signin then back to new issue after signin'
do
...
...
spec/features/merge_requests/user_uses_slash_commands_spec.rb
View file @
044f09d8
...
@@ -51,7 +51,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
...
@@ -51,7 +51,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
let
(
:guest
)
{
create
(
:user
)
}
let
(
:guest
)
{
create
(
:user
)
}
before
do
before
do
project
.
team
<<
[
guest
,
:guest
]
project
.
team
<<
[
guest
,
:guest
]
log
out
gitlab_sign_
out
gitlab_sign_in
(
guest
)
gitlab_sign_in
(
guest
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
end
end
...
@@ -97,7 +97,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
...
@@ -97,7 +97,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
let
(
:guest
)
{
create
(
:user
)
}
let
(
:guest
)
{
create
(
:user
)
}
before
do
before
do
project
.
team
<<
[
guest
,
:guest
]
project
.
team
<<
[
guest
,
:guest
]
log
out
gitlab_sign_
out
gitlab_sign_in
(
guest
)
gitlab_sign_in
(
guest
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
end
end
...
@@ -125,7 +125,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
...
@@ -125,7 +125,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
let
(
:new_url_opts
)
{
{
merge_request:
{
source_branch:
'feature'
}
}
}
let
(
:new_url_opts
)
{
{
merge_request:
{
source_branch:
'feature'
}
}
}
before
do
before
do
log
out
gitlab_sign_
out
another_project
.
team
<<
[
user
,
:master
]
another_project
.
team
<<
[
user
,
:master
]
gitlab_sign_in
(
user
)
gitlab_sign_in
(
user
)
end
end
...
@@ -181,7 +181,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
...
@@ -181,7 +181,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
let
(
:guest
)
{
create
(
:user
)
}
let
(
:guest
)
{
create
(
:user
)
}
before
do
before
do
project
.
team
<<
[
guest
,
:guest
]
project
.
team
<<
[
guest
,
:guest
]
log
out
gitlab_sign_
out
gitlab_sign_in
(
guest
)
gitlab_sign_in
(
guest
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
end
end
...
...
spec/features/merge_requests/widget_spec.rb
View file @
044f09d8
...
@@ -209,7 +209,7 @@ describe 'Merge request', :feature, :js do
...
@@ -209,7 +209,7 @@ describe 'Merge request', :feature, :js do
before
do
before
do
project
.
team
<<
[
user2
,
:master
]
project
.
team
<<
[
user2
,
:master
]
log
out
gitlab_sign_
out
gitlab_sign_in
user2
gitlab_sign_in
user2
merge_request
.
update
(
target_project:
fork_project
)
merge_request
.
update
(
target_project:
fork_project
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
...
...
spec/features/projects/issuable_templates_spec.rb
View file @
044f09d8
...
@@ -124,7 +124,7 @@ feature 'issuable templates', feature: true, js: true do
...
@@ -124,7 +124,7 @@ feature 'issuable templates', feature: true, js: true do
let
(
:merge_request
)
{
create
(
:merge_request
,
:with_diffs
,
source_project:
fork_project
,
target_project:
project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
:with_diffs
,
source_project:
fork_project
,
target_project:
project
)
}
background
do
background
do
log
out
gitlab_sign_
out
project
.
team
<<
[
fork_user
,
:developer
]
project
.
team
<<
[
fork_user
,
:developer
]
fork_project
.
team
<<
[
fork_user
,
:master
]
fork_project
.
team
<<
[
fork_user
,
:master
]
create
(
:forked_project_link
,
forked_to_project:
fork_project
,
forked_from_project:
project
)
create
(
:forked_project_link
,
forked_to_project:
fork_project
,
forked_from_project:
project
)
...
...
spec/features/projects/jobs_spec.rb
View file @
044f09d8
...
@@ -392,7 +392,7 @@ feature 'Jobs', :feature do
...
@@ -392,7 +392,7 @@ feature 'Jobs', :feature do
job
.
cancel!
job
.
cancel!
project
.
update
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
project
.
update
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
log
out_direct
gitlab_sign_
out_direct
gitlab_sign_in
(
create
(
:user
))
gitlab_sign_in
(
create
(
:user
))
visit
namespace_project_job_path
(
project
.
namespace
,
project
,
job
)
visit
namespace_project_job_path
(
project
.
namespace
,
project
,
job
)
end
end
...
...
spec/features/u2f_spec.rb
View file @
044f09d8
...
@@ -93,7 +93,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
...
@@ -93,7 +93,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
manage_two_factor_authentication
manage_two_factor_authentication
u2f_device
=
register_u2f_device
u2f_device
=
register_u2f_device
expect
(
page
).
to
have_content
(
'Your U2F device was registered'
)
expect
(
page
).
to
have_content
(
'Your U2F device was registered'
)
log
out
gitlab_sign_
out
# Second user
# Second user
user
=
gitlab_sign_in
(
:user
)
user
=
gitlab_sign_in
(
:user
)
...
@@ -152,7 +152,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
...
@@ -152,7 +152,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
visit
profile_account_path
visit
profile_account_path
manage_two_factor_authentication
manage_two_factor_authentication
@u2f_device
=
register_u2f_device
@u2f_device
=
register_u2f_device
log
out
gitlab_sign_
out
end
end
describe
"when 2FA via OTP is disabled"
do
describe
"when 2FA via OTP is disabled"
do
...
@@ -200,7 +200,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
...
@@ -200,7 +200,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
visit
profile_account_path
visit
profile_account_path
manage_two_factor_authentication
manage_two_factor_authentication
register_u2f_device
(
name:
'My other device'
)
register_u2f_device
(
name:
'My other device'
)
log
out
gitlab_sign_
out
# Try authenticating user with the old U2F device
# Try authenticating user with the old U2F device
gitlab_sign_in
(
current_user
)
gitlab_sign_in
(
current_user
)
...
@@ -218,7 +218,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
...
@@ -218,7 +218,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
visit
profile_account_path
visit
profile_account_path
manage_two_factor_authentication
manage_two_factor_authentication
register_u2f_device
(
@u2f_device
)
register_u2f_device
(
@u2f_device
)
log
out
gitlab_sign_
out
# Try authenticating user with the same U2F device
# Try authenticating user with the same U2F device
gitlab_sign_in
(
current_user
)
gitlab_sign_in
(
current_user
)
...
@@ -254,7 +254,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
...
@@ -254,7 +254,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
visit
profile_two_factor_auth_path
visit
profile_two_factor_auth_path
expect
(
page
).
to
have_content
(
"Your U2F device needs to be set up."
)
expect
(
page
).
to
have_content
(
"Your U2F device needs to be set up."
)
second_device
=
register_u2f_device
(
name:
'My other device'
)
second_device
=
register_u2f_device
(
name:
'My other device'
)
log
out
gitlab_sign_
out
# Authenticate as both devices
# Authenticate as both devices
[
first_device
,
second_device
].
each
do
|
device
|
[
first_device
,
second_device
].
each
do
|
device
|
...
@@ -264,7 +264,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
...
@@ -264,7 +264,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
expect
(
page
).
to
have_css
(
'.sign-out-link'
,
visible:
false
)
expect
(
page
).
to
have_css
(
'.sign-out-link'
,
visible:
false
)
log
out
gitlab_sign_
out
end
end
end
end
end
end
...
@@ -307,7 +307,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
...
@@ -307,7 +307,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
describe
'when no u2f device is registered'
do
describe
'when no u2f device is registered'
do
before
do
before
do
log
out
gitlab_sign_
out
gitlab_sign_in
(
user
)
gitlab_sign_in
(
user
)
end
end
...
@@ -320,7 +320,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
...
@@ -320,7 +320,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
before
do
before
do
manage_two_factor_authentication
manage_two_factor_authentication
@u2f_device
=
register_u2f_device
@u2f_device
=
register_u2f_device
log
out
gitlab_sign_
out
gitlab_sign_in
(
user
)
gitlab_sign_in
(
user
)
end
end
...
...
spec/support/features/issuable_slash_commands_shared_examples.rb
View file @
044f09d8
...
@@ -105,7 +105,7 @@ shared_examples 'issuable record that supports quick actions in its description
...
@@ -105,7 +105,7 @@ shared_examples 'issuable record that supports quick actions in its description
context
"when current user cannot close
#{
issuable_type
}
"
do
context
"when current user cannot close
#{
issuable_type
}
"
do
before
do
before
do
log
out
gitlab_sign_
out
gitlab_sign_in
(
guest
)
gitlab_sign_in
(
guest
)
visit
public_send
(
"namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
end
end
...
@@ -140,7 +140,7 @@ shared_examples 'issuable record that supports quick actions in its description
...
@@ -140,7 +140,7 @@ shared_examples 'issuable record that supports quick actions in its description
context
"when current user cannot reopen
#{
issuable_type
}
"
do
context
"when current user cannot reopen
#{
issuable_type
}
"
do
before
do
before
do
log
out
gitlab_sign_
out
gitlab_sign_in
(
guest
)
gitlab_sign_in
(
guest
)
visit
public_send
(
"namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
end
end
...
@@ -170,7 +170,7 @@ shared_examples 'issuable record that supports quick actions in its description
...
@@ -170,7 +170,7 @@ shared_examples 'issuable record that supports quick actions in its description
context
"when current user cannot change title of
#{
issuable_type
}
"
do
context
"when current user cannot change title of
#{
issuable_type
}
"
do
before
do
before
do
log
out
gitlab_sign_
out
gitlab_sign_in
(
guest
)
gitlab_sign_in
(
guest
)
visit
public_send
(
"namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
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