aboutsummaryrefslogtreecommitdiff
path: root/test/tc_mauve_people_list.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-05-03 19:42:20 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-05-03 19:42:20 +0100
commit58f5a950200f5957307a8552b92ce9e92f948b73 (patch)
treee7e5dbf2178dfd46e88e8e6d60d6665c58b538fa /test/tc_mauve_people_list.rb
parent3a008fd3fff00852533d0df1f597595505373c6b (diff)
* Person and people lists have now become interchangeable, with notifications
only recording the username, rather than the Person/PeopleList. This means that notifications in alert groups can use default #during clauses and #every values from people lists and persons. * Notify clauses can now take an array of persons/people_lists, and people_lists can refer to other people lists. * PeopleList names are now in the same namespace as usernames. * Tests to go with.
Diffstat (limited to 'test/tc_mauve_people_list.rb')
-rw-r--r--test/tc_mauve_people_list.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tc_mauve_people_list.rb b/test/tc_mauve_people_list.rb
index 78586d2..2f6755a 100644
--- a/test/tc_mauve_people_list.rb
+++ b/test/tc_mauve_people_list.rb
@@ -60,7 +60,7 @@ EOF
notification_buffer = Configuration.current.notification_methods["email"].deliver_to_queue
Server.instance.setup
- people_list = Configuration.current.people_lists["testers"]
+ people_list = Configuration.current.people["testers"]
alert = Alert.new(
:alert_id => "test",
@@ -142,7 +142,7 @@ EOF
stub_request(:get, "http://localhost/api/attendees/support_shift/2011-08-01T00:05:00").
to_return(:status => 200, :body => YAML.dump(%w(test2)))
- people_list = Configuration.current.people_lists["testers"]
+ people_list = Configuration.current.people["testers"]
assert_equal([Configuration.current.people["test1"]], people_list.people)
assert_equal([Configuration.current.people["test2"]], people_list.people(Time.now + 5.minutes))
end