Commit 649c9969 authored by Robert Speicher's avatar Robert Speicher

Fix Style/IndentationConsistency cop violations

parent 7b9b3c5a
...@@ -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")
......
...@@ -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 }
......
...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment