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
Boxiang Sun
gitlab-ce
Commits
649c9969
Commit
649c9969
authored
Jun 22, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/IndentationConsistency cop violations
parent
7b9b3c5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
spec/lib/gitlab/satellite/action_spec.rb
spec/lib/gitlab/satellite/action_spec.rb
+1
-3
spec/services/projects/update_service_spec.rb
spec/services/projects/update_service_spec.rb
+2
-2
spec/services/projects/upload_service_spec.rb
spec/services/projects/upload_service_spec.rb
+2
-2
No files found.
spec/lib/gitlab/satellite/action_spec.rb
View file @
649c9969
...
@@ -18,14 +18,12 @@ describe 'Gitlab::Satellite::Action' do
...
@@ -18,14 +18,12 @@ describe 'Gitlab::Satellite::Action' do
expect
(
starting_remote_count
).
to
be
>=
1
expect
(
starting_remote_count
).
to
be
>=
1
#kind of hookey way to add a second remote
#kind of hookey way to add a second remote
origin_uri
=
repo
.
git
.
remote
({
v:
true
}).
split
(
" "
)[
1
]
origin_uri
=
repo
.
git
.
remote
({
v:
true
}).
split
(
" "
)[
1
]
begin
repo
.
git
.
remote
({
raise:
true
},
'add'
,
'another-remote'
,
origin_uri
)
repo
.
git
.
remote
({
raise:
true
},
'add'
,
'another-remote'
,
origin_uri
)
repo
.
git
.
branch
({
raise:
true
},
'a-new-branch'
)
repo
.
git
.
branch
({
raise:
true
},
'a-new-branch'
)
expect
(
repo
.
heads
.
size
).
to
be
>
(
starting_remote_count
)
expect
(
repo
.
heads
.
size
).
to
be
>
(
starting_remote_count
)
expect
(
repo
.
git
.
remote
().
split
(
" "
).
size
).
to
be
>
(
starting_remote_count
)
expect
(
repo
.
git
.
remote
().
split
(
" "
).
size
).
to
be
>
(
starting_remote_count
)
rescue
end
repo
.
git
.
config
({},
"user.name"
,
"
#{
user
.
name
}
-- foo"
)
repo
.
git
.
config
({},
"user.name"
,
"
#{
user
.
name
}
-- foo"
)
repo
.
git
.
config
({},
"user.email"
,
"
#{
user
.
email
}
-- foo"
)
repo
.
git
.
config
({},
"user.email"
,
"
#{
user
.
email
}
-- foo"
)
...
...
spec/services/projects/update_service_spec.rb
View file @
649c9969
...
@@ -13,8 +13,8 @@ describe Projects::UpdateService do
...
@@ -13,8 +13,8 @@ describe Projects::UpdateService do
before
do
before
do
@created_private
=
@project
.
private?
@created_private
=
@project
.
private?
@opts
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
@opts
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
update_project
(
@project
,
@user
,
@opts
)
update_project
(
@project
,
@user
,
@opts
)
end
end
it
{
expect
(
@created_private
).
to
be_truthy
}
it
{
expect
(
@created_private
).
to
be_truthy
}
...
...
spec/services/projects/upload_service_spec.rb
View file @
649c9969
...
@@ -22,7 +22,7 @@ describe Projects::UploadService do
...
@@ -22,7 +22,7 @@ describe Projects::UploadService do
it
{
expect
(
@link_to_file
[
'url'
]).
to
match
(
'banana_sample.gif'
)
}
it
{
expect
(
@link_to_file
[
'url'
]).
to
match
(
'banana_sample.gif'
)
}
end
end
context
'for valid png file'
do
context
'for valid png file'
do
before
do
before
do
png
=
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/dk.png'
,
png
=
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/dk.png'
,
'image/png'
)
'image/png'
)
...
@@ -38,7 +38,7 @@ describe Projects::UploadService do
...
@@ -38,7 +38,7 @@ describe Projects::UploadService do
it
{
expect
(
@link_to_file
[
'url'
]).
to
match
(
'dk.png'
)
}
it
{
expect
(
@link_to_file
[
'url'
]).
to
match
(
'dk.png'
)
}
end
end
context
'for valid jpg file'
do
context
'for valid jpg file'
do
before
do
before
do
jpg
=
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/rails_sample.jpg'
,
'image/jpg'
)
jpg
=
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/rails_sample.jpg'
,
'image/jpg'
)
@link_to_file
=
upload_file
(
@project
.
repository
,
jpg
)
@link_to_file
=
upload_file
(
@project
.
repository
,
jpg
)
...
...
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