summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2017-04-07 07:14:27 +0200
committerJacopo <beschi.jacopo@gmail.com>2017-04-07 07:21:34 +0200
commit370fd105bc2fd44de55306226502ba33d10ee14e (patch)
treeaed305406fe2611dd9c3ad00b7f8dd2bbf1c50ac /spec/models
parent46e4ed6bd0c8c256bce6d35b4bb992d77fd09971 (diff)
downloadgitlab-ce-370fd105bc2fd44de55306226502ba33d10ee14e.tar.gz
Removed `Milestone#is_empty?`
Removed `Milestone#is_empty?` because is not used anymore in the codebase
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/milestone_spec.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/models/milestone_spec.rb b/spec/models/milestone_spec.rb
index f3f48f951a8..e3e8e6d571c 100644
--- a/spec/models/milestone_spec.rb
+++ b/spec/models/milestone_spec.rb
@@ -109,18 +109,6 @@ describe Milestone, models: true do
it { expect(milestone.percent_complete(user)).to eq(75) }
end
- describe '#is_empty?' do
- before do
- milestone.issues << create(:issue, project: project)
- milestone.issues << create(:closed_issue, project: project)
- milestone.merge_requests << create(:merge_request)
- end
-
- it { expect(milestone.closed_items_count(user)).to eq(1) }
- it { expect(milestone.total_items_count(user)).to eq(3) }
- it { expect(milestone.is_empty?(user)).to be_falsey }
- end
-
describe '#can_be_closed?' do
it { expect(milestone.can_be_closed?).to be_truthy }
end