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
26090691
Commit
26090691
authored
Jan 21, 2022
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace owner with first_owner in frontend spec fixtures
parent
c29e5b6d
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
15 additions
and
15 deletions
+15
-15
spec/frontend/fixtures/blob.rb
spec/frontend/fixtures/blob.rb
+1
-1
spec/frontend/fixtures/branches.rb
spec/frontend/fixtures/branches.rb
+1
-1
spec/frontend/fixtures/clusters.rb
spec/frontend/fixtures/clusters.rb
+1
-1
spec/frontend/fixtures/commit.rb
spec/frontend/fixtures/commit.rb
+1
-1
spec/frontend/fixtures/freeze_period.rb
spec/frontend/fixtures/freeze_period.rb
+1
-1
spec/frontend/fixtures/jobs.rb
spec/frontend/fixtures/jobs.rb
+1
-1
spec/frontend/fixtures/merge_requests.rb
spec/frontend/fixtures/merge_requests.rb
+1
-1
spec/frontend/fixtures/merge_requests_diffs.rb
spec/frontend/fixtures/merge_requests_diffs.rb
+1
-1
spec/frontend/fixtures/pipeline_schedules.rb
spec/frontend/fixtures/pipeline_schedules.rb
+1
-1
spec/frontend/fixtures/projects.rb
spec/frontend/fixtures/projects.rb
+1
-1
spec/frontend/fixtures/prometheus_service.rb
spec/frontend/fixtures/prometheus_service.rb
+1
-1
spec/frontend/fixtures/services.rb
spec/frontend/fixtures/services.rb
+1
-1
spec/frontend/fixtures/snippet.rb
spec/frontend/fixtures/snippet.rb
+1
-1
spec/frontend/fixtures/tags.rb
spec/frontend/fixtures/tags.rb
+1
-1
spec/frontend/fixtures/todos.rb
spec/frontend/fixtures/todos.rb
+1
-1
No files found.
spec/frontend/fixtures/blob.rb
View file @
26090691
...
...
@@ -7,7 +7,7 @@ RSpec.describe Projects::BlobController, '(JavaScript fixtures)', type: :control
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
namespace
,
path:
'branches-project'
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
render_views
...
...
spec/frontend/fixtures/branches.rb
View file @
26090691
...
...
@@ -7,7 +7,7 @@ RSpec.describe 'Branches (JavaScript fixtures)' do
let_it_be
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
namespace
,
path:
'branches-project'
)
}
let_it_be
(
:user
)
{
project
.
owner
}
let_it_be
(
:user
)
{
project
.
first_
owner
}
after
(
:all
)
do
remove_repository
(
project
)
...
...
spec/frontend/fixtures/clusters.rb
View file @
26090691
...
...
@@ -8,7 +8,7 @@ RSpec.describe Projects::ClustersController, '(JavaScript fixtures)', type: :con
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
namespace
)
}
let
(
:cluster
)
{
create
(
:cluster
,
:provided_by_gcp
,
projects:
[
project
])
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
render_views
...
...
spec/frontend/fixtures/commit.rb
View file @
26090691
...
...
@@ -6,7 +6,7 @@ RSpec.describe 'Commit (JavaScript fixtures)' do
include
JavaScriptFixturesHelpers
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
project
.
owner
}
let_it_be
(
:user
)
{
project
.
first_
owner
}
let_it_be
(
:commit
)
{
project
.
commit
(
"master"
)
}
before
do
...
...
spec/frontend/fixtures/freeze_period.rb
View file @
26090691
...
...
@@ -7,7 +7,7 @@ RSpec.describe 'Freeze Periods (JavaScript fixtures)' do
include
TimeZoneHelper
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
path:
'freeze-periods-project'
)
}
let_it_be
(
:user
)
{
project
.
owner
}
let_it_be
(
:user
)
{
project
.
first_
owner
}
after
(
:all
)
do
remove_repository
(
project
)
...
...
spec/frontend/fixtures/jobs.rb
View file @
26090691
...
...
@@ -7,7 +7,7 @@ RSpec.describe Projects::JobsController, '(JavaScript fixtures)', type: :control
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
namespace
,
path:
'builds-project'
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
let
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
project:
project
,
sha:
project
.
commit
.
id
)
}
let!
(
:build_with_artifacts
)
{
create
(
:ci_build
,
:success
,
:artifacts
,
:trace_artifact
,
pipeline:
pipeline
,
stage:
'test'
,
artifacts_expire_at:
Time
.
now
+
18
.
months
)
}
let!
(
:failed_build
)
{
create
(
:ci_build
,
:failed
,
pipeline:
pipeline
,
stage:
'build'
)
}
...
...
spec/frontend/fixtures/merge_requests.rb
View file @
26090691
...
...
@@ -7,7 +7,7 @@ RSpec.describe Projects::MergeRequestsController, '(JavaScript fixtures)', type:
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
namespace
,
path:
'merge-requests-project'
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
# rubocop: disable Layout/TrailingWhitespace
let
(
:description
)
do
...
...
spec/frontend/fixtures/merge_requests_diffs.rb
View file @
26090691
...
...
@@ -7,7 +7,7 @@ RSpec.describe Projects::MergeRequests::DiffsController, '(JavaScript fixtures)'
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
namespace
,
path:
'merge-requests-project'
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
,
description:
'- [ ] Task List Item'
)
}
let
(
:path
)
{
"files/ruby/popen.rb"
}
let
(
:position
)
do
...
...
spec/frontend/fixtures/pipeline_schedules.rb
View file @
26090691
...
...
@@ -7,7 +7,7 @@ RSpec.describe Projects::PipelineSchedulesController, '(JavaScript fixtures)', t
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
let!
(
:pipeline_schedule
)
{
create
(
:ci_pipeline_schedule
,
project:
project
,
owner:
user
)
}
let!
(
:pipeline_schedule_populated
)
{
create
(
:ci_pipeline_schedule
,
project:
project
,
owner:
user
)
}
let!
(
:pipeline_schedule_variable1
)
{
create
(
:ci_pipeline_schedule_variable
,
key:
'foo'
,
value:
'foovalue'
,
pipeline_schedule:
pipeline_schedule_populated
)
}
...
...
spec/frontend/fixtures/projects.rb
View file @
26090691
...
...
@@ -12,7 +12,7 @@ RSpec.describe 'Projects (JavaScript fixtures)', type: :controller do
let
(
:project
)
{
create
(
:project
,
namespace:
namespace
,
path:
'builds-project'
,
runners_token:
runners_token
,
avatar:
fixture_file_upload
(
'spec/fixtures/dk.png'
,
'image/png'
))
}
let
(
:project_with_repo
)
{
create
(
:project
,
:repository
,
description:
'Code and stuff'
,
avatar:
fixture_file_upload
(
'spec/fixtures/dk.png'
,
'image/png'
))
}
let
(
:project_variable_populated
)
{
create
(
:project
,
namespace:
namespace
,
path:
'builds-project2'
,
runners_token:
runners_token
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
render_views
...
...
spec/frontend/fixtures/prometheus_service.rb
View file @
26090691
...
...
@@ -8,7 +8,7 @@ RSpec.describe Projects::ServicesController, '(JavaScript fixtures)', type: :con
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project_empty_repo
,
namespace:
namespace
,
path:
'services-project'
)
}
let!
(
:integration
)
{
create
(
:prometheus_integration
,
project:
project
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
render_views
...
...
spec/frontend/fixtures/services.rb
View file @
26090691
...
...
@@ -8,7 +8,7 @@ RSpec.describe Projects::ServicesController, '(JavaScript fixtures)', type: :con
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project_empty_repo
,
namespace:
namespace
,
path:
'services-project'
)
}
let!
(
:service
)
{
create
(
:custom_issue_tracker_integration
,
project:
project
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
render_views
...
...
spec/frontend/fixtures/snippet.rb
View file @
26090691
...
...
@@ -7,7 +7,7 @@ RSpec.describe SnippetsController, '(JavaScript fixtures)', type: :controller do
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
namespace
,
path:
'branches-project'
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
let
(
:snippet
)
{
create
(
:personal_snippet
,
:public
,
title:
'snippet.md'
,
content:
'# snippet'
,
file_name:
'snippet.md'
,
author:
user
)
}
render_views
...
...
spec/frontend/fixtures/tags.rb
View file @
26090691
...
...
@@ -6,7 +6,7 @@ RSpec.describe 'Tags (JavaScript fixtures)' do
include
JavaScriptFixturesHelpers
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
path:
'tags-project'
)
}
let_it_be
(
:user
)
{
project
.
owner
}
let_it_be
(
:user
)
{
project
.
first_
owner
}
after
(
:all
)
do
remove_repository
(
project
)
...
...
spec/frontend/fixtures/todos.rb
View file @
26090691
...
...
@@ -7,7 +7,7 @@ RSpec.describe 'Todos (JavaScript fixtures)' do
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project_empty_repo
,
namespace:
namespace
,
path:
'todos-project'
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
first_
owner
}
let
(
:issue_1
)
{
create
(
:issue
,
title:
'issue_1'
,
project:
project
)
}
let!
(
:todo_1
)
{
create
(
:todo
,
user:
user
,
project:
project
,
target:
issue_1
,
created_at:
5
.
hours
.
ago
)
}
let
(
:issue_2
)
{
create
(
:issue
,
title:
'issue_2'
,
project:
project
)
}
...
...
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