gitlab-org--gitlab-foss/spec
Robb Kidd 16ceae895e Separate observing of Note and MergeRequests
* Move is_assigned? and is_being_xx? methods to IssueCommonality

  This is behavior merge requests have in common with issues. Moved
  methods to IssueCommonality role. Put specs directly into
  merge_request_spec because setup differs for issues and MRs
  specifically in the "closed" factory to use.

* Add MergeRequestObserver. Parallels IssueObserver in almost every way.

  Ripe for refactoring.

* Rename MailerObserver to NoteObserver

  With merge request observing moved out of MailerObserver, all that
  was left was Note logic. Renamed to NoteObserver, added tests and
  updated application config for new observer names. Refactored
  NoteObserver to use the note's author and not rely on current_user.

* Set current_user for MergeRequestObserver

  IssueObserver and MergeRequestObserver are the only observers that
  need a reference to the current_user that they cannot look up on
  the objects they are observing.
2012-10-10 17:59:25 -04:00
..
controllers Add CommitsController spec to make sure atom feeds work 2012-09-26 16:32:25 -04:00
helpers Move emoji auto-complete helper to ApplicationHelper 2012-10-10 00:53:42 +02:00
lib Remove leftover ref_extractor_spec file 2012-10-04 14:31:11 -04:00
mailers Spec fixed 2012-09-06 11:40:16 +03:00
models Separate observing of Note and MergeRequests 2012-10-10 17:59:25 -04:00
observers Separate observing of Note and MergeRequests 2012-10-10 17:59:25 -04:00
requests API: add project snippets listing 2012-10-08 02:13:53 -07:00
roles tests fix 2012-10-09 04:10:16 +04:00
routing Add Compare#index and Compare#create actions 2012-09-26 16:32:24 -04:00
support Use Rails.root.join where appropriate 2012-09-26 16:32:26 -04:00
workers Fully embrace Ruby 1.9 hash syntax 2012-08-10 18:25:15 -04:00
factories.rb Separate observing of Note and MergeRequests 2012-10-10 17:59:25 -04:00
factories_spec.rb Factories spec refactoring after #1616 2012-10-03 13:33:31 +03:00
seed_project.tar.gz Rspec test repo replaced.\nMerge Requests improved 2012-03-13 23:54:49 +02:00
spec_helper.rb Add TreeController and spec 2012-09-26 16:32:21 -04:00