diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-02-12 17:58:39 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-15 19:25:37 +0300 |
commit | 0444fa560acd07255960284f19b1de6499cd5910 (patch) | |
tree | 005ce576bbe661242ee58c1e1ddebd9e665bd9ff /spec/factories | |
parent | 178c80a561fa10a157bae6e5d4682b232ae727c7 (diff) |
Original implementation to allow users to subscribe to labels
1. Allow subscribing (the current user) to a label
- Refactor the `Subscription` coffeescript class
- The main change is that it accepts a container, and conducts all
DOM queries within its scope. We need this because the labels
page has multiple instances of `Subscription` on the same page.
2. Creating an issue or MR with labels notifies users subscribed to those labels
- Label `has_many` subscribers through subscriptions.
3. Adding a label to an issue or MR notifies users subscribed to those labels
- This only applies to subscribers of the label that has just been
added, not all labels for the issue.
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/labels.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/factories/labels.rb b/spec/factories/labels.rb index 6e70af10af3..91a7400afa1 100644 --- a/spec/factories/labels.rb +++ b/spec/factories/labels.rb @@ -13,7 +13,7 @@ FactoryGirl.define do factory :label do - title "Bug" + title { FFaker::Color.name } color "#990000" project end |