gitlab-org--gitlab-foss/spec/tasks/gitlab/git_rake_spec.rb

21 lines
542 B
Ruby
Raw Normal View History

2017-12-14 10:49:35 +00:00
require 'rake_helper'
describe 'gitlab:git rake tasks' do
let(:base_path) { 'tmp/tests/default_storage' }
let!(:project) { create(:project, :repository) }
2017-12-14 10:49:35 +00:00
before do
Rake.application.rake_require 'tasks/gitlab/git'
2018-01-04 10:02:43 +00:00
allow_any_instance_of(String).to receive(:color) { |string, _color| string }
2017-12-14 13:53:34 +00:00
stub_warn_user_is_not_gitlab
2017-12-14 10:49:35 +00:00
end
describe 'fsck' do
2018-01-04 10:02:43 +00:00
it 'outputs the integrity check for a repo' do
expect { run_rake_task('gitlab:git:fsck') }.to output(/Performed integrity check for/).to_stdout
2018-01-03 14:32:16 +00:00
end
2017-12-14 10:49:35 +00:00
end
end