debian-mirror-gitlab/spec/presenters/deployments/deployment_presenter_spec.rb
2023-01-13 15:02:22 +05:30

15 lines
401 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Deployments::DeploymentPresenter do
let(:deployment) { create(:deployment) }
let(:presenter) { described_class.new(deployment) }
describe '#tags' do
it do
expect(deployment).to receive(:tags).and_return(['refs/tags/test'])
expect(presenter.tags).to eq([{ name: 'test', path: 'tags/test' }])
end
end
end