gitlab-org--gitlab-foss/spec/features
Alfredo Sumaran 4db62fef53 Merge branch '25286-customer-label-doesn-t-autocomplete-correctly' into 'master'
Correct autocomplete for values with special characters

## What does this MR do?

This adds a check for any special chars in any value passed to the `DefaultOptions.beforeInsert` callback function. If special chars are found and `skipSpecialCharTest` option is `false`, it will wrap the value in quotation marks.

This fixed autocompleting `~customer+` instead of `~"customer+"`.

## Are there points in the code the reviewer needs to double check?

## Why was this MR needed?

## Screenshots (if relevant)

![2016-12-03_10.37.11](/uploads/59159623638939933d23b447692775b8/2016-12-03_10.37.11.gif)

## Does this MR meet the acceptance criteria?

- [ ] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [ ] API support added
- Tests
  - [ ] Added for this feature/bug
  - [ ] All builds are passing
- [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [ ] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?


Closes #25286, #24961

See merge request !7910
2016-12-12 23:06:24 +00:00
..
admin Merge branch 'move-admin-hooks-spinach-test-to-rspec' into 'master' 2016-12-07 11:47:30 +00:00
atom
boards rewrite subscription javascript to accomodate new design 2016-11-30 17:15:25 -06:00
dashboard fix failing tests 2016-12-10 00:57:23 -06:00
groups Merge branch '23305-leave-project-and-leave-group-should-be-buttons' into 'master' 2016-12-09 19:27:09 +00:00
issuables
issues Merge branch '25286-customer-label-doesn-t-autocomplete-correctly' into 'master' 2016-12-12 23:06:24 +00:00
merge_requests add link_to_if helper on target_branch link on Merge Request show page for case of deleted target branch 2016-12-08 01:06:23 +03:00
milestones
profiles Edit /spec/features/profiles/preferences_spec.rb to match changes in 084d90ac 2016-11-29 13:39:57 -05:00
projects Merge branch '23305-leave-project-and-leave-group-should-be-buttons' into 'master' 2016-12-09 19:27:09 +00:00
protected_branches
security Update effected tests 2016-12-04 17:32:33 +01:00
snippets Ensure user is authenticated to create a new snippet 2016-11-28 16:57:49 +01:00
tags
todos
users
abuse_report_spec.rb Move abuse report spinach test to rspec 2016-11-23 19:30:07 +05:00
calendar_spec.rb
ci_lint_spec.rb
commits_spec.rb change the date label to match the date used 2016-12-03 14:39:35 -07:00
compare_spec.rb
container_registry_spec.rb
dashboard_issues_spec.rb
dashboard_milestones_spec.rb
environment_spec.rb
environments_spec.rb Fix broken test 2016-12-09 10:14:48 +00:00
expand_collapse_diffs_spec.rb
gitlab_flavored_markdown_spec.rb
global_search_spec.rb
groups_spec.rb
help_pages_spec.rb Stop replacing $your_email with the user's email 2016-12-09 17:32:05 +01:00
issues_spec.rb
login_spec.rb
markdown_spec.rb
milestone_spec.rb Add a starting date to milestones 2016-11-23 13:41:04 +02:00
notes_on_merge_requests_spec.rb Rephrase some system notes to be compatible with new system note style 2016-11-24 18:26:29 +08:00
participants_autocomplete_spec.rb
password_reset_spec.rb
profile_spec.rb
projects_spec.rb
protected_branches_spec.rb
runners_spec.rb
search_spec.rb
signup_spec.rb
snippets_spec.rb
task_lists_spec.rb
triggers_spec.rb
u2f_spec.rb fix: 24982- Remove'Signed in successfully' message 2016-12-07 20:30:28 +05:30
unsubscribe_links_spec.rb
users_spec.rb
variables_spec.rb Add spec for hiding variables and remove the need for ES6 Symbol 2016-11-24 02:24:52 -08:00