BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
985a0c39
Commit
985a0c39
authored
Mar 27, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Project `:repository` trait where necessary in view specs
parent
02ccf750
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
14 additions
and
17 deletions
+14
-17
_build.html.haml_spec.rb
spec/views/projects/builds/_build.html.haml_spec.rb
+1
-1
_generic_commit_status.html.haml_spec.rb
.../projects/builds/_generic_commit_status.html.haml_spec.rb
+1
-1
show.html.haml_spec.rb
spec/views/projects/builds/show.html.haml_spec.rb
+1
-1
_commit_box.html.haml_spec.rb
spec/views/projects/commit/_commit_box.html.haml_spec.rb
+1
-1
_related_branches.html.haml_spec.rb
...views/projects/issues/_related_branches.html.haml_spec.rb
+1
-1
_commits.html.haml_spec.rb
.../views/projects/merge_requests/_commits.html.haml_spec.rb
+2
-5
edit.html.haml_spec.rb
spec/views/projects/merge_requests/edit.html.haml_spec.rb
+2
-2
show.html.haml_spec.rb
spec/views/projects/merge_requests/show.html.haml_spec.rb
+2
-2
_stage.html.haml_spec.rb
spec/views/projects/pipelines/_stage.html.haml_spec.rb
+1
-1
show.html.haml_spec.rb
spec/views/projects/pipelines/show.html.haml_spec.rb
+1
-1
show.html.haml_spec.rb
spec/views/projects/tree/show.html.haml_spec.rb
+1
-1
No files found.
spec/views/projects/builds/_build.html.haml_spec.rb
View file @
985a0c39
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
'projects/ci/builds/_build'
do
include
Devise
::
Test
::
ControllerHelpers
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
id:
1337
,
project:
project
,
sha:
project
.
commit
.
id
)
}
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
,
stage:
'test'
,
stage_idx:
1
,
name:
'rspec 0:2'
,
status: :pending
)
}
...
...
spec/views/projects/builds/_generic_commit_status.html.haml_spec.rb
View file @
985a0c39
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
'projects/generic_commit_statuses/_generic_commit_status.html.haml'
do
include
Devise
::
Test
::
ControllerHelpers
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
id:
1337
,
project:
project
,
sha:
project
.
commit
.
id
)
}
let
(
:generic_commit_status
)
{
create
(
:generic_commit_status
,
pipeline:
pipeline
,
stage:
'external'
,
name:
'jenkins'
,
stage_idx:
3
)
}
...
...
spec/views/projects/builds/show.html.haml_spec.rb
View file @
985a0c39
require
'spec_helper'
describe
'projects/builds/show'
,
:view
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
let
(
:pipeline
)
do
...
...
spec/views/projects/commit/_commit_box.html.haml_spec.rb
View file @
985a0c39
...
...
@@ -4,7 +4,7 @@ describe 'projects/commit/_commit_box.html.haml' do
include
Devise
::
Test
::
ControllerHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
before
do
assign
(
:project
,
project
)
...
...
spec/views/projects/issues/_related_branches.html.haml_spec.rb
View file @
985a0c39
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
'projects/issues/_related_branches'
do
include
Devise
::
Test
::
ControllerHelpers
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:branch
)
{
project
.
repository
.
find_branch
(
'feature'
)
}
let!
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
sha:
branch
.
dereferenced_target
.
id
,
ref:
'feature'
)
}
...
...
spec/views/projects/merge_requests/_commits.html.haml_spec.rb
View file @
985a0c39
...
...
@@ -4,11 +4,8 @@ describe 'projects/merge_requests/show/_commits.html.haml' do
include
Devise
::
Test
::
ControllerHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:target_project
)
{
create
(
:project
)
}
let
(
:source_project
)
do
create
(
:project
,
forked_from_project:
target_project
)
end
let
(
:target_project
)
{
create
(
:project
,
:repository
)
}
let
(
:source_project
)
{
create
(
:project
,
:repository
,
forked_from_project:
target_project
)
}
let
(
:merge_request
)
do
create
(
:merge_request
,
:simple
,
...
...
spec/views/projects/merge_requests/edit.html.haml_spec.rb
View file @
985a0c39
...
...
@@ -4,8 +4,8 @@ describe 'projects/merge_requests/edit.html.haml' do
include
Devise
::
Test
::
ControllerHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:fork_project
)
{
create
(
:project
,
forked_from_project:
project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:fork_project
)
{
create
(
:project
,
:repository
,
forked_from_project:
project
)
}
let
(
:unlink_project
)
{
Projects
::
UnlinkForkService
.
new
(
fork_project
,
user
)
}
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
...
...
spec/views/projects/merge_requests/show.html.haml_spec.rb
View file @
985a0c39
...
...
@@ -4,8 +4,8 @@ describe 'projects/merge_requests/show.html.haml' do
include
Devise
::
Test
::
ControllerHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:fork_project
)
{
create
(
:project
,
forked_from_project:
project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:fork_project
)
{
create
(
:project
,
:repository
,
forked_from_project:
project
)
}
let
(
:unlink_project
)
{
Projects
::
UnlinkForkService
.
new
(
fork_project
,
user
)
}
let
(
:note
)
{
create
(
:note_on_merge_request
,
project:
project
,
noteable:
closed_merge_request
)
}
...
...
spec/views/projects/pipelines/_stage.html.haml_spec.rb
View file @
985a0c39
require
'spec_helper'
describe
'projects/pipelines/_stage'
,
:view
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let
(
:stage
)
{
build
(
:ci_stage
,
pipeline:
pipeline
)
}
...
...
spec/views/projects/pipelines/show.html.haml_spec.rb
View file @
985a0c39
...
...
@@ -4,7 +4,7 @@ describe 'projects/pipelines/show' do
include
Devise
::
Test
::
ControllerHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
project:
project
,
sha:
project
.
commit
.
id
,
user:
user
)
}
before
do
...
...
spec/views/projects/tree/show.html.haml_spec.rb
View file @
985a0c39
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
'projects/tree/show'
do
include
Devise
::
Test
::
ControllerHelpers
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:repository
)
{
project
.
repository
}
before
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