diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-01-03 16:22:00 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-01-03 16:22:00 -0200 |
commit | 08de4746dc03e7f090546063711153e99de344ae (patch) | |
tree | 7481639831bd25006190e15a428894340674c655 /spec/lib/gitlab | |
parent | 3f5403ab74b2f60c1a306a2f617d1cd323854c7a (diff) | |
download | gitlab-ce-08de4746dc03e7f090546063711153e99de344ae.tar.gz |
Refactoring Gitlab::BareRepositoryImport::Repository
Diffstat (limited to 'spec/lib/gitlab')
-rw-r--r-- | spec/lib/gitlab/bare_repository_import/repository_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/lib/gitlab/bare_repository_import/repository_spec.rb b/spec/lib/gitlab/bare_repository_import/repository_spec.rb index 39f2cfe6175..9f42cf1dfca 100644 --- a/spec/lib/gitlab/bare_repository_import/repository_spec.rb +++ b/spec/lib/gitlab/bare_repository_import/repository_spec.rb @@ -24,17 +24,17 @@ describe ::Gitlab::BareRepositoryImport::Repository do it 'returns false if it is a wiki' do subject = described_class.new('/full/path/', '/full/path/to/a/b/my.wiki.git') - expect(subject.processable?).to eq(false) + expect(subject).not_to be_processable end it 'returns true if group path is missing' do subject = described_class.new('/full/path/', '/full/path/repo.git') - expect(subject.processable?).to eq(true) + expect(subject).to be_processable end it 'returns true when group path and project name are present' do - expect(subject.processable?).to eq(true) + expect(subject).to be_processable end end @@ -92,18 +92,18 @@ describe ::Gitlab::BareRepositoryImport::Repository do it 'returns false if it is a wiki' do subject = described_class.new(root_path, wiki_path) - expect(subject.processable?).to eq(false) + expect(subject).not_to be_processable end it 'returns false when group and project name are missing' do repository = Rugged::Repository.new(repo_path) repository.config.delete('gitlab.fullpath') - expect(subject.processable?).to eq(false) + expect(subject).not_to be_processable end it 'returns true when group path and project name are present' do - expect(subject.processable?).to eq(true) + expect(subject).to be_processable end end |