gitlab-org--gitlab-foss/spec/presenters/commit_status_presenter_spec.rb
Mayra Cabrera f494f2711a Respect the inheritance chain between Ci::Build and CommitStatus
Also moves the assertions were they belong
2018-05-16 15:59:51 -05:00

15 lines
424 B
Ruby

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