summaryrefslogtreecommitdiff
path: root/spec/models/note_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix specs and rubocop warningsfix/private-referencesRémy Coutable2016-01-141-2/+2
|
* Add spec for Note#cross_reference_not_visible_for?Rémy Coutable2016-01-131-0/+24
|
* Add regression test.fix-banzai-cacheDouwe Maan2016-01-061-1/+14
|
* revert back vote buttons to issue and MR pagesValery Sizov2015-12-251-3/+8
|
* fix specemoji-picker-fixValery Sizov2015-12-241-2/+2
|
* emoji aliases problemValery Sizov2015-12-111-0/+9
|
* Don't allow to edit award emoji commentsemoji_edit_disallowValery Sizov2015-12-101-0/+17
|
* Tag model specsDouwe Maan2015-12-091-1/+1
|
* Update annotationsStan Hu2015-12-081-0/+1
|
* fox testsemoji_votesValery Sizov2015-11-191-3/+2
|
* added specsValery Sizov2015-11-191-0/+13
|
* added spinach testsValery Sizov2015-11-191-75/+0
|
* Fix mentionable specsDouwe Maan2015-10-121-3/+2
|
* Re-annotate modelsStan Hu2015-09-061-0/+1
|
* Case-insensetive search for commentscomment-case-insensetive-searchDmitriy Zaporozhets2015-08-191-0/+6
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Revert "Update noteable after a new note is added"revert_touchValery Sizov2015-08-051-1/+1
| | | | This reverts commit fbdaf0e2a517660c0e4e3960f20b2d3568c33e78.
* Rename abilities to correspond contoller/model action namesrename-abilitiesDmitriy Zaporozhets2015-06-261-3/+3
| | | | | | | | | | | | | | | | | write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Update noteable after a new note is addedJeroen van Baarsen2015-06-051-1/+1
| | | | | | | | | | | | | | **What does this do?** It makes sure that whenever a new note is added to an noteable item, the updated_at of that item is also updated. **Why is this needed?** At this moment when you post a comment on an issue or add a label to an issue, the updated_at is not changed. Because of this the filtering for least recently updated is not really useful (since it only takes in account the original text from the noteable). Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Simplify Note model specsRobert Speicher2015-05-111-213/+34
|
* Add a SystemNoteService classRobert Speicher2015-05-111-256/+0
| | | | | There's a lot of code in the Note model that only deals with creating system notes, so we're going to split that into its own class.
* Note's voting specs don't need to persist to the databaseRobert Speicher2015-05-101-18/+16
|
* Link cross-project cross-reference notes to correct project.Douwe Maan2015-04-241-11/+11
|
* Use project.commit convenience method.Douwe Maan2015-04-241-3/+3
|
* Correct usage of `subject` in specsRobert Speicher2015-04-161-1/+2
|
* Fix cross references when usernames, milestones, or project names contain ↵Stan Hu2015-03-191-11/+142
| | | | | | underscores. Remove emphasis from system notes to avoid Markdown conflicts in names.
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-87/+204
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Create a failing test where commit in mr creates a mr mention note.Marin Jankovski2014-11-051-0/+6
|
* Fix testsDmitriy Zaporozhets2014-10-101-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Use short_id instead of [0..N] for short version of commit shaDmitriy Zaporozhets2014-10-101-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Prevent PG::Error exception when check commit reference on commitDmitriy Zaporozhets2014-10-061-0/+20
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Make Mentionables work for cross-project refsVinnie Okada2014-10-031-2/+2
| | | | | Add a note to merge requests and issues when they're mentioned by a merge request, issue, or commit in another project.
* Replace project_access attribute with access_level in specs and APIDmitriy Zaporozhets2014-09-151-7/+7
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Huge replace of old users_project and users_group referencesDmitriy Zaporozhets2014-09-141-7/+7
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove mass assgnment specsDmitriy Zaporozhets2014-06-261-2/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Re-annotate modelsDmitriy Zaporozhets2014-04-091-3/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix tests that dont respect project-fork relationDmitriy Zaporozhets2014-04-031-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix bug with cross-reference note on commitDmitriy Zaporozhets2014-02-071-0/+10
| | | | | | | It should not set noteable_id if noteable_type is Commit We have Note#commit_id for this Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* 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>
* Add note for assignee changesDrew Blessing2014-01-061-0/+31
| | | | Change to username per @PixnBits suggestion
* added thumbsup and thumsdown emoji voting with rspec testsvagrant2013-11-281-0/+10
|
* Annotate!Dmitriy Zaporozhets2013-10-011-0/+1
|
* Link issues from comments and automatically close themash wilson2013-08-251-3/+105
| | | | | | | | | | Any mention of Issues, MergeRequests, or Commits via GitLab-flavored markdown references in descriptions, titles, or attached Notes creates a back-reference Note that links to the original referencer. Furthermore, pushing commits with commit messages that match a (configurable) regexp to a project's default branch will close any issues mentioned by GFM in the matched closing phrase. If accepting a merge request would close any Issues in this way, a banner is appended to the merge request's main panel to indicate this.
* ReannotateDmitriy Zaporozhets2013-08-211-2/+3
|
* Merge Request on forked projectsIzaak Alpert2013-07-171-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The good: - You can do a merge request for a forked commit and it will merge properly (i.e. it does work). - Push events take into account merge requests on forked projects - Tests around merge_actions now present, spinach, and other rspec tests - Satellites now clean themselves up rather then recreate The questionable: - Events only know about target projects - Project's merge requests only hold on to MR's where they are the target - All operations performed in the satellite The bad: - Duplication between project's repositories and satellites (e.g. commits_between) (for reference: http://feedback.gitlab.com/forums/176466-general/suggestions/3456722-merge-requests-between-projects-repos) Fixes: Make test repos/satellites only create when needed -Spinach/Rspec now only initialize test directory, and setup stubs (things that are relatively cheap) -project_with_code, source_project_with_code, and target_project_with_code now create/destroy their repos individually -fixed remote removal -How to merge renders properly -Update emails to show project/branches -Edit MR doesn't set target branch -Fix some failures on editing/creating merge requests, added a test -Added back a test around merge request observer -Clean up project_transfer_spec, Remove duplicate enable/disable observers -Ensure satellite lock files are cleaned up, Attempted to add some testing around these as well -Signifant speed ups for tests -Update formatting ordering in notes_on_merge_requests -Remove wiki schema update Fixes for search/search results -Search results was using by_project for a list of projects, updated this to use in_projects -updated search results to reference the correct (target) project -udpated search results to print both sides of the merge request Change-Id: I19407990a0950945cc95d62089cbcc6262dab1a8
* AnnotatedDmitriy Zaporozhets2013-06-191-2/+2
|
* Fix notes model specsDmitriy Zaporozhets2013-01-151-2/+2
|
* Merge commit 'master' into discussionsRiyad Preukschas2013-01-151-7/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: app/assets/stylesheets/sections/notes.scss app/contexts/notes/load_context.rb app/models/project.rb app/observers/note_observer.rb app/roles/votes.rb app/views/commit/show.html.haml app/views/merge_requests/_show.html.haml app/views/merge_requests/diffs.js.haml app/views/merge_requests/show.js.haml app/views/notes/_note.html.haml features/steps/project/project_merge_requests.rb spec/models/note_spec.rb
| * Remove unused methodsDmitriy Zaporozhets2013-01-051-6/+0
| |
| * Fix some tests. Use travis-ci 1.9.2Dmitriy Zaporozhets2013-01-051-1/+1
| |
| * REpostiry, Team modelsDmitriy Zaporozhets2013-01-031-1/+2
| |