Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2015-08-03Merge branch 'master' of github.com:gitlabhq/gitlabhqDmitriy Zaporozhets
2015-08-02Merge branch 'master' of github.com:gitlabhq/gitlabhqStan Hu
2015-08-02Re-annotate modelsAtsushi Ishida
2015-08-02Fix "Network" and "Graphs" pages for branches with encoded slashesStan Hu
Closes #1359
2015-08-02Fix errors deleting and creating branches with encoded slashesStan Hu
Closes #1804
2015-07-31Merge branch 'api-useremails' into 'master' Robert Speicher
Add ability to manage user email addresses via the API. Addresses internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2181 See merge request !1066
2015-07-31Merge branch 'master' into api-useremailsDouwe Maan
2015-07-31Fix multi-line syntax highlightingStan Hu
HTML span elements only apply to a single line, and in the case of multi-line comments, the highlighting was dropped as a result. Ensure that each line has the proper styling to fix this. Closes #1577
2015-07-31Merge branch 'rs-mr-1050-followup' into 'master' Robert Speicher
Add spec to RelativeLinkFilter for Unicode filenames Adds specs for changes added in !1050 See merge request !1078
2015-07-31Merge branch 'rs-markdown-feature-pipelines' into 'master' Robert Speicher
Prepare Markdown feature spec for testing multiple pipelines This MR lays the groundwork for including or excluding certain HTML::Pipeline filters depending on what we're parsing. For example, excluding reference filters in the Issues and Merge Requests titles. See merge request !1053
2015-07-31Merge branch 'api-new-attributes' into 'master' Robert Speicher
Add project star and fork count, group avatar URL and user/group web URL attributes to API Addresses internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2521. See merge request !1058
2015-07-31Add spec to RelativeLinkFilter for Unicode filenamesRobert Speicher
2015-07-30Send notification to all participants when MR is merged.Douwe Maan
2015-07-30Fix docsDouwe Maan
2015-07-29Check that project was actually created rather than just validated in ↵Stan Hu
import:repos task Add gitlab-shell to error message to give user a clue that something may be wrong there. Ran into this in #2082. User was told that repositories were created when they were not due to hooks symlink being wrong.
2015-07-29Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵Jacob Vosmaer
backup-archive-permissions
2015-07-29Add ability to manage user email addresses via the API.Douwe Maan
2015-07-29Fix specsDouwe Maan
2015-07-29Fix setup/teardown for Markdown feature specRobert Speicher
Prior, CI seemed to be freezing after running these specs.
2015-07-29Update Markdown feature to allow for multiple pipelinesRobert Speicher
2015-07-29Add RelativeLinkFilter section to Markdown fixtureRobert Speicher
2015-07-29Move MarkdownFeature to its own support fileRobert Speicher
This file's about to get much bigger and this removes some of the extra noise.
2015-07-29Make links inside ignored elements uniqueRobert Speicher
This is to prevent false matches since the Autolink section uses about.gitlab.com as well.
2015-07-29Break up SanitizationFilter feature specsRobert Speicher
2015-07-29Use aggregate_failures where appropriateRobert Speicher
2015-07-29Minor Markdown feature spec reorganizationRobert Speicher
2015-07-29Simplify AutolinkFilter specsRobert Speicher
2015-07-28Change before(:all) -> let! to avoid leaking data across testsStan Hu
Closes https://github.com/gitlabhq/gitlabhq/issues/9495
2015-07-28Merge branch 'fix-api-mr-notes-ordering' into 'master'Douwe Maan
Return comments in created order in merge request API Closes #1832 See merge request !985
2015-07-28Merge branch 'fix-quotes-in-branch' into 'master'Douwe Maan
Fix commit data retrieval when branch name has single quotes Quotes in ref names need to be escaped properly in JavaScript. Closes #1724 See merge request !1046
2015-07-27Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵Jacob Vosmaer
backup-archive-permissions
2015-07-27Merge branch 'rs-dev-issue-306' into 'master' Valery Sizov
Create project services on Project creation Closes internal https://dev.gitlab.org/gitlab/gitlab-ee/issues/306#note_53354 See merge request !1045
2015-07-26Fix commit data retrieval when branch name has single quotesStan Hu
Closes #1724
2015-07-25Create project services on Project creationRobert Speicher
2015-07-25Only create :admin user in the one test where it's usedRobert Speicher
2015-07-25Merge branch 'fix-reload-with-full-diff-url' into 'master'Stan Hu
Fix the "Reload with full diff" URL button On the first load, the merge request tabs would be requested in JSON format to render the HTML. This would cause the "Reload with full diff" button to create a link to `diff.json`. Instead, generate the path in HTML mode. Closes #2041 See merge request !1019
2015-07-24Merge branch 'fix-error-500-when-no-head' into 'master'Valery Sizov
Fix error 500 when no HEAD is available Steps to reproduce: 1. Create a project with a README 2. In the actual remote, type: `git symbolic-ref HEAD refs/heads/nowhere` 3. Check that HEAD is gone via `git ls-remote .` 4. Go to the projects page and see the Error 500 Error: ``` NoMethodError - undefined method `sha' for nil:NilClass: app/helpers/projects_helper.rb:281:in `readme_cache_key' app/views/projects/_readme.html.haml:10:in `_app_views_projects__readme_html_haml___2036282917939462960_70154565285700' actionview (4.1.11) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.11) lib/action_view/template.rb:339:in `instrument' actionview (4.1.11) lib/action_view/template.rb:143:in `render' rack-mini-profiler (0.9.0) lib/mini_profiler/profiling_methods.rb:108:in `block in profile_method' actionview (4.1.11) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.11) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.11) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.11) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.11) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.11) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.11) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/projects/show.html.haml:47:in `_app_views_projects_show_html_haml__1458303859692972698_70154948164180' actionview (4.1.11) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `block in instrument' ``` Closes https://github.com/gitlabhq/gitlabhq/issues/9484, but there may be some other issue there. See merge request !1041
2015-07-24Fix Error 500 when browsing projects with no HEADStan Hu
Steps to reproduce: 1. Create a project with a README 2. In the actual remote, type: `git symbolic-ref HEAD refs/heads/nowhere` 3. Check that HEAD is gone via `git ls-remote .` 4. Go to the projects page and see the Error 500 Closes https://github.com/gitlabhq/gitlabhq/issues/9484
2015-07-24Use a separate backup test directory and nuke its contentsJacob Vosmaer
2015-07-24Create more backups during backup testsJacob Vosmaer
I hope this makes the backup tests more reliable.
2015-07-24Merge branch 'auth-icons-labels' into 'master' Valery Sizov
Allow custom label to be set for authentication providers. Addresses internal issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2341 Beside the above, I've: - Refactored `OauthHelper` to have clearer method names and behaviour - Moved some of `OauthHelper` behaviour to `Gitlab::OAuth::Provider` - Renamed `OauthHelper` to `AuthHelper` since LDAP, SAML, Kerberos aren't OAuth - Updated the icons for GitHub and GitLab In the examples below, "OurAuth" is a SAML provider with a custom label. ![Screen_Shot_2015-07-02_at_16.29.52](https://gitlab.com/gitlab-org/gitlab-ce/uploads/7d425bde69dc34e1667ebd5375d0266d/Screen_Shot_2015-07-02_at_16.29.52.png) ![Screen_Shot_2015-07-02_at_16.31.40](https://gitlab.com/gitlab-org/gitlab-ce/uploads/cbb273321ecdf4cab3d3ef0dc35553e7/Screen_Shot_2015-07-02_at_16.31.40.png) ![Screen_Shot_2015-07-02_at_16.32.39](https://gitlab.com/gitlab-org/gitlab-ce/uploads/d8dd6e1d0dc45a788e869cdcdc99e178/Screen_Shot_2015-07-02_at_16.32.39.png) ![Screen_Shot_2015-07-02_at_16.33.18](https://gitlab.com/gitlab-org/gitlab-ce/uploads/7dbfe8b0ae229c32a08d6c7442976d83/Screen_Shot_2015-07-02_at_16.33.18.png) See merge request !927
2015-07-24Merge branch 'rs-issue-2012' into 'master' Douwe Maan
Make username parameter for Users#show case-insensitive Closes #2012 See merge request !996
2015-07-24Add User.find_by_username!Robert Speicher
2015-07-23Fix the "Reload with full diff" URL buttonStan Hu
On the first load, the merge request tabs would be requested in JSON format to render the HTML. This would cause the "Reload with full diff" button to create a link to diff.json. Closes #2041
2015-07-23Allow custom label to be set for authentication providers.Douwe Maan
2015-07-22Merge branch 'rs-security-spec-speed' into 'master' Douwe Maan
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-22Move spec/features/admin/security_spec to spec/features/securityRobert Speicher
2015-07-22Consolidate group access specs into one fileRobert Speicher
2015-07-22Move custom matchers to their own files under spec/support/matchersRobert Speicher
2015-07-22Remove redundant Profile access test casesRobert Speicher
The user being created was no different than what `be_allowed_for` was doing behind the scenes so we were essentially testing all user-level accesses twice.