From 197d07cc85cf2ac57483b2b4e8932d4e00ad4728 Mon Sep 17 00:00:00 2001 From: Gerald Lewis Date: Fri, 12 Aug 2011 14:11:44 -0400 Subject: [PATCH] revised tests for #1234 thanks to @michaelficarra --- test/operators.coffee | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/operators.coffee b/test/operators.coffee index 3556949c..09d7edbe 100644 --- a/test/operators.coffee +++ b/test/operators.coffee @@ -234,11 +234,9 @@ test "#891: incorrect inversion of chained comparisons", -> test "#1234: Applying a splat to :: applies the splat to the wrong object", -> nonce = {} - class A - b: (arr) -> - eq this.toString(), nonce - toString: -> nonce + class C + method: -> @nonce + nonce: nonce - c = [0] - - A::b c... + arr = [] + eq nonce, C::method arr... # should be applied to `C::`