debian-mirror-gitlab/spec/presenters/deployments/deployment_presenter_spec.rb

16 lines
401 B
Ruby
Raw Normal View History

2022-10-11 01:57:18 +05:30
# 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
2023-01-13 00:05:48 +05:30
expect(deployment).to receive(:tags).and_return(['refs/tags/test'])
2022-10-11 01:57:18 +05:30
expect(presenter.tags).to eq([{ name: 'test', path: 'tags/test' }])
end
end
end