gitlab-org--gitlab-foss/spec/support
Timothy Andrew eb16e1e3c2 Improve the error message displayed when branch creation fails.
Note: This feature was developed independently on master while this was
in review. I've removed the conflicting bits and left the relevant
additions, mainly a test for `Gitlab::Git::Hook`. The original commit
message follows:

1. `gitlab-shell` outputs errors to `stderr`, but we weren't using this
   information, prior to this commit. Now we capture the `stderr`, and
   display it in the flash message when branch creation fails.

2. This can be used to display better errors for other git operation
   failures with small tweaks.

3. The return value of `Gitlab::Git::Hook#trigger` is changed from a
   simple `true`/`false` to a tuple of `[status, errors]`. All usages
   and tests have been updated to reflect this change.

4. This is only relevant to branch creation _from the Web UI_, since SSH
   and HTTP pushes access `gitlab-shell` either directly or through
   `gitlab-workhorse`.

5. A few minor changes need to be made on the `gitlab-shell` end. Right
   now, the `stderr` message it outputs is prefixed by "GitLab: ", which
   shows up in our flash message. This is better removed.
2016-07-05 11:05:16 +05:30
..
api Add pagination headers to already paginated API resources 2016-01-14 12:10:27 +01:00
gitlab_stubs Read job variables directly from gitlab CI config 2016-04-18 13:17:48 +02:00
import_export fixed and refactored a few things based on MR feedback 2016-05-06 13:40:02 +02:00
matchers Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
api_helpers.rb fix specs. Stage 2 2015-09-14 18:14:17 +03:00
capybara.rb Fix Capybara 2.6.2 deprecation warnings 2016-03-15 11:03:17 -07:00
capybara_helpers.rb Add sleep call before yield in allowing_for_delay 2015-06-22 12:13:49 +02:00
carrierwave.rb Move CarrierWave test env config to separate file 2016-03-30 13:57:01 +02:00
db_cleaner.rb Merge branch 'master' into rubocop-for-tests 2015-06-23 10:44:03 +02:00
email_format_shared_examples.rb Validate email addresses using Devise.email_regexp 2016-02-09 18:15:35 +01:00
email_helpers.rb Original implementation to allow users to subscribe to labels 2016-03-15 17:25:37 +01:00
factory_girl.rb Add spec/support/factory_girl 2015-06-30 17:47:53 -04:00
fake_u2f_device.rb Add feature specs covering U2F registration and authentication. 2016-06-06 12:50:31 +05:30
filter_spec_helper.rb Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
fixture_helpers.rb Add fixture_file helper. 2015-08-20 12:41:47 -07:00
import_spec_helper.rb Move ImportSpecHelper to spec/support/ 2016-06-08 17:21:08 +02:00
issue_tracker_service_shared_example.rb Ensure URL in all Service subclasses are valid 2016-04-25 15:28:24 -04:00
jira_service_helper.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
login_helpers.rb Fixed logout tests 2016-06-28 13:17:29 +01:00
markdown_feature.rb Hook up the updated `WikiLinkFilter` to the wiki controllers. 2016-06-09 10:15:01 +05:30
mentionable_shared_examples.rb Restrict access to references for confidential issues 2016-03-17 20:55:59 -03:00
project_hook_data_shared_example.rb Added System Hooks for push and tag_push 2016-04-19 11:00:30 +02:00
reference_parser_helpers.rb Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
relative_url.rb Fix emoji URLs in Markdown when relative_url_root is used 2015-09-06 09:46:10 -07:00
repo_helpers.rb Add support to cherry-pick any commit 2016-04-18 15:39:07 +08:00
select2_helper.rb Fix Style/Not cop violations 2015-06-22 14:52:41 -04:00
services_shared_context.rb Hide passwords to non-admin users in the services API 2015-10-12 15:24:00 +02:00
setup_builds_storage.rb Don't use "rm" for cleaning tmp/builds 2015-10-02 16:25:47 +02:00
stub_configuration.rb Rename reply_by_email to incoming_email to prepare for the future. 2015-09-21 10:35:37 +02:00
stub_gitlab_calls.rb Rename all `[ci_]commit` to `[ci_]pipeline` in specs and features 2016-06-03 16:22:26 +02:00
stub_gitlab_data.rb Merge CI factories and CI spec/support with GitLab 2015-09-09 13:37:50 +02:00
taskable_shared_examples.rb Change wording for task list summaries 2015-05-06 17:27:10 -04:00
test_env.rb Improve the error message displayed when branch creation fails. 2016-07-05 11:05:16 +05:30
wait_for_ajax.rb Fix Capybara 2.6.2 deprecation warnings 2016-03-15 11:03:17 -07:00
webmock.rb Add spec/support files for WebMock and test coverage 2015-06-10 01:31:27 -04:00
workhorse_helpers.rb Add newline 2016-02-17 15:22:33 +01:00