Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-21 15:09:30 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-21 15:09:30 +0300
commitaf28a89d5e6a62811b462ca7d3adcccf8c03e213 (patch)
treebe14cd6b4adc411fe7f179c236ec0c2d2e472025 /spec/factories/wiki_pages.rb
parent5bd4297fd759a14ad9ab9232cb985d28bf44ac49 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/wiki_pages.rb')
-rw-r--r--spec/factories/wiki_pages.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/factories/wiki_pages.rb b/spec/factories/wiki_pages.rb
index e7fcc19bbfe..cc866d336a4 100644
--- a/spec/factories/wiki_pages.rb
+++ b/spec/factories/wiki_pages.rb
@@ -31,7 +31,8 @@ FactoryBot.define do
end
to_create do |page, evaluator|
- page.create(message: evaluator.message)
+ # WikiPages is ActiveModel which doesn't support `create!`.
+ page.create(message: evaluator.message) # rubocop:disable Rails/SaveBang
end
end