# frozen_string_literal: true

require 'spec_helper'

describe EE::Milestoneable do
  describe '#milestone_available?' do
    context 'no Epic' do
      let(:issue) { create(:issue) }

      it 'returns false' do
        expect(issue.milestone_available?).to be_falsy
      end
    end
  end

  describe '#supports_milestone?' do
    let(:group)   { create(:group) }
    let(:project) { create(:project, group: group) }

    context "for epics" do
      let(:epic) { build(:epic) }

      it 'returns false' do
        expect(epic.supports_milestone?).to be_falsy
      end
    end
  end
end
