summaryrefslogtreecommitdiff
path: root/spec/support/issuables_list_metadata_shared_examples.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/issuables_list_metadata_shared_examples.rb')
-rw-r--r--spec/support/issuables_list_metadata_shared_examples.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/issuables_list_metadata_shared_examples.rb b/spec/support/issuables_list_metadata_shared_examples.rb
index dac94dfc31e..c61f3e05cea 100644
--- a/spec/support/issuables_list_metadata_shared_examples.rb
+++ b/spec/support/issuables_list_metadata_shared_examples.rb
@@ -3,10 +3,10 @@ shared_examples 'issuables list meta-data' do |issuable_type, action = nil|
@issuable_ids = []
2.times do
- if issuable_type == :issue
- issuable = create(issuable_type, project: project)
+ issuable = if issuable_type == :issue
+ create(issuable_type, project: project)
else
- issuable = create(issuable_type, title: FFaker::Lorem.sentence, source_project: project, source_branch: FFaker::Name.name)
+ create(issuable_type, title: FFaker::Lorem.sentence, source_project: project, source_branch: FFaker::Name.name)
end
@issuable_ids << issuable.id