summaryrefslogtreecommitdiff
path: root/spec/lib/banzai/reference_parser
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-24 18:42:12 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-01-25 12:25:42 -0500
commit80a6d2fda2483bf81c4cf9cdac9aa3c9e42b7982 (patch)
tree32d074259ee566098454cce7e44e69c8abca7fa8 /spec/lib/banzai/reference_parser
parent5f410001eb718e23835d933e66f4973bfd2b0a10 (diff)
downloadgitlab-ce-80a6d2fda2483bf81c4cf9cdac9aa3c9e42b7982.tar.gz
Use `:empty_project` where possible throughout spec/librs-empty_project-lib
Diffstat (limited to 'spec/lib/banzai/reference_parser')
-rw-r--r--spec/lib/banzai/reference_parser/user_parser_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/banzai/reference_parser/user_parser_spec.rb b/spec/lib/banzai/reference_parser/user_parser_spec.rb
index fafc2cec546..31ca9d27b0b 100644
--- a/spec/lib/banzai/reference_parser/user_parser_spec.rb
+++ b/spec/lib/banzai/reference_parser/user_parser_spec.rb
@@ -147,7 +147,7 @@ describe Banzai::ReferenceParser::UserParser, lib: true do
describe '#nodes_user_can_reference' do
context 'when the link has a data-author attribute' do
it 'returns the nodes when the user is a member of the project' do
- other_project = create(:project)
+ other_project = create(:empty_project)
other_project.team << [user, :developer]
link['data-project'] = other_project.id.to_s
@@ -164,7 +164,7 @@ describe Banzai::ReferenceParser::UserParser, lib: true do
end
it 'returns an empty Array when the user could not be found' do
- other_project = create(:project)
+ other_project = create(:empty_project)
link['data-project'] = other_project.id.to_s
link['data-author'] = ''
@@ -173,7 +173,7 @@ describe Banzai::ReferenceParser::UserParser, lib: true do
end
it 'returns an empty Array when the user is not a team member' do
- other_project = create(:project)
+ other_project = create(:empty_project)
link['data-project'] = other_project.id.to_s
link['data-author'] = user.id.to_s