summaryrefslogtreecommitdiff
path: root/spec/presenters/ci
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-05-16 15:58:20 -0500
committerMayra Cabrera <mcabrera@gitlab.com>2018-05-16 15:59:51 -0500
commitf494f2711a5a19b751c50832d8ae15c01ce3c3ee (patch)
tree17818ce6c92cb0af8be4b45e313c47c2e7fd1ae7 /spec/presenters/ci
parent86ef8221778d2aff630feecfa15ba70514983dbc (diff)
downloadgitlab-ce-f494f2711a5a19b751c50832d8ae15c01ce3c3ee.tar.gz
Respect the inheritance chain between Ci::Build and CommitStatus46177-fix-present-on-generic-commit-status
Also moves the assertions were they belong
Diffstat (limited to 'spec/presenters/ci')
-rw-r--r--spec/presenters/ci/build_presenter_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/presenters/ci/build_presenter_spec.rb b/spec/presenters/ci/build_presenter_spec.rb
index 4bc005df2fc..efd175247b5 100644
--- a/spec/presenters/ci/build_presenter_spec.rb
+++ b/spec/presenters/ci/build_presenter_spec.rb
@@ -10,7 +10,7 @@ describe Ci::BuildPresenter do
end
it 'inherits from Gitlab::View::Presenter::Delegated' do
- expect(described_class.superclass).to eq(Gitlab::View::Presenter::Delegated)
+ expect(described_class.ancestors).to include(Gitlab::View::Presenter::Delegated)
end
describe '#initialize' do