Alias functions: "before" for "beforeEach" and "after" for "afterEach" #43

wants to merge 3 commits into


None yet

2 participants


I found when porting specs from Screw.Unit, I would have suites that would silently fail when not replacing 'before' with 'beforeEach' and 'after' with 'afterEach'. Aliases are useful in this case. Functions added to base.js with specs.

rossta added some commits Jan 6, 2011
@rossta rossta Ignore .rvmrc 9ebd130
@rossta rossta Provide alias 'before' for 'beforeEach'. Tests preceded by a call to …
…'before' would silently fail. This alias is useful for porting specs from another testing library like Screw.Unit, which uses 'before'.
@rossta rossta Alias 'after' for 'afterEach' 3d5ac34

Thanks for the patch. We've already been considering this and will make a similar change soon, possibly even deprecating the *Each versions.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment