summaryrefslogtreecommitdiff
path: root/spec/models/wiki_page_spec.rb
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2017-11-17 11:48:32 +0000
committerDouwe Maan <douwe@gitlab.com>2017-11-17 11:48:32 +0000
commitff26ea818cb92eabc8fbea1a8385cb5bc6b0a66f (patch)
treee252a9e7be6cc35d76e78745aa6ed437f1279ed1 /spec/models/wiki_page_spec.rb
parent88d29775bbbeaeff7deff8fb1be58905f2535a96 (diff)
downloadgitlab-ce-ff26ea818cb92eabc8fbea1a8385cb5bc6b0a66f.tar.gz
Resolve "Performance issues when loading large number of wiki pages"
Diffstat (limited to 'spec/models/wiki_page_spec.rb')
-rw-r--r--spec/models/wiki_page_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/wiki_page_spec.rb b/spec/models/wiki_page_spec.rb
index a7227b38850..ea75434e399 100644
--- a/spec/models/wiki_page_spec.rb
+++ b/spec/models/wiki_page_spec.rb
@@ -373,7 +373,7 @@ describe WikiPage do
end
it 'returns commit sha' do
- expect(@page.last_commit_sha).to eq @page.commit.sha
+ expect(@page.last_commit_sha).to eq @page.last_version.sha
end
it 'is changed after page updated' do