From 9fe26e7582cfe402abffc2173f32507792b965ad Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 22 Oct 2011 16:49:51 -0400 Subject: [PATCH] [#25] Moved MemberBuilderValidator/MethodTest's helper functions into caseSetUp() --- test/MemberBuilderValidator/MethodTest.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/MemberBuilderValidator/MethodTest.js b/test/MemberBuilderValidator/MethodTest.js index 5e78bd6..2fbe91a 100644 --- a/test/MemberBuilderValidator/MethodTest.js +++ b/test/MemberBuilderValidator/MethodTest.js @@ -24,12 +24,10 @@ require( 'common' ).testCase( { - setUp: function() + caseSetUp: function() { var _self = this; - this.sut = this.require( 'MemberBuilderValidator' )(); - /** * Tests to ensure that a method with the given keywords fails * validation with an error message partially matching the provided @@ -145,6 +143,12 @@ require( 'common' ).testCase( }, + setUp: function() + { + this.sut = this.require( 'MemberBuilderValidator' )(); + }, + + /** * Private, abstract methods do not make sense. Private methods cannot be * overridden.