make selected configuration options for clients editable
[pxelator] / lib / PXElator / t / html.t
index 1f56df6..7cd3a8b 100755 (executable)
@@ -4,7 +4,8 @@ use warnings;
 use strict;
 use autodie;
 
-use Test::More tests => 5;
+use Test::More tests => 8;
+use Data::Dump qw/dump/;
 
 use_ok 'html';
 
@@ -19,3 +20,12 @@ diag $html;
 
 ok( $html = html::pre_dump( foo => 1, bar => 'baz' ), 'pre_dump' );
 diag $html;
+
+ok( $html = html::conf( '127.0.0.1', { foo => 1, bar => 'baz' } ), 'conf' );
+diag $html;
+
+ok( my @t = html::conf( '127.0.0.1', { foo => 1, bar => 'baz' }, 'table' ), 'conf table' );
+diag dump @t;
+
+ok( @t = html::conf( '127.0.0.1', { foo => 1, bar => 'baz' }, 'edit', 'foo' ), 'conf edit' );
+diag dump @t;