3d61609cb4
This is a proof of concept for gitlab-org/gitlab-ce#30196. The actual login procedure is well-tested by `spec/features/login_spec.rb`, and we don't gain anything by also thoroughly testing it here, in our second-slowest feature spec. In fact, it only slows us down! So instead we use `sign_in` from the `Devise::Test::IntegrationHelpers` module, which just sets the current user at the Warden level. This drastically reduces the "setup" phase of every test in this file. A non-scientific test run saw this drop from 633 to 231 seconds. |
||
---|---|---|
.. | ||
filtered_search | ||
award_emoji_spec.rb | ||
award_spec.rb | ||
bulk_assignment_labels_spec.rb | ||
create_issue_for_discussions_in_merge_request_spec.rb | ||
create_issue_for_single_discussion_in_merge_request.rb | ||
form_spec.rb | ||
gfm_autocomplete_spec.rb | ||
group_label_sidebar_spec.rb | ||
issue_sidebar_spec.rb | ||
markdown_toolbar_spec.rb | ||
move_spec.rb | ||
new_branch_button_spec.rb | ||
note_polling_spec.rb | ||
spam_issues_spec.rb | ||
todo_spec.rb | ||
update_issues_spec.rb | ||
user_uses_slash_commands_spec.rb |