summaryrefslogtreecommitdiff
path: root/spec/models/project_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Annotate modelsStan Hu2016-01-061-0/+7
|
* Add some specs for forked project visibility_level casesTomasz Maczukin2015-12-241-0/+24
|
* Merge branch 'add-open-issues-count-to-api' of ↵Dmitriy Zaporozhets2015-12-161-1/+5
|\ | | | | | | | | | | https://gitlab.com/stanhu/gitlab-ce Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Add open_issues_count to project APIStan Hu2015-12-111-1/+5
| | | | | | | | This is needed to support Huboard and a generally useful value.
* | Fix after column renameKamil Trzcinski2015-12-111-4/+4
| |
* | Remove ci_ prefix from all ci related thingsKamil Trzcinski2015-12-111-8/+8
| |
* | Add runners tokenKamil Trzcinski2015-12-111-1/+1
| |
* | Migrate CI::Project to ProjectKamil Trzcinski2015-12-111-8/+81
|/
* Tag model specsDouwe Maan2015-12-091-1/+1
|
* Update annotationsStan Hu2015-12-081-0/+1
|
* Fix broken spec related to MySQL and fractional seconds support.Rubén Dávila2015-12-031-1/+3
|
* Merge branch 'emoji_votes' into 'master' Dmitriy Zaporozhets2015-11-191-11/+0
|\ | | | | | | | | | | | | | | | | | | Award Emoji This it first iteration of award emoji feature. We have plan to extend emoji picker by the next release. For now, you can add award by clicking to the emoji picker or posting a regular comment with emoji like ":+1:" and any other. You can post not only emoji that listed in the emoji picker. See merge request !1825
| * award emojiValery Sizov2015-11-191-11/+0
| |
* | Added Project.visible_to_userYorick Peterse2015-11-181-0/+19
|/ | | | | This method can be used to filter projects to those visible to a given user.
* Expose CI enable option in project featuresKamil Trzcinski2015-11-131-3/+6
| | | | - Enable CI by default for all new projects
* Revamp trending projects queryYorick Peterse2015-10-061-0/+38
| | | | | | | | | | | | | | | | This changes the query to use a COUNT nested in an INNER JOIN, instead of a COUNT plus a GROUP BY. There are two reasons for this: 1. Using a COUNT in an INNER JOIN can be quite a bit faster. 2. The use of a GROUP BY means that method calls such as "any?" (and everything else that calls "count") operate on a Hash that counts the amount of notes on a per project basis, instead of just counting the total amount of projects. The query has been moved into Project.trending as its logic is simple enough. As a result of this testing the TrendingProjectsFinder class simply involves testing if the right methods are called, removing the need for setting up database records.
* Merge remote-tracking branch 'upstream/master'Guilherme Garnier2015-10-031-2/+1
|\
| * Prevent creating 2 Ci::Project entities when enable CIDmitriy Zaporozhets2015-10-021-2/+1
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Fix rubocop warnings in spec/modelsGuilherme Garnier2015-10-031-1/+1
|/
* Merge branch 'master' into flevour/gitlab-ce-project-path-insensitive-lookupDouwe Maan2015-10-011-0/+22
|\
| * Make ensure_gitlab_ci_project return ci_project or create a new oneci-commits-to-projectsKamil Trzcinski2015-09-291-1/+1
| |
| * Fix testsKamil Trzcinski2015-09-291-3/+5
| |
| * Enable CI for gitlab when .gitlab-ci.yml is pushedDmitriy Zaporozhets2015-09-231-0/+10
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Show CI status on all pages where commits list is renderedDmitriy Zaporozhets2015-09-231-0/+10
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Make Project#find_with_namespace case-insensitiveFrancesco Levorato2015-09-181-0/+1
|/
* Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-111-1/+0
| | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-111-0/+1
| | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'master' into drop-satellitesDmitriy Zaporozhets2015-08-041-7/+14
|\ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Re-annotate modelsAtsushi Ishida2015-08-031-1/+2
| |
| * Fix specsDouwe Maan2015-07-291-6/+12
| |
* | Remove satellitesDmitriy Zaporozhets2015-07-151-1/+0
|/
* Update mock and stub syntax for specsRobert Speicher2015-06-221-1/+1
|
* ensure_length_of -> validate_length_ofRobert Speicher2015-06-101-4/+4
|
* Add `to_reference` for models that support referencesRobert Speicher2015-05-261-3/+18
| | | | | Now there is a single source of information for which attribute a model uses to be referenced, and its special character.
* Improve/add specs for `Project#get_issue` and `#issue_exists?`rs-more-pipeline-filtersRobert Speicher2015-05-011-19/+42
|
* Expose avatar_url in projects APIsue4452015-03-011-0/+31
| | | | | | * Impl Project#avatar_url * Refactor ApplicationHelper: Use Project#avatar_url * Update changelog
* Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-1/+1
| | | | | | 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.
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-65/+65
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Merge pull request #8580 from j0k3r/asanaDmitriy Zaporozhets2015-02-081-0/+1
|\ | | | | Add Asana service
| * Add Asana serviceJeremy2015-02-021-0/+1
| | | | | | | | Also add ability to render "service.help" in markdown
* | Annotate modelsDmitriy Zaporozhets2015-02-021-1/+1
|/
* Merge branch 'master' into move_external_issue_tracker_away_from_yml_configMarin Jankovski2015-01-261-27/+42
|\ | | | | | | | | | | Conflicts: app/models/project.rb spec/models/project_spec.rb
| * Fix tests, merge conflicts, some minor issues and make the project avatar ↵Hannes Rosenögger2015-01-241-29/+29
| | | | | | | | feature mergable
| * adding avatar to project settings page added avatar removal show project ↵Steven Thonus2015-01-241-0/+15
| | | | | | | | avatar on dashboard, projects page, project page added rspec and feature tests added project avatar from repository new default project icon added added copying af avatar to forking of project added generated icon fixed avatar fork hound fix style fix test fix
* | Merge branch 'master' into move_external_issue_tracker_away_from_yml_configMarin Jankovski2015-01-231-0/+2
|\ \ | |/
| * Annotate modelsDmitriy Zaporozhets2015-01-221-0/+2
| |
* | Do a check which issue tracker is used inside the project.Marin Jankovski2015-01-231-3/+3
|/
* Refactor merge request refresh logic on pushDmitriy Zaporozhets2014-11-111-57/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add Pushover service integrationSullivan SENECHAL2014-10-031-0/+1
| | | | That introduce select field type for services options.
* Fix MR commenting system when new commits pushedDmitriy Zaporozhets2014-09-231-0/+56
| | | | | | | | | | | | This conmmit fixes wierd behaviour when you see wrong comments about new commits in merge requests. Short explanation of a bug: When you push new commits to project we updated `project.merge_requests` with comment about push. But `project.merge_requests` includes also merge requests from forks to origin project. So when you push to master branch it commented on all merge requests from forks to origin where source_branch was `master`