From d1bab5d4a5ea4100803c871461c62744767c514b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 19 Jul 2010 19:21:54 -0500 Subject: a few more tests --- t/extending/method.t | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 t/extending/method.t (limited to 't/extending/method.t') diff --git a/t/extending/method.t b/t/extending/method.t new file mode 100755 index 0000000..8599720 --- /dev/null +++ b/t/extending/method.t @@ -0,0 +1,21 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; +use Test::Output; +use lib 't/lib'; + +{ + package Foo; + use Moose; + use AtomicMethod; + + atomic_method foo => sub { + warn "in foo\n"; + }; +} + +my $foo = Foo->new; +stderr_is(sub { $foo->foo }, "locking...\nin foo\nunlocking...\n"); + +done_testing; -- cgit v1.2.3-54-g00ecf