diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-05-16 23:58:20 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-05-16 23:59:51 +0300 |
commit | f494f2711a5a19b751c50832d8ae15c01ce3c3ee (patch) | |
tree | 17818ce6c92cb0af8be4b45e313c47c2e7fd1ae7 /spec/presenters/commit_status_presenter_spec.rb | |
parent | 86ef8221778d2aff630feecfa15ba70514983dbc (diff) |
Respect the inheritance chain between Ci::Build and CommitStatus
Also moves the assertions were they belong
Diffstat (limited to 'spec/presenters/commit_status_presenter_spec.rb')
-rw-r--r-- | spec/presenters/commit_status_presenter_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/presenters/commit_status_presenter_spec.rb b/spec/presenters/commit_status_presenter_spec.rb new file mode 100644 index 00000000000..f81ee44e371 --- /dev/null +++ b/spec/presenters/commit_status_presenter_spec.rb @@ -0,0 +1,15 @@ +require 'spec_helper' + +describe CommitStatusPresenter do + let(:project) { create(:project) } + let(:pipeline) { create(:ci_pipeline, project: project) } + let(:build) { create(:ci_build, pipeline: pipeline) } + + subject(:presenter) do + described_class.new(build) + end + + it 'inherits from Gitlab::View::Presenter::Delegated' do + expect(described_class.superclass).to eq(Gitlab::View::Presenter::Delegated) + end +end |