gitlab-org--gitlab-foss/spec/support
Douwe Maan 546731244a Merge branch 'rs-security-spec-speed' into 'master'
Speed up security feature specs

Before: `rspec spec/features/security/  0.12s user 0.04s system 0% cpu 3:38.00 total`

After: `rspec spec/features/security/  0.12s user 0.04s system 0% cpu 1:40.58 total`

The majority of the speed improvements is from two things:

1. Instead of using our standard `login_as` helper in the matchers, we take advantage
   of the `Warden::Test::Helpers` version of the method which bypasses the login form
   and logs the user in directly. We were essentially testing that filling out the login
   form works hundreds of times.
2. There were many tests that verified if a user of a certain access level
   (master, owner, reporter, guest) had access to a resource. Unfortunately we were
   creating every type of user for each test even though a test was only verifying one of
   them at a time. Now the tests only create the one user role they're testing.

See merge request !1023
2015-07-22 09:22:43 +00:00
..
matchers Move custom matchers to their own files under spec/support/matchers 2015-07-22 00:01:17 -04:00
api_helpers.rb Memoize result of JSON.parse in json_response 2015-06-10 01:31:27 -04:00
capybara.rb Move CapybaraHelpers to its own support file 2015-06-22 12:13:47 +02:00
capybara_helpers.rb Add sleep call before yield in allowing_for_delay 2015-06-22 12:13:49 +02:00
db_cleaner.rb Merge branch 'master' into rubocop-for-tests 2015-06-23 10:44:03 +02:00
factory_girl.rb Add spec/support/factory_girl 2015-06-30 17:47:53 -04:00
filter_spec_helper.rb Rename ReferenceFilterSpecHelper to FilterSpecHelper 2015-06-02 13:27:53 -04:00
login_helpers.rb Fix Error 500 when one user attempts to access a personal, internal snippet 2015-06-19 21:23:46 -07:00
mentionable_shared_examples.rb Rename `notice_added_references` to `create_new_cross_references!` 2015-07-13 21:31:16 -04:00
repo_helpers.rb This MR extends the commit calendar so it searches for commits made with every email address the user has associated with his account. 2015-03-09 21:43:54 -07:00
select2_helper.rb Fix Style/Not cop violations 2015-06-22 14:52:41 -04:00
stub_configuration.rb Use stub_application_setting in a few more specs 2015-07-06 22:39:56 -04:00
taskable_shared_examples.rb Change wording for task list summaries 2015-05-06 17:27:10 -04:00
test_env.rb Fix 404 error in files view after deleting the last file in a repository 2015-07-21 14:12:43 -07:00
webmock.rb Add spec/support files for WebMock and test coverage 2015-06-10 01:31:27 -04:00