Created
July 18, 2015 19:15
-
-
Save autarch/fb0329adca735452f261 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| 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