6 use Test::More tests => 8;
7 use Moose::AttributeHelpers;
21 flip_switch => 'toggle',
29 ok( $room->is_lit, 'set is_lit to 1 using ->illuminate' );
30 ok( !$room->is_dark, 'check if is_dark does the right thing' );
33 ok( !$room->is_lit, 'set is_lit to 0 using ->darken' );
34 ok( $room->is_dark, 'check if is_dark does the right thing' );
37 ok( $room->is_lit, 'toggle is_lit back to 1 using ->flip_switch' );
38 ok( !$room->is_dark, 'check if is_dark does the right thing' );
41 ok( !$room->is_lit, 'toggle is_lit back to 0 again using ->flip_switch' );
42 ok( $room->is_dark, 'check if is_dark does the right thing' );