summaryrefslogtreecommitdiff
path: root/spec/controllers/blob_controller_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable RSpec/FilePath copenable-spec-file-name-copSean McGivern2017-04-261-67/+0
| | | | | | - Ignore JS fixtures - Ignore qa directory - Rewrite concern specs to put concern name first
* Use Namespace#full_path instead of #path where appropriatedm-more-namespace-full-pathDouwe Maan2017-02-231-4/+4
|
* Use `empty_project` where possible in controller specsrs-empty_project-controllersRobert Speicher2017-01-251-1/+1
|
* Fix Error 500 when viewing a blob with binary characters after the 1024-byte ↵Stan Hu2016-06-121-0/+5
| | | | | | | | | | | | | | | | mark Here was the problem: 1. When determining whether a given blob is viewable text, gitlab_git reads the first 1024 bytes and checks with Linguist whether it is a text or binary file. 2. If the blob is text, GitLab will attempt to display it. 3. However, if the text has binary characters after the first 1024 bytes, then GitLab will attempt to load the entire contents, but the encoding will be ASCII-8BIT since there are binary characters. 4. The Error 500 results when GitLab attempts to display a mix UTF-8 and ASCII-8BIT. To fix this, we load as much data as we are willing to display so that the detection will work properly. Requires an update to gitlab_git: gitlab-org/gitlab_git!86 Closes #13826
* Fix Style/AlignHash cop violationsStan Hu2015-06-221-4/+8
|
* Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-2/+6
| | | | | | Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
* Even more hound fixesJeroen van Baarsen2015-02-121-1/+1
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Fixed hound warningsJeroen van Baarsen2015-02-121-1/+4
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-6/+6
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Fix testsDmitriy Zaporozhets2014-08-071-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add tests for redirects.Marin Jankovski2014-07-081-0/+14
|
* Make changes to testsDmitriy Zaporozhets2014-01-221-1/+1
| | | | | | | * project_with_code -> project * project -> ermpty_project Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Drop support of root namespace in routingHiroyuki Sato2013-09-131-1/+1
|
* Fix routing/controller specs for refactored controllersDmitriy Zaporozhets2013-06-231-1/+1
|
* Fixed API file raw functionality, Fixed tree controller tests. Added ↵Dmitriy Zaporozhets2013-04-031-0/+37
BlobController specs