summaryrefslogtreecommitdiff
path: root/spec/services/milestones
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-10-27 01:48:26 -0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-10-27 20:07:11 -0300
commit0badbef83658ab2c23c7f7ea0aef81284c96c55b (patch)
treecde3c077bceee3a6d46695b5d229f8203b8662c3 /spec/services/milestones
parent20a7db4483904c7280093a0309a63dfd1b7ef72e (diff)
downloadgitlab-ce-0badbef83658ab2c23c7f7ea0aef81284c96c55b.tar.gz
Optimize Event queries by removing default order23106-events-default-scope-results-in-a-slow-query
Diffstat (limited to 'spec/services/milestones')
-rw-r--r--spec/services/milestones/close_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/milestones/close_service_spec.rb b/spec/services/milestones/close_service_spec.rb
index 5d400299be0..92b84308f73 100644
--- a/spec/services/milestones/close_service_spec.rb
+++ b/spec/services/milestones/close_service_spec.rb
@@ -18,7 +18,7 @@ describe Milestones::CloseService, services: true do
it { expect(milestone).to be_closed }
describe :event do
- let(:event) { Event.first }
+ let(:event) { Event.recent.first }
it { expect(event.milestone).to be_truthy }
it { expect(event.target).to eq(milestone) }