Last active
December 19, 2015 18:29
-
-
Save gratzc/5999404 to your computer and use it in GitHub Desktop.
MXUnit Decorator cfscript syntax
This file contains 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
/** | |
* @mxunit:decorators mxunit.framework.decorators.TransactionRollbackDecorator | |
**/ | |
component extends="coldbox.system.testing.BaseModelTest" model="model.SomeModel" { | |
void function setup() { | |
super.setup(); | |
} | |
function testSomething() { | |
//transaction rollback happens so whatever happens is rolled back | |
var results = model.doSomething(); | |
assertEquals("1", results); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment