Skip to content
Snippets Groups Projects
Verified Commit 9e7e2c6b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Small refactoring and rewording

parent b105b84e
No related branches found
No related tags found
No related merge requests found
Loading
@@ -5,7 +5,7 @@
Loading
@@ -5,7 +5,7 @@
- unless @repository.gitlab_ci_yml - unless @repository.gitlab_ci_yml
.form-group .form-group
.col-sm-offset-2.col-sm-10 .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' = link_to 'Get started with Builds', help_page_path('ci/quick_start', 'README'), class: 'btn btn-info'
%hr %hr
   
Loading
Loading
Loading
@@ -2,6 +2,7 @@ require 'spec_helper'
Loading
@@ -2,6 +2,7 @@ require 'spec_helper'
   
describe Repository, models: true do describe Repository, models: true do
include RepoHelpers include RepoHelpers
TestBlob = Struct.new(:name)
   
let(:repository) { create(:project).repository } let(:repository) { create(:project).repository }
let(:user) { create(:user) } let(:user) { create(:user) }
Loading
@@ -131,7 +132,6 @@ describe Repository, models: true do
Loading
@@ -131,7 +132,6 @@ describe Repository, models: true do
describe "#license" do describe "#license" do
before do before do
repository.send(:cache).expire(:license) repository.send(:cache).expire(:license)
TestBlob = Struct.new(:name)
end end
   
it 'test selection preference' do it 'test selection preference' do
Loading
@@ -149,10 +149,6 @@ describe Repository, models: true do
Loading
@@ -149,10 +149,6 @@ describe Repository, models: true do
end end
   
describe "#gitlab_ci_yml" do describe "#gitlab_ci_yml" do
before do
TestBlob = Struct.new(:name)
end
it 'returns valid file' do it 'returns valid file' do
files = [TestBlob.new('file'), TestBlob.new('.gitlab-ci.yml'), TestBlob.new('copying')] files = [TestBlob.new('file'), TestBlob.new('.gitlab-ci.yml'), TestBlob.new('copying')]
expect(repository.tree).to receive(:blobs).and_return(files) expect(repository.tree).to receive(:blobs).and_return(files)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment