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:
Diffstat (limited to 'spec/models/snippet_spec.rb')
-rw-r--r--spec/models/snippet_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/snippet_spec.rb b/spec/models/snippet_spec.rb
index 19d3895177f..4e20a83f18e 100644
--- a/spec/models/snippet_spec.rb
+++ b/spec/models/snippet_spec.rb
@@ -431,7 +431,7 @@ RSpec.describe Snippet do
subject do
snippet.assign_attributes(title: title)
- snippet.check_for_spam?
+ snippet.check_for_spam?(user: snippet.author)
end
context 'when public and spammable attributes changed' do
@@ -455,7 +455,7 @@ RSpec.describe Snippet do
snippet.save!
snippet.visibility_level = Snippet::PUBLIC
- expect(snippet.check_for_spam?).to be_truthy
+ expect(snippet.check_for_spam?(user: snippet.author)).to be_truthy
end
end