public
Description: rails plugin that allows has_many :through to go through other has_many :throughs
Homepage:
Clone URL: git://github.com/ianwhite/nested_has_many_through.git
Updated SPECDOC with edge specs
ianwhite (author)
Wed Apr 30 05:04:06 -0700 2008
commit  c6353e4f8ca1be367f56036eb34fbac83292e6fd
tree    dc8acb775e054fcc929ea69039430984ad51326f
parent  d6b78f219c4f0178c22120db09a596bf48383c47
...
28
29
30
31
32
33
34
35
36
37
38
39
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
28
29
30
 
 
 
 
 
 
 
 
 
 
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
0
@@ -28,13 +28,22 @@ Commenter use case (a1: p1>c1, a2: p2>c1, p3>c2, a3: p4>c3)
0
 
0
 Commenter use case (a1: p1>c1, a2: p2>c1, p3>c2, a3: p4>c3) u1 comments on p2
0
 - u1.comments should == [comment]
0
-- a1.commenters.should == []
0
-- a2.commenters.should == [u1]
0
-- u1.commented_posts.should == [p2]
0
-- u1.commented_authors.should == [a2]
0
-- u1.posts_of_interest.should == [p1, p2, p3]
0
-- u1.categories_of_interest.should == [c1, c2]
0
-
0
-Finished in 0.367715 seconds
0
-
0
-24 examples, 0 failures
0
+- a1.commenters should be empty
0
+- a2.commenters should == [u1]
0
+- u1.commented_posts should == [p2]
0
+- u1.commented_posts.find_inflamatory(:all) should be empty
0
+- u1.commented_posts.inflamatory should be empty
0
+- u1.commented_authors should == [a2]
0
+- u1.posts_of_interest should == [p1, p2, p3]
0
+- u1.categories_of_interest should == [c1, c2]
0
+
0
+Commenter use case (a1: p1>c1, a2: p2>c1, p3>c2, a3: p4>c3) u1 comments on p2 when p2 is inflamatory
0
+- p2 should be inflamatory
0
+- u1.commented_posts.find_inflamatory(:all) should == [p2]
0
+- u1.posts_of_interest.find_inflamatory(:all) should == [p2]
0
+- u1.commented_posts.inflamatory should == [p2]
0
+- u1.posts_of_interest.inflamatory should == [p2]
0
+
0
+Finished in 0.538693 seconds
0
+
0
+31 examples, 0 failures

Comments