diff options
author | Izaak Alpert <ialpert@blackberry.com> | 2013-06-26 16:45:57 -0400 |
---|---|---|
committer | Izaak Alpert <ialpert@blackberry.com> | 2013-07-17 22:45:03 -0400 |
commit | 09112dbb1df2669b0042d6d785a5469a9855ac20 (patch) | |
tree | 588ab6efb0d54df955b9701ac46cdf0d3c3d1cc5 /spec/services | |
parent | bbef8bb5896d8858bf91692bdd5aa9236472a885 (diff) | |
download | gitlab-ce-09112dbb1df2669b0042d6d785a5469a9855ac20.tar.gz |
Rebase on master
Trying to retrigger travis
Change-Id: Ifd86fb4c6b2791ad176230254fbf69a9ade979fb
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/notification_service_spec.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/spec/services/notification_service_spec.rb b/spec/services/notification_service_spec.rb index 1a7a866307b..8428326e018 100644 --- a/spec/services/notification_service_spec.rb +++ b/spec/services/notification_service_spec.rb @@ -232,11 +232,16 @@ describe NotificationService do end end + let(:u_watcher) { create(:user, notification_level: Notification::N_WATCH) } + let(:u_participating) { create(:user, notification_level: Notification::N_PARTICIPATING) } + let(:u_disabled) { create(:user, notification_level: Notification::N_DISABLED) } + let(:u_mentioned) { create(:user, username: 'mention', notification_level: Notification::N_WATCH) } + def build_team(project) - @u_watcher = create(:user, notification_level: Notification::N_WATCH) - @u_participating = create(:user, notification_level: Notification::N_PARTICIPATING) - @u_disabled = create(:user, notification_level: Notification::N_DISABLED) - @u_mentioned = create(:user, username: 'mention', notification_level: Notification::N_WATCH) + @u_watcher = u_watcher + @u_participating = u_participating + @u_disabled = u_disabled + @u_mentioned = u_mentioned project.team << [@u_watcher, :master] project.team << [@u_participating, :master] |