Skip to content

Instantly share code, notes, and snippets.

@autarch
Created July 18, 2015 19:15
Show Gist options
  • Select an option

  • Save autarch/fb0329adca735452f261 to your computer and use it in GitHub Desktop.

Select an option

Save autarch/fb0329adca735452f261 to your computer and use it in GitHub Desktop.
{
events_are(
intercept {
with_immutable {
ok( Foo->meta->is_mutable );
}
'Foo';
},
events {
event 'Subtest' => sub {
events {
event_call diag => [qr/Foo is not immutable/];
event Ok => sub {
event_call pass => 1;
};
event Plan => { max => 1 };
};
};
event 'Subtest' => sub {
events {
event_call diag => [qr/Foo is immutable/];
event Ok => sub {
event_call pass => 0;
};
event Plan => { max => 1 };
};
};
event Plan => { max => 2 };
},
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment