diff --git a/tests/61push/02add_rules.pl b/tests/61push/02add_rules.pl index 1d55b4bc8..44b9b9155 100644 --- a/tests/61push/02add_rules.pl +++ b/tests/61push/02add_rules.pl @@ -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 ); + }); }); }