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
83e84558
Commit
83e84558
authored
Jan 10, 2020
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace set to let_it_be in ee/spec/features
Contributes to
https://gitlab.com/gitlab-org/gitlab/issues/27922
parent
f1ce70ab
Changes
30
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
88 additions
and
88 deletions
+88
-88
ee/spec/features/admin/admin_audit_logs_spec.rb
ee/spec/features/admin/admin_audit_logs_spec.rb
+3
-3
ee/spec/features/admin/admin_interacts_with_push_rules_spec.rb
...ec/features/admin/admin_interacts_with_push_rules_spec.rb
+1
-1
ee/spec/features/admin/licenses/admin_uploads_license_spec.rb
...pec/features/admin/licenses/admin_uploads_license_spec.rb
+6
-6
ee/spec/features/admin/licenses/admin_views_license_spec.rb
ee/spec/features/admin/licenses/admin_views_license_spec.rb
+8
-8
ee/spec/features/boards/group_boards/multiple_boards_spec.rb
ee/spec/features/boards/group_boards/multiple_boards_spec.rb
+4
-4
ee/spec/features/dashboards/todos_spec.rb
ee/spec/features/dashboards/todos_spec.rb
+7
-7
ee/spec/features/geo_node_spec.rb
ee/spec/features/geo_node_spec.rb
+3
-3
ee/spec/features/groups/hooks/user_adds_hook_spec.rb
ee/spec/features/groups/hooks/user_adds_hook_spec.rb
+3
-3
ee/spec/features/groups/hooks/user_edits_hooks_spec.rb
ee/spec/features/groups/hooks/user_edits_hooks_spec.rb
+3
-3
ee/spec/features/groups/hooks/user_views_hooks_spec.rb
ee/spec/features/groups/hooks/user_views_hooks_spec.rb
+3
-3
ee/spec/features/groups/insights_spec.rb
ee/spec/features/groups/insights_spec.rb
+1
-1
ee/spec/features/groups/packages_spec.rb
ee/spec/features/groups/packages_spec.rb
+3
-3
ee/spec/features/merge_trains/two_merge_requests_on_train_spec.rb
...features/merge_trains/two_merge_requests_on_train_spec.rb
+2
-2
ee/spec/features/profiles/pipeline_quota_spec.rb
ee/spec/features/profiles/pipeline_quota_spec.rb
+5
-5
ee/spec/features/projects/insights_spec.rb
ee/spec/features/projects/insights_spec.rb
+1
-1
ee/spec/features/projects/issues/design_management/user_uploads_designs_spec.rb
...cts/issues/design_management/user_uploads_designs_spec.rb
+3
-3
ee/spec/features/projects/issues/design_management/user_views_design_images_spec.rb
...issues/design_management/user_views_design_images_spec.rb
+3
-3
ee/spec/features/projects/issues/design_management/user_views_design_spec.rb
...ojects/issues/design_management/user_views_design_spec.rb
+3
-3
ee/spec/features/projects/issues/design_management/user_views_designs_spec.rb
...jects/issues/design_management/user_views_designs_spec.rb
+3
-3
ee/spec/features/projects/services/user_activates_alerts_spec.rb
.../features/projects/services/user_activates_alerts_spec.rb
+2
-2
ee/spec/features/projects/settings/user_manages_members_spec.rb
...c/features/projects/settings/user_manages_members_spec.rb
+3
-3
ee/spec/features/projects/tracings_spec.rb
ee/spec/features/projects/tracings_spec.rb
+1
-1
ee/spec/features/read_only_spec.rb
ee/spec/features/read_only_spec.rb
+3
-3
ee/spec/features/security/group/internal_access_spec.rb
ee/spec/features/security/group/internal_access_spec.rb
+3
-3
ee/spec/features/security/group/private_access_spec.rb
ee/spec/features/security/group/private_access_spec.rb
+3
-3
ee/spec/features/security/group/public_access_spec.rb
ee/spec/features/security/group/public_access_spec.rb
+3
-3
ee/spec/features/security/project/internal_access_spec.rb
ee/spec/features/security/project/internal_access_spec.rb
+1
-1
ee/spec/features/security/project/private_access_spec.rb
ee/spec/features/security/project/private_access_spec.rb
+1
-1
ee/spec/features/security/project/public_access_spec.rb
ee/spec/features/security/project/public_access_spec.rb
+1
-1
ee/spec/features/user_unsubscribes_from_admin_notifications_spec.rb
...atures/user_unsubscribes_from_admin_notifications_spec.rb
+2
-2
No files found.
ee/spec/features/admin/admin_audit_logs_spec.rb
View file @
83e84558
...
...
@@ -108,9 +108,9 @@ describe 'Admin::AuditLogs', :js do
end
describe
'filter by date'
,
js:
false
do
set
(
:audit_event_1
)
{
create
(
:user_audit_event
,
created_at:
5
.
days
.
ago
)
}
set
(
:audit_event_2
)
{
create
(
:user_audit_event
,
created_at:
3
.
days
.
ago
)
}
set
(
:audit_event_3
)
{
create
(
:user_audit_event
,
created_at:
1
.
day
.
ago
)
}
let_it_be
(
:audit_event_1
)
{
create
(
:user_audit_event
,
created_at:
5
.
days
.
ago
)
}
let_it_be
(
:audit_event_2
)
{
create
(
:user_audit_event
,
created_at:
3
.
days
.
ago
)
}
let_it_be
(
:audit_event_3
)
{
create
(
:user_audit_event
,
created_at:
1
.
day
.
ago
)
}
before
do
visit
admin_audit_logs_path
...
...
ee/spec/features/admin/admin_interacts_with_push_rules_spec.rb
View file @
83e84558
...
...
@@ -3,7 +3,7 @@
require
"spec_helper"
describe
"Admin interacts with push rules"
do
set
(
:user
)
{
create
(
:admin
)
}
let_it_be
(
:user
)
{
create
(
:admin
)
}
before
do
sign_in
(
user
)
...
...
ee/spec/features/admin/licenses/admin_uploads_license_spec.rb
View file @
83e84558
...
...
@@ -3,7 +3,7 @@
require
"spec_helper"
describe
"Admin uploads license"
do
set
(
:admin
)
{
create
(
:admin
)
}
let_it_be
(
:admin
)
{
create
(
:admin
)
}
before
do
stub_feature_flags
(
licenses_app:
false
)
...
...
@@ -11,7 +11,7 @@ describe "Admin uploads license" do
end
context
"when license key is provided in the query string"
do
set
(
:license
)
{
build
(
:license
,
data:
build
(
:gitlab_license
,
restrictions:
{
active_user_count:
2000
}).
export
)
}
let_it_be
(
:license
)
{
build
(
:license
,
data:
build
(
:gitlab_license
,
restrictions:
{
active_user_count:
2000
}).
export
)
}
before
do
License
.
destroy_all
# rubocop: disable DestroyAll
...
...
@@ -51,8 +51,8 @@ describe "Admin uploads license" do
end
context
"when license is valid"
do
set
(
:license
)
{
build
(
:gitlab_license
)
}
set
(
:path
)
{
Rails
.
root
.
join
(
"tmp/valid_license.gitlab-license"
)
}
let_it_be
(
:license
)
{
build
(
:gitlab_license
)
}
let_it_be
(
:path
)
{
Rails
.
root
.
join
(
"tmp/valid_license.gitlab-license"
)
}
it
"uploads license"
do
attach_and_upload
(
path
)
...
...
@@ -63,8 +63,8 @@ describe "Admin uploads license" do
end
context
"when license is invalid"
do
set
(
:license
)
{
build
(
:gitlab_license
,
expires_at:
Date
.
yesterday
)
}
set
(
:path
)
{
Rails
.
root
.
join
(
"tmp/invalid_license.gitlab-license"
)
}
let_it_be
(
:license
)
{
build
(
:gitlab_license
,
expires_at:
Date
.
yesterday
)
}
let_it_be
(
:path
)
{
Rails
.
root
.
join
(
"tmp/invalid_license.gitlab-license"
)
}
it
"doesn't upload license"
do
attach_and_upload
(
path
)
...
...
ee/spec/features/admin/licenses/admin_views_license_spec.rb
View file @
83e84558
...
...
@@ -3,7 +3,7 @@
require
"spec_helper"
describe
"Admin views license"
do
set
(
:admin
)
{
create
(
:admin
)
}
let_it_be
(
:admin
)
{
create
(
:admin
)
}
before
do
stub_feature_flags
(
licenses_app:
false
)
...
...
@@ -25,7 +25,7 @@ describe "Admin views license" do
end
context
"when license is trial"
do
set
(
:license
)
{
create
(
:license
,
trial:
true
)
}
let_it_be
(
:license
)
{
create
(
:license
,
trial:
true
)
}
before
do
visit
(
admin_license_path
)
...
...
@@ -38,7 +38,7 @@ describe "Admin views license" do
end
context
"when license is expired"
do
set
(
:license
)
{
create
(
:license
,
trial:
true
,
expired:
true
)
}
let_it_be
(
:license
)
{
create
(
:license
,
trial:
true
,
expired:
true
)
}
it
"does not mention blocking of changes"
do
page
.
within
(
".gitlab-ee-license-banner"
)
do
...
...
@@ -50,7 +50,7 @@ describe "Admin views license" do
end
context
"when license is regular"
do
set
(
:license
)
{
create
(
:license
)
}
let_it_be
(
:license
)
{
create
(
:license
)
}
before
do
visit
(
admin_license_path
)
...
...
@@ -65,19 +65,19 @@ describe "Admin views license" do
end
context
"when license expired"
do
set
(
:license
)
{
build
(
:license
,
data:
build
(
:gitlab_license
,
expires_at:
Date
.
yesterday
).
export
).
save
(
validate:
false
)
}
let_it_be
(
:license
)
{
build
(
:license
,
data:
build
(
:gitlab_license
,
expires_at:
Date
.
yesterday
).
export
).
save
(
validate:
false
)
}
it
{
expect
(
page
).
to
have_content
(
"Your license expired"
)
}
context
"when license blocks changes"
do
set
(
:license
)
{
build
(
:license
,
data:
build
(
:gitlab_license
,
expires_at:
Date
.
yesterday
,
block_changes_at:
Date
.
today
).
export
).
save
(
validate:
false
)
}
let_it_be
(
:license
)
{
build
(
:license
,
data:
build
(
:gitlab_license
,
expires_at:
Date
.
yesterday
,
block_changes_at:
Date
.
today
).
export
).
save
(
validate:
false
)
}
it
{
expect
(
page
).
to
have_content
"Pushing code and creation of issues and merge requests has been disabled."
}
end
end
context
"when viewing license history"
do
set
(
:license
)
{
create
(
:license
)
}
let_it_be
(
:license
)
{
create
(
:license
)
}
it
"shows licensee"
do
license_history
=
page
.
find
(
"#license_history"
)
...
...
@@ -90,7 +90,7 @@ describe "Admin views license" do
end
context
"with limited users"
do
set
(
:license
)
{
create
(
:license
,
data:
build
(
:gitlab_license
,
restrictions:
{
active_user_count:
2000
}).
export
)
}
let_it_be
(
:license
)
{
create
(
:license
,
data:
build
(
:gitlab_license
,
restrictions:
{
active_user_count:
2000
}).
export
)
}
before
do
visit
(
admin_license_path
)
...
...
ee/spec/features/boards/group_boards/multiple_boards_spec.rb
View file @
83e84558
...
...
@@ -3,10 +3,10 @@
require
'spec_helper'
describe
'Multiple Issue Boards'
,
:js
do
set
(
:user
)
{
create
(
:user
)
}
set
(
:group
)
{
create
(
:group
,
:public
)
}
set
(
:planning
)
{
create
(
:group_label
,
group:
group
,
name:
'Planning'
)
}
set
(
:board
)
{
create
(
:board
,
group:
group
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:group
)
{
create
(
:group
,
:public
)
}
let_it_be
(
:planning
)
{
create
(
:group_label
,
group:
group
,
name:
'Planning'
)
}
let_it_be
(
:board
)
{
create
(
:board
,
group:
group
)
}
let
(
:parent
)
{
group
}
let
(
:boards_path
)
{
group_boards_path
(
group
)
}
...
...
ee/spec/features/dashboards/todos_spec.rb
View file @
83e84558
...
...
@@ -3,18 +3,18 @@
require
'spec_helper'
describe
'Dashboard todos'
do
set
(
:user
)
{
create
(
:user
)
}
set
(
:author
)
{
create
(
:user
)
}
set
(
:project
)
{
create
(
:project
,
:public
)
}
set
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:author
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
)
}
let_it_be
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:page_path
)
{
dashboard_todos_path
}
it_behaves_like
'dashboard gold trial callout'
context
'User has a todo regarding a design'
do
set
(
:target
)
{
create
(
:design
,
issue:
issue
)
}
set
(
:note
)
{
create
(
:note
,
project:
project
,
note:
"I am note, hear me roar"
)
}
set
(
:todo
)
do
let_it_be
(
:target
)
{
create
(
:design
,
issue:
issue
)
}
let_it_be
(
:note
)
{
create
(
:note
,
project:
project
,
note:
"I am note, hear me roar"
)
}
let_it_be
(
:todo
)
do
create
(
:todo
,
:mentioned
,
user:
user
,
project:
project
,
...
...
ee/spec/features/geo_node_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'GEO Nodes'
,
:geo
do
include
::
EE
::
GeoHelpers
set
(
:user
)
{
create
(
:user
)
}
set
(
:geo_primary
)
{
create
(
:geo_node
,
:primary
)
}
set
(
:geo_secondary
)
{
create
(
:geo_node
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:geo_primary
)
{
create
(
:geo_node
,
:primary
)
}
let_it_be
(
:geo_secondary
)
{
create
(
:geo_node
)
}
context
'Geo Secondary Node'
do
let
(
:project
)
{
create
(
:project
)
}
...
...
ee/spec/features/groups/hooks/user_adds_hook_spec.rb
View file @
83e84558
...
...
@@ -3,9 +3,9 @@
require
"spec_helper"
describe
"User adds hook"
do
set
(
:group
)
{
create
(
:group
)
}
set
(
:user
)
{
create
(
:user
)
}
set
(
:url
)
{
"http://example.org"
}
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:url
)
{
"http://example.org"
}
before
do
group
.
add_owner
(
user
)
...
...
ee/spec/features/groups/hooks/user_edits_hooks_spec.rb
View file @
83e84558
...
...
@@ -3,9 +3,9 @@
require
'spec_helper'
describe
'User edits hooks'
do
set
(
:group
)
{
create
(
:group
)
}
set
(
:hook
)
{
create
(
:group_hook
,
group:
group
)
}
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:hook
)
{
create
(
:group_hook
,
group:
group
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:url
)
{
'http://example.org/new'
}
before
do
...
...
ee/spec/features/groups/hooks/user_views_hooks_spec.rb
View file @
83e84558
...
...
@@ -3,9 +3,9 @@
require
"spec_helper"
describe
"User views hooks"
do
set
(
:group
)
{
create
(
:group
)
}
set
(
:hook
)
{
create
(
:group_hook
,
group:
group
)
}
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:hook
)
{
create
(
:group_hook
,
group:
group
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
before
do
group
.
add_owner
(
user
)
...
...
ee/spec/features/groups/insights_spec.rb
View file @
83e84558
...
...
@@ -4,7 +4,7 @@ require 'spec_helper'
describe
'Group Insights'
do
it_behaves_like
'Insights page'
do
set
(
:entity
)
{
create
(
:group
)
}
let_it_be
(
:entity
)
{
create
(
:group
)
}
let
(
:route
)
{
url_for
([
entity
,
:insights
])
}
let
(
:path
)
{
group_insights_path
(
entity
)
}
end
...
...
ee/spec/features/groups/packages_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'Group Packages'
do
include
SortingHelper
set
(
:user
)
{
create
(
:user
)
}
set
(
:group
)
{
create
(
:group
)
}
set
(
:project
)
{
create
(
:project
,
group:
group
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:project
)
{
create
(
:project
,
group:
group
)
}
before
do
sign_in
(
user
)
...
...
ee/spec/features/merge_trains/two_merge_requests_on_train_spec.rb
View file @
83e84558
...
...
@@ -6,8 +6,8 @@ describe 'Two merge requests on a merge train' do
include
RepoHelpers
let
(
:project
)
{
create
(
:project
,
:repository
)
}
set
(
:maintainer_1
)
{
create
(
:user
)
}
set
(
:maintainer_2
)
{
create
(
:user
)
}
let_it_be
(
:maintainer_1
)
{
create
(
:user
)
}
let_it_be
(
:maintainer_2
)
{
create
(
:user
)
}
let
(
:merge_request_1
)
do
create
(
:merge_request
,
...
...
ee/spec/features/profiles/pipeline_quota_spec.rb
View file @
83e84558
...
...
@@ -5,11 +5,11 @@ require 'spec_helper'
describe
'Profile > Pipeline Quota'
do
using
RSpec
::
Parameterized
::
TableSyntax
set
(
:user
)
{
create
(
:user
)
}
set
(
:namespac
e
)
{
user
.
namespace
}
set
(
:statistics
)
{
create
(
:namespace_statistics
,
namespace:
namespace
)
}
set
(
:project
)
{
create
(
:project
,
namespace:
namespace
)
}
set
(
:other_project
)
{
create
(
:project
,
namespace:
namespace
,
shared_runners_enabled:
false
)
}
let_it_be
(
:user
,
reload:
true
)
{
create
(
:user
)
}
let_it_be
(
:namespace
,
reload:
tru
e
)
{
user
.
namespace
}
let_it_be
(
:statistics
,
reload:
true
)
{
create
(
:namespace_statistics
,
namespace:
namespace
)
}
let_it_be
(
:project
,
reload:
true
)
{
create
(
:project
,
namespace:
namespace
)
}
let_it_be
(
:other_project
)
{
create
(
:project
,
namespace:
namespace
,
shared_runners_enabled:
false
)
}
before
do
gitlab_sign_in
(
user
)
...
...
ee/spec/features/projects/insights_spec.rb
View file @
83e84558
...
...
@@ -4,7 +4,7 @@ require 'spec_helper'
describe
'Project Insights'
do
it_behaves_like
'Insights page'
do
set
(
:entity
)
{
create
(
:project
)
}
let_it_be
(
:entity
)
{
create
(
:project
)
}
let
(
:route
)
{
url_for
([
entity
.
namespace
,
entity
,
:insights
])
}
let
(
:path
)
{
project_insights_path
(
entity
)
}
end
...
...
ee/spec/features/projects/issues/design_management/user_uploads_designs_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'User uploads new design'
,
:js
do
include
DesignManagementTestHelpers
set
(
:project
)
{
create
(
:project_empty_repo
,
:public
)
}
set
(
:user
)
{
project
.
owner
}
set
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be
(
:project
)
{
create
(
:project_empty_repo
,
:public
)
}
let_it_be
(
:user
)
{
project
.
owner
}
let_it_be
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
before
do
sign_in
(
user
)
...
...
ee/spec/features/projects/issues/design_management/user_views_design_images_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'Users views raw design image files'
do
include
DesignManagementTestHelpers
set
(
:project
)
{
create
(
:project
,
:public
)
}
set
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
set
(
:design
)
{
create
(
:design
,
:with_file
,
issue:
issue
,
versions_count:
2
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
)
}
let_it_be
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be
(
:design
)
{
create
(
:design
,
:with_file
,
issue:
issue
,
versions_count:
2
)
}
let
(
:newest_version
)
{
design
.
versions
.
ordered
.
first
}
let
(
:oldest_version
)
{
design
.
versions
.
ordered
.
last
}
...
...
ee/spec/features/projects/issues/design_management/user_views_design_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'User views issue designs'
,
:js
do
include
DesignManagementTestHelpers
set
(
:project
)
{
create
(
:project_empty_repo
,
:public
)
}
set
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
set
(
:design
)
{
create
(
:design
,
:with_file
,
issue:
issue
)
}
let_it_be
(
:project
)
{
create
(
:project_empty_repo
,
:public
)
}
let_it_be
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be
(
:design
)
{
create
(
:design
,
:with_file
,
issue:
issue
)
}
before
do
enable_design_management
...
...
ee/spec/features/projects/issues/design_management/user_views_designs_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'User views issue designs'
,
:js
do
include
DesignManagementTestHelpers
set
(
:project
)
{
create
(
:project_empty_repo
,
:public
)
}
set
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
set
(
:design
)
{
create
(
:design
,
:with_file
,
issue:
issue
)
}
let_it_be
(
:project
)
{
create
(
:project_empty_repo
,
:public
)
}
let_it_be
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be
(
:design
)
{
create
(
:design
,
:with_file
,
issue:
issue
)
}
before
do
enable_design_management
...
...
ee/spec/features/projects/services/user_activates_alerts_spec.rb
View file @
83e84558
...
...
@@ -3,8 +3,8 @@
require
'spec_helper'
describe
'User activates Alerts'
do
set
(
:project
)
{
create
(
:project
)
}
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:service_name
)
{
'alerts'
}
let
(
:service_title
)
{
'Alerts endpoint'
}
...
...
ee/spec/features/projects/settings/user_manages_members_spec.rb
View file @
83e84558
...
...
@@ -3,9 +3,9 @@
require
"spec_helper"
describe
"User manages members"
do
set
(
:group
)
{
create
(
:group
)
}
set
(
:project
)
{
create
(
:project
,
namespace:
group
)
}
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:project
)
{
create
(
:project
,
namespace:
group
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
before
do
sign_in
(
user
)
...
...
ee/spec/features/projects/tracings_spec.rb
View file @
83e84558
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
describe
'Tracings Content Security Policy'
do
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
subject
{
response_headers
[
'Content-Security-Policy'
]
}
...
...
ee/spec/features/read_only_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'Geo read-only message'
,
:geo
do
include
::
EE
::
GeoHelpers
set
(
:user
)
{
create
(
:user
)
}
set
(
:primary
)
{
create
(
:geo_node
,
:primary
)
}
set
(
:secondary
)
{
create
(
:geo_node
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:primary
)
{
create
(
:geo_node
,
:primary
)
}
let_it_be
(
:secondary
)
{
create
(
:geo_node
)
}
before
do
sign_in
(
user
)
...
...
ee/spec/features/security/group/internal_access_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'[EE] Internal Group access'
do
include
AccessMatchers
set
(
:group
)
{
create
(
:group
,
:internal
)
}
set
(
:project
)
{
create
(
:project
,
:internal
,
group:
group
)
}
set
(
:project_guest
)
do
let_it_be
(
:group
)
{
create
(
:group
,
:internal
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:internal
,
group:
group
)
}
let_it_be
(
:project_guest
)
do
create
(
:user
)
do
|
user
|
project
.
add_guest
(
user
)
end
...
...
ee/spec/features/security/group/private_access_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'[EE] Private Group access'
do
include
AccessMatchers
set
(
:group
)
{
create
(
:group
,
:private
)
}
set
(
:project
)
{
create
(
:project
,
:private
,
group:
group
)
}
set
(
:project_guest
)
do
let_it_be
(
:group
)
{
create
(
:group
,
:private
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:private
,
group:
group
)
}
let_it_be
(
:project_guest
)
do
create
(
:user
)
do
|
user
|
project
.
add_guest
(
user
)
end
...
...
ee/spec/features/security/group/public_access_spec.rb
View file @
83e84558
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
describe
'[EE] Public Group access'
do
include
AccessMatchers
set
(
:group
)
{
create
(
:group
,
:public
)
}
set
(
:project
)
{
create
(
:project
,
:public
,
group:
group
)
}
set
(
:project_guest
)
do
let_it_be
(
:group
)
{
create
(
:group
,
:public
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
group:
group
)
}
let_it_be
(
:project_guest
)
do
create
(
:user
)
do
|
user
|
project
.
add_guest
(
user
)
end
...
...
ee/spec/features/security/project/internal_access_spec.rb
View file @
83e84558
...
...
@@ -5,7 +5,7 @@ require 'spec_helper'
describe
'[EE] Internal Project Access'
do
include
AccessMatchers
set
(
:project
)
{
create
(
:project
,
:internal
,
:repository
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:internal
,
:repository
)
}
describe
'GET /:project_path/insights'
do
before
do
...
...
ee/spec/features/security/project/private_access_spec.rb
View file @
83e84558
...
...
@@ -5,7 +5,7 @@ require 'spec_helper'
describe
'[EE] Private Project Access'
do
include
AccessMatchers
set
(
:project
)
{
create
(
:project
,
:private
,
:repository
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:private
,
:repository
)
}
describe
'GET/:project_path/insights'
do
before
do
...
...
ee/spec/features/security/project/public_access_spec.rb
View file @
83e84558
...
...
@@ -5,7 +5,7 @@ require 'spec_helper'
describe
'[EE] Public Project Access'
do
include
AccessMatchers
set
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
describe
'GET /:project_path/insights'
do
before
do
...
...
ee/spec/features/user_unsubscribes_from_admin_notifications_spec.rb
View file @
83e84558
...
...
@@ -3,8 +3,8 @@
require
"spec_helper"
describe
"Admin unsubscribes from notification"
do
set
(
:user
)
{
create
(
:user
)
}
set
(
:urlsafe_email
)
{
Base64
.
urlsafe_encode64
(
user
.
email
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:urlsafe_email
)
{
Base64
.
urlsafe_encode64
(
user
.
email
)
}
before
do
sign_in
(
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