debian-mirror-gitlab/spec/presenters/commit_status_presenter_spec.rb

16 lines
424 B
Ruby
Raw Normal View History

2018-10-15 14:42:47 +05:30
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