summaryrefslogtreecommitdiff
path: root/spec/models/commit_range_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use JavaScript tooltips for mentions (!5301)winniehell2016-09-011-10/+0
|
* Fix note validation spec failuresStan Hu2016-06-011-2/+3
|
* Refactor ParticipableYorick Peterse2016-06-011-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several changes to this module: 1. The use of an explicit stack in Participable#participants 2. Proc behaviour has been changed 3. Batch permissions checking == Explicit Stack Participable#participants no longer uses recursion to process "self" and all child objects, instead it uses an Array and processes objects in breadth-first order. This allows us to for example create a single Gitlab::ReferenceExtractor instance and pass this to any Procs. Re-using a ReferenceExtractor removes the need for running potentially many SQL queries every time a Proc is called on a new object. == Proc Behaviour Changed Previously a Proc in Participable was expected to return an Array of User instances. This has been changed and instead it's now expected that a Proc modifies the Gitlab::ReferenceExtractor passed to it. The return value of the Proc is ignored. == Permissions Checking The method Participable#participants uses Ability.users_that_can_read_project to check if the returned users have access to the project of "self" _without_ running multiple SQL queries for every user.
* Don't modify arguments in CommitRange#initializeYorick Peterse2016-05-261-0/+10
| | | | | This method used to call strip! on input strings which will mess with the strings if they're re-used or frozen.
* Tag model specsDouwe Maan2015-12-091-1/+1
|
* Render commit reference using short sha, but include full sha in comment.Douwe Maan2015-12-011-3/+19
|
* Render commit range reference with short shas, link to full shas.Douwe Maan2015-11-301-66/+45
|
* Merge branch 'master' into rubocop-for-testsDmitriy Zaporozhets2015-06-231-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Fix `raise_error` without an argument deprecation warningsRobert Speicher2015-06-221-1/+1
| |
* | Fix Style/SpaceInsideHashLiteralBraces cop violationsRobert Speicher2015-06-221-2/+2
|/ | | | These fixes were performed automatically by Rubocop's `-a` flag.
* Update CommitRange#to_reference to use full SHAsRobert Speicher2015-05-261-13/+13
| | | | We only want them shortened by the filter, which calls to_s
* Add `to_reference` for models that support referencesRobert Speicher2015-05-261-0/+23
| | | | | Now there is a single source of information for which attribute a model uses to be referenced, and its special character.
* Rename `CommitRange#inclusive?` to `#exclude_start?`Robert Speicher2015-04-251-3/+3
|
* Remove CommitRange#to_aRobert Speicher2015-04-251-27/+0
|
* Include caret in CommitRange#reference_titleRobert Speicher2015-04-251-1/+5
|
* Remove param from CommitRange#to_sRobert Speicher2015-04-251-16/+4
|
* CommitRange improvementsRobert Speicher2015-04-251-2/+2
|
* Add CommitRange classRobert Speicher2015-04-251-0/+155