Small refactoring and rewording
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
b105b84e3a
commit
9e7e2c6b9d
|
@ -5,7 +5,7 @@
|
|||
- unless @repository.gitlab_ci_yml
|
||||
.form-group
|
||||
.col-sm-offset-2.col-sm-10
|
||||
%p Before you can use Builds (Continuous Integration) feature you need to setup it.
|
||||
%p Builds need to be configured before you can begin using Continuous Integration.
|
||||
= link_to 'Get started with Builds', help_page_path('ci/quick_start', 'README'), class: 'btn btn-info'
|
||||
%hr
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ require 'spec_helper'
|
|||
|
||||
describe Repository, models: true do
|
||||
include RepoHelpers
|
||||
TestBlob = Struct.new(:name)
|
||||
|
||||
let(:repository) { create(:project).repository }
|
||||
let(:user) { create(:user) }
|
||||
|
@ -131,7 +132,6 @@ describe Repository, models: true do
|
|||
describe "#license" do
|
||||
before do
|
||||
repository.send(:cache).expire(:license)
|
||||
TestBlob = Struct.new(:name)
|
||||
end
|
||||
|
||||
it 'test selection preference' do
|
||||
|
@ -149,10 +149,6 @@ describe Repository, models: true do
|
|||
end
|
||||
|
||||
describe "#gitlab_ci_yml" do
|
||||
before do
|
||||
TestBlob = Struct.new(:name)
|
||||
end
|
||||
|
||||
it 'returns valid file' do
|
||||
files = [TestBlob.new('file'), TestBlob.new('.gitlab-ci.yml'), TestBlob.new('copying')]
|
||||
expect(repository.tree).to receive(:blobs).and_return(files)
|
||||
|
|
Loading…
Reference in New Issue