From: Shawn M Moore Date: Tue, 17 Jun 2008 03:43:53 +0000 (+0000) Subject: Begin writing tests for role application X-Git-Tag: 0.19~301 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=086c223bde173eb634462174b195dbbb59157fe7;p=gitmo%2FMouse.git Begin writing tests for role application --- diff --git a/t/402-basic-role-application.t b/t/402-basic-role-application.t new file mode 100644 index 0000000..89e2aee --- /dev/null +++ b/t/402-basic-role-application.t @@ -0,0 +1,24 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More tests => 1; + +do { + package Role; + use Mouse::Role; + + has 'attr'; + + no Mouse::Role; +}; + +do { + package Class; + use Mouse; + with 'Role'; + + no Mouse; +}; + +ok(Class->meta->has_attribute('attr'), "role application added the attribute"); +