diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-10 15:12:31 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-15 15:39:46 +0300 |
commit | 9f0b46c05aef9d0352bfaa5e42e34143227de8ff (patch) | |
tree | 546d740aa3c1b21e234a6b5a1b260a31b44ec049 /spec/lib | |
parent | 6f0b5800a92e5a0a9b94a36e013baa6361d638d5 (diff) |
Move badges to separate modules and add base class
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/badge/build/status_spec.rb (renamed from spec/lib/gitlab/badge/build_spec.rb) | 2 | ||||
-rw-r--r-- | spec/lib/gitlab/badge/coverage/report_spec.rb (renamed from spec/lib/gitlab/badge/coverage_spec.rb) | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/spec/lib/gitlab/badge/build_spec.rb b/spec/lib/gitlab/badge/build/status_spec.rb index bb8144d5122..fa5bc068918 100644 --- a/spec/lib/gitlab/badge/build_spec.rb +++ b/spec/lib/gitlab/badge/build/status_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Gitlab::Badge::Build do +describe Gitlab::Badge::Build::Status do let(:project) { create(:project) } let(:sha) { project.commit.sha } let(:branch) { 'master' } diff --git a/spec/lib/gitlab/badge/coverage_spec.rb b/spec/lib/gitlab/badge/coverage/report_spec.rb index 343ca3c0f85..57b89dd8cda 100644 --- a/spec/lib/gitlab/badge/coverage_spec.rb +++ b/spec/lib/gitlab/badge/coverage/report_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Gitlab::Badge::Coverage do +describe Gitlab::Badge::Coverage::Report do let(:project) { create(:project) } let(:pipeline) do @@ -9,11 +9,13 @@ describe Gitlab::Badge::Coverage do ref: 'master') end - let(:badge) { described_class.new(project, 'master') } + let(:badge) do + described_class.new(project, 'master') + end context 'builds exist' do end - context 'build does not exist' do + context 'builds do not exist' do end end |