Skip to content

Commit

Permalink
Merge pull request #194 from matrix-org/markjh/get_enabled
Browse files Browse the repository at this point in the history
Check getting the enabled attribute of a push rule
  • Loading branch information
NegativeMjark committed Feb 25, 2016
2 parents 91ca3da + 24c40ed commit 27cfb6c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/61push/02add_rules.pl
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,17 @@ sub check_add_push_rule
assert_json_keys( $body->{$scope}, $kind );
$check_rule_list->( $body->{$scope}{$kind} );
});
})->then( sub {
do_request_json_for( $user,
method => "GET",
uri => "/r0/pushrules/$scope/$kind/$rule_id/enabled",
)->on_done( sub {
my ( $body ) = @_;

assert_json_keys( $body, qw( enabled ) );

assert_eq( $body->{enabled}, JSON::true );
});
});
}

Expand Down

0 comments on commit 27cfb6c

Please sign in to comment.