debian-mirror-gitlab/spec/presenters/deployments/deployment_presenter_spec.rb
2022-10-11 01:57:18 +05:30

15 lines
391 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(['test'])
expect(presenter.tags).to eq([{ name: 'test', path: 'tags/test' }])
end
end
end