summaryrefslogtreecommitdiff
path: root/spec/support
Commit message (Collapse)AuthorAgeFilesLines
* Fix rubocop issues after merge of recent masterDmitriy Zaporozhets2015-06-231-5/+5
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'master' into rubocop-for-testsDmitriy Zaporozhets2015-06-236-109/+70
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: spec/features/issues_spec.rb spec/models/forked_project_link_spec.rb spec/models/hooks/service_hook_spec.rb spec/models/hooks/web_hook_spec.rb spec/models/project_services/hipchat_service_spec.rb spec/requests/api/project_members_spec.rb spec/requests/api/projects_spec.rb spec/requests/api/system_hooks_spec.rb spec/services/archive_repository_service_spec.rb spec/support/matchers.rb spec/tasks/gitlab/backup_rake_spec.rb
| * Add sleep call before yield in allowing_for_delayRobert Speicher2015-06-221-0/+2
| | | | | | | | | | This is to give pending AJAX requests time to complete before we navigate away, for example.
| * Remove junk from db_cleaner spec support fileRobert Speicher2015-06-221-29/+0
| |
| * Move CapybaraHelpers to its own support fileRobert Speicher2015-06-222-33/+32
| | | | | | | | In case we end up wanting to use it in Spinach as well.
| * Replace remaining references to `Note.create_cross_reference_note`Robert Speicher2015-06-221-4/+4
| |
| * Update spec/features/security specsRobert Speicher2015-06-221-42/+25
| |
| * Update mock and stub syntax for specsRobert Speicher2015-06-221-2/+4
| |
| * Fix include_module matcherRobert Speicher2015-06-221-1/+5
| |
* | Fix Style/NonNilCheck cop violationsrubocop-for-testsStan Hu2015-06-221-1/+1
| |
* | Fix Style/HashSyntax violationsRobert Speicher2015-06-221-1/+1
| |
* | Fix Style/Not cop violationsRobert Speicher2015-06-221-2/+2
|/
* Fix Error 500 when one user attempts to access a personal, internal snippetStan Hu2015-06-191-0/+5
| | | | Closes #1815
* Add `allowing_for_delay` helper method for feature specsRobert Speicher2015-06-141-0/+33
|
* Allow login_as helper to accept a User objectRobert Speicher2015-06-131-4/+20
|
* Memoize result of JSON.parse in json_responseRobert Speicher2015-06-101-1/+1
| | | | | This might see a minor speedup in test cases that call this method many times.
* Add spec/support files for WebMock and test coverageRobert Speicher2015-06-102-0/+12
|
* ensure_length_of -> validate_length_ofRobert Speicher2015-06-101-1/+1
|
* Merge branch 'ignore-references' into 'master'Dmitriy Zaporozhets2015-06-021-6/+15
|\ | | | | | | | | | | | | | | Don't notify users mentioned in code blocks or blockquotes. cc @rspeicher See merge request !753
| * Fix spec.ignore-referencesDouwe Maan2015-06-021-6/+15
| |
* | Rename ReferenceFilterSpecHelper to FilterSpecHelperRobert Speicher2015-06-021-34/+41
|/ | | | And make it more generalized for all filter specs.
* Use `to_reference` in reference filter specsRobert Speicher2015-05-261-3/+4
|
* Add invalidate_reference to ReferenceFilterSpecHelperRobert Speicher2015-05-261-0/+19
|
* Use to_reference in Mentionable shared examplesRobert Speicher2015-05-261-18/+14
|
* Change wording for task list summariesRobert Speicher2015-05-061-2/+2
|
* Update Taskable to use TaskListRobert Speicher2015-05-061-20/+10
|
* Don't delete gitlab-test-fork folder after every test runRobert Speicher2015-05-021-1/+2
|
* Merge branch 'fix-submodule-error-with-forked-project' into 'master'Dmitriy Zaporozhets2015-04-301-7/+46
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix "Revspec not found" errors when viewing diffs in a forked project with submodules ## What does this MR do? This MR fixes an error that occurs when viewing diffs in a forked project with submodules. ### Are there points in the code the reviewer needs to double check? Testing this code was tricky. The only way this problem shows up is if the origin project does NOT have the submodule update commit. The introduction of gitlab-test-fork serves that purpose: it contains a submodule update not present in gitlab-test. ### Why was this MR needed? A user would receive a 500 error when trying to view a merge request with a submodule update. #1413 has details on how to reproduce this issue. ### What are the relevant issue numbers / [Feature requests](http://feedback.gitlab.com/)? #1413 See merge request !512
| * Fix "Revspec not found" errors when viewing diffs in a forked project with ↵Stan Hu2015-04-271-7/+46
| | | | | | | | | | | | submodules Closes #1413
* | Merge branch 'rs-issue-2269' into 'master'Dmitriy Zaporozhets2015-04-281-11/+0
|\ \ | |/ |/| | | | | | | | | | | Remove duplicate settings for default_url_options Closes #2269 See merge request !1797
| * Specs don't need to set default_url_options anymoreRobert Speicher2015-04-271-11/+0
| |
* | Don't use capybara-screenshot in CI environmentsrs-capybara-screenshotRobert Speicher2015-04-251-3/+5
| |
* | Enable js_errors for Capybara in Spinach and RSpecRobert Speicher2015-04-251-1/+1
| |
* | Move RSpec setup for Capybara to its own support fileRobert Speicher2015-04-251-0/+19
| |
* | Add to_param to mentionable spec's mockRobert Speicher2015-04-251-1/+1
| |
* | Add `pipeline_result` to ReferenceFilterSpecHelperRobert Speicher2015-04-251-0/+14
|/
* Fix tests.commit-projectDouwe Maan2015-04-241-3/+3
|
* Fix small issues.Douwe Maan2015-04-241-2/+3
|
* Link cross-project cross-reference notes to correct project.Douwe Maan2015-04-241-3/+3
|
* Merge branch 'rs-mentionable-examples-refactor' into 'master'Dmitriy Zaporozhets2015-04-232-46/+73
|\ | | | | | | | | | | | | | | | | | | Update mentionable shared examples to be (a bit) more understandable These shared examples were super confusing, and honestly still kind of are, but they should be a bit better now. I encountered a bunch of headaches in these examples while refactoring ReferenceExtractor, so that's how I ended up changing it. See merge request !1780
| * Minor mentionable shared example changeRobert Speicher2015-04-161-2/+2
| |
| * Update mentionable shared examples to be (a bit) more understandableRobert Speicher2015-04-161-42/+69
| |
| * Correct usage of `subject` in specsRobert Speicher2015-04-162-2/+2
| |
* | Add more tests for cross-project referencesRobert Speicher2015-04-201-0/+10
| |
* | Reference filters :sparkles:Robert Speicher2015-04-201-0/+37
|/ | | | | Commit ranges, commits, external issues, issues, labels, merge requests, snippets, users.
* Merge pull request #9044 from tsigo/rs-git-template-envDmitriy Zaporozhets2015-03-291-1/+7
|\ | | | | Define GIT_TEMPLATE_DIR environment variable in TestEnv
| * Define GIT_TEMPLATE_DIR environment variable in TestEnvRobert Speicher2015-03-271-1/+7
| | | | | | | | | | | | | | | | | | See http://schacon.github.io/git/git-init.html#_template_directory Without this variable, any global git hooks a developer might have in ~/.git_template would be linked in the `.git/hooks` folder for every test repository that gets checked out by TestEnv, and would cause certain specs to fail due to pre-existing hook files.
* | Fix tests and unassigned filter for issues. Updated CHANGELOGDmitriy Zaporozhets2015-03-271-2/+2
|/
* This MR extends the commit calendar so it searches for commits made with ↵Stan Hu2015-03-091-0/+19
| | | | | | | every email address the user has associated with his account. This fixes one of the problems mentioned in gitlab-org/gitlab-ce#1162 and makes the behavior of the commit calendar as described in the profile. "All email addresses will be used to identify your commits."
* TestEnv improvementsRobert Speicher2015-02-161-14/+20
| | | | | | - Simplify cleaning the temporary testing path in TestEnv - Don't run gitlab:shell:install if it's already installed - Run git commands quietly