diff options
author | Gilbert Roulot <groulot@gitlab.com> | 2018-11-05 16:45:36 +0300 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-12-11 13:39:22 +0300 |
commit | e6226e8cb3d7e79500482ba2cef604133f667381 (patch) | |
tree | acf0f3d0b822f122da9125333f210ccce477c0d0 /spec/lib/gitlab/ci/parsers | |
parent | 85f430cb3cde4ff8c4d24c1b2a426670e38dd44f (diff) |
Generalise test compare service
It adds a base class for CompareTestReportsService
containing common code with CompareLicenseManagementReportsService
which is present in GitLab Enterprise Edition.
Diffstat (limited to 'spec/lib/gitlab/ci/parsers')
-rw-r--r-- | spec/lib/gitlab/ci/parsers/test_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/lib/gitlab/ci/parsers/test_spec.rb b/spec/lib/gitlab/ci/parsers/test_spec.rb deleted file mode 100644 index 0b85b432677..00000000000 --- a/spec/lib/gitlab/ci/parsers/test_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'spec_helper' - -describe Gitlab::Ci::Parsers::Test do - describe '.fabricate!' do - subject { described_class.fabricate!(file_type) } - - context 'when file_type exists' do - let(:file_type) { 'junit' } - - it 'fabricates the class' do - is_expected.to be_a(described_class::Junit) - end - end - - context 'when file_type does not exist' do - let(:file_type) { 'undefined' } - - it 'raises an error' do - expect { subject }.to raise_error(Gitlab::Ci::Parsers::Test::ParserNotFoundError) - end - end - end -end |