public
Description: Fluent programming (chained method calls) for JavaScript.
Homepage: http://osteele.com/sources/javascript/fluently/
Clone URL: git://github.com/osteele/fluently.git
remove jsspec (in preparation for adding as submodule)
osteele (author)
Sun Apr 13 04:23:28 -0700 2008
commit  72a92d5a0f7bc822450a25171b362bfc26a61192
tree    fba3db4328b516f258e75f65d41364e144ccedf5
parent  9380b521762bdfabe5ae3c0bb09c37bcb6193a13
0
specs/fluently-specs.html 100755 → 100644
0
specs/fluently-specs.js 100755 → 100644
...
19
20
21
 
 
 
 
 
 
 
 
 
 
 
 
22
23
24
...
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
0
@@ -19,6 +19,18 @@ describe('Definitions', {
0
         });
0
         value_of(chain.reset().a().trace()).should_be('a');
0
         value_of(chain.reset().a().b().trace()).should_be('ab');
0
+ value_of(chain.reset().a().b().a().trace()).should_be('aba');
0
+ },
0
+ 'should define multipart paths': function() {
0
+ var capture = 1;
0
+ var chain = Fluently.make(function(define) {
0
+ define('a.b', function(n) { capture = n; });
0
+ define('a.c', function(n) { capture = n+1; });
0
+ });
0
+ chain.a.b(1);
0
+ value_of(capture).should_be(1);
0
+ chain.a.c(1);
0
+ value_of(capture).should_be(2);
0
     },
0
     'should recognize aliases': function() {
0
         var chain = Fluently.make(function(define) {

Comments

    No one has commented yet.