diff options
author | louise <louise> | 2009-11-12 11:11:02 +0000 |
---|---|---|
committer | louise <louise> | 2009-11-12 11:11:02 +0000 |
commit | 4888795d1d5deb6f5bb387020b4988948a1bc6a8 (patch) | |
tree | 8c6a097b00f4f7b518fbfae984b498a49841ee83 | |
parent | 7d32686d378f060630054074b6aadf8f545ed1a7 (diff) |
Removing obsolete tests
-rwxr-xr-x | t/Problems.t | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/t/Problems.t b/t/Problems.t index 8a5c828e3..642f4ebc5 100755 --- a/t/Problems.t +++ b/t/Problems.t @@ -6,7 +6,7 @@ # Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved. # Email: louise@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: Problems.t,v 1.1 2009-10-13 09:25:56 louise Exp $ +# $Id: Problems.t,v 1.2 2009-11-12 11:11:02 louise Exp $ # use strict; @@ -21,30 +21,4 @@ use lib "$FindBin::Bin/../../perllib"; use Problems; -sub test_update_user_notified_data_sharing() { - - my $update = {created => 1256947200}; - my $notification_start = 1256947201; - my $accepted = Problems::update_user_notified_data_sharing($update, $notification_start); - ok($accepted == 0, 'update_user_notified_data_sharing returns false for an update created before the notification started to be displayed'); - $notification_start = 1256947199; - $accepted = Problems::update_user_notified_data_sharing($update, $notification_start); - ok($accepted == 1, 'update_user_notified_data_sharing returns true for a problem created after the notification started to be displayed'); - return 1; -} - -sub test_user_notified_data_sharing() { - - my $problem = {time => 1256947200}; - my $notification_start = 1256947201; - my $accepted = Problems::user_notified_data_sharing($problem, $notification_start); - ok($accepted == 0, 'user_notified_data_sharing returns false for a problem created before the notification started to be displayed'); - $notification_start = 1256947199; - $accepted = Problems::user_notified_data_sharing($problem, $notification_start); - ok($accepted == 1, 'user_notified_data_sharing returns true for a problem created after the notification started to be displayed'); - return 1; -} - -ok(test_user_notified_data_sharing() == 1, 'Ran all tests for user_notified_data_sharing '); -ok(test_update_user_notified_data_sharing() == 1, 'Ran all tests for update_user_notified_data_sharing'); |