Skip to content

Instantly share code, notes, and snippets.

@simi
Created March 15, 2012 08:29
Show Gist options
  • Save simi/2042936 to your computer and use it in GitHub Desktop.
Save simi/2042936 to your computer and use it in GitHub Desktop.
amistad be rake
[retro@retro amistad (master>)]❤ be rspec spec/activerecord
........................................................................................................................F..FFFFFFF.F...F.F.FFFF.....FFF.F...FFFFF.......F..FFFFFFF.F...F.F.FFFF.....FFF.F...FFFFF.....................
Failures:
1) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when creating friendships should not approve a self requested friendship
Failure/Error: @john.approve(@jane).should be_false
expected true to be false
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:37:in `block (3 levels) in <top (required)>'
2) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list all the friends
Failure/Error: @john.friends.should =~ [@mary, @james]
expected collection contained: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
actual collection contained: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
the missing elements were: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
the extra elements were: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:62:in `block (3 levels) in <top (required)>'
3) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should not list non-friended users
Failure/Error: @john.friends.should =~ [@mary, @james]
expected collection contained: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
actual collection contained: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
the missing elements were: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
the extra elements were: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:67:in `block (3 levels) in <top (required)>'
4) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the friends who invited him
Failure/Error: @john.invited_by.should == [@mary]
expected: [#<Profile id: 14, name: "Mary">]
got: [#<Profile id: 14, name: "Mary">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:73:in `block (3 levels) in <top (required)>'
5) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the friends who were invited by him
Failure/Error: @john.invited.should == [@james]
expected: [#<Profile id: 12, name: "James">]
got: [#<Profile id: 12, name: "James">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:77:in `block (3 levels) in <top (required)>'
6) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the pending friends who invited him
Failure/Error: @john.pending_invited_by.should == [@peter]
expected: [#<Profile id: 13, name: "Peter">]
got: [#<Profile id: 13, name: "Peter">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:81:in `block (3 levels) in <top (required)>'
7) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the pending friends who were invited by him
Failure/Error: @john.pending_invited.should == [@jane]
expected: [#<Profile id: 10, name: "Jane">]
got: [#<Profile id: 10, name: "Jane">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:85:in `block (3 levels) in <top (required)>'
8) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the friends he has in common with another user
Failure/Error: @james.common_friends_with(@mary).should == [@john]
expected: [#<Profile id: 9, name: "John">]
got: [#<Profile id: 9, name: "John">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:89:in `block (3 levels) in <top (required)>'
9) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should check if a user is a friend
Failure/Error: @john.friend_with?(@mary).should be_true
expected false to be true
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:100:in `block (3 levels) in <top (required)>'
10) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should check if a user was invited by another
Failure/Error: @jane.invited_by?(@john).should be_true
expected false to be true
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:126:in `block (3 levels) in <top (required)>'
11) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should check if a user has invited another user
Failure/Error: @john.invited?(@jane).should be_true
expected false to be true
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:136:in `block (3 levels) in <top (required)>'
12) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when removing friendships should remove the friends invited by him
Failure/Error: @victoria.friends.should include(@mary)
expected [#<Profile id: 9, name: "John">, #<Profile id: 14, name: "Mary">, #<Profile id: 12, name: "James">] to include #<Profile id: 14, name: "Mary">
Diff:
@@ -1,2 +1,4 @@
-[#<Profile id: 14, name: "Mary">]
+[#<Profile id: 9, name: "John">,
+ #<Profile id: 14, name: "Mary">,
+ #<Profile id: 12, name: "James">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:164:in `block (3 levels) in <top (required)>'
13) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when removing friendships should remove the friends who invited him
Failure/Error: @victoria.friends.should include(@james)
expected [#<Profile id: 9, name: "John">, #<Profile id: 14, name: "Mary">, #<Profile id: 12, name: "James">] to include #<Profile id: 12, name: "James">
Diff:
@@ -1,2 +1,4 @@
-[#<Profile id: 12, name: "James">]
+[#<Profile id: 9, name: "John">,
+ #<Profile id: 14, name: "Mary">,
+ #<Profile id: 12, name: "James">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:180:in `block (3 levels) in <top (required)>'
14) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when removing friendships should remove the pending friends invited by him
Failure/Error: @victoria.pending_invited.should include(@elisabeth)
expected [#<Profile id: 16, name: "Elisabeth">] to include #<Profile id: 16, name: "Elisabeth">
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:196:in `block (3 levels) in <top (required)>'
15) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when removing friendships should remove the pending friends who invited him
Failure/Error: @victoria.pending_invited_by.should include(@peter)
expected [#<Profile id: 13, name: "Peter">] to include #<Profile id: 13, name: "Peter">
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:209:in `block (3 levels) in <top (required)>'
16) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when blocking friendships should list the blocked users
Failure/Error: @james.blocked.should == [@john]
expected: [#<Profile id: 9, name: "John">]
got: [#<Profile id: 9, name: "John">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:273:in `block (3 levels) in <top (required)>'
17) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when blocking friendships should not list blocked users in friends
Failure/Error: @james.friends.should =~ [@jane, @victoria]
expected collection contained: [#<Profile id: 10, name: "Jane">, #<Profile id: 15, name: "Victoria">]
actual collection contained: [#<Profile id: 10, name: "Jane">, #<Profile id: 15, name: "Victoria">]
the missing elements were: [#<Profile id: 10, name: "Jane">, #<Profile id: 15, name: "Victoria">]
the extra elements were: [#<Profile id: 10, name: "Jane">, #<Profile id: 15, name: "Victoria">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:279:in `block (3 levels) in <top (required)>'
18) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when blocking friendships should not list blocked users in invited
Failure/Error: @victoria.invited.should == [@james]
expected: [#<Profile id: 12, name: "James">]
got: [#<Profile id: 12, name: "James">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:287:in `block (3 levels) in <top (required)>'
19) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when blocking friendships should check if a user is blocked
Failure/Error: @james.blocked?(@john).should be_true
expected false to be true
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:303:in `block (3 levels) in <top (required)>'
20) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in friends
Failure/Error: @john.friends.should == [@james]
expected: [#<Profile id: 12, name: "James">]
got: [#<Profile id: 12, name: "James">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:353:in `block (3 levels) in <top (required)>'
21) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in invited
Failure/Error: @john.invited.should == [@james]
expected: [#<Profile id: 12, name: "James">]
got: [#<Profile id: 12, name: "James">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:360:in `block (3 levels) in <top (required)>'
22) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in invited by
Failure/Error: @victoria.invited_by.should == [@mary]
expected: [#<Profile id: 14, name: "Mary">]
got: [#<Profile id: 14, name: "Mary">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:365:in `block (3 levels) in <top (required)>'
23) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in pending invited
Failure/Error: @victoria.pending_invited.should =~ [@jane, @david]
expected collection contained: [#<Profile id: 10, name: "Jane">, #<Profile id: 11, name: "David">]
actual collection contained: [#<Profile id: 10, name: "Jane">, #<Profile id: 11, name: "David">]
the missing elements were: [#<Profile id: 10, name: "Jane">, #<Profile id: 11, name: "David">]
the extra elements were: [#<Profile id: 10, name: "Jane">, #<Profile id: 11, name: "David">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:370:in `block (3 levels) in <top (required)>'
24) Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in pending invited by
Failure/Error: @david.pending_invited_by.should == [@victoria]
expected: [#<Profile id: 15, name: "Victoria">]
got: [#<Profile id: 15, name: "Victoria">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:8
# ./spec/support/friend_examples.rb:375:in `block (3 levels) in <top (required)>'
25) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when creating friendships should not approve a self requested friendship
Failure/Error: @john.approve(@jane).should be_false
expected true to be false
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:37:in `block (3 levels) in <top (required)>'
26) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list all the friends
Failure/Error: @john.friends.should =~ [@mary, @james]
expected collection contained: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
actual collection contained: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
the missing elements were: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
the extra elements were: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:62:in `block (3 levels) in <top (required)>'
27) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should not list non-friended users
Failure/Error: @john.friends.should =~ [@mary, @james]
expected collection contained: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
actual collection contained: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
the missing elements were: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
the extra elements were: [#<Profile id: 12, name: "James">, #<Profile id: 14, name: "Mary">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:67:in `block (3 levels) in <top (required)>'
28) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the friends who invited him
Failure/Error: @john.invited_by.should == [@mary]
expected: [#<Profile id: 14, name: "Mary">]
got: [#<Profile id: 14, name: "Mary">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:73:in `block (3 levels) in <top (required)>'
29) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the friends who were invited by him
Failure/Error: @john.invited.should == [@james]
expected: [#<Profile id: 12, name: "James">]
got: [#<Profile id: 12, name: "James">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:77:in `block (3 levels) in <top (required)>'
30) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the pending friends who invited him
Failure/Error: @john.pending_invited_by.should == [@peter]
expected: [#<Profile id: 13, name: "Peter">]
got: [#<Profile id: 13, name: "Peter">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:81:in `block (3 levels) in <top (required)>'
31) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the pending friends who were invited by him
Failure/Error: @john.pending_invited.should == [@jane]
expected: [#<Profile id: 10, name: "Jane">]
got: [#<Profile id: 10, name: "Jane">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:85:in `block (3 levels) in <top (required)>'
32) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the friends he has in common with another user
Failure/Error: @james.common_friends_with(@mary).should == [@john]
expected: [#<Profile id: 9, name: "John">]
got: [#<Profile id: 9, name: "John">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:89:in `block (3 levels) in <top (required)>'
33) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should check if a user is a friend
Failure/Error: @john.friend_with?(@mary).should be_true
expected false to be true
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:100:in `block (3 levels) in <top (required)>'
34) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should check if a user was invited by another
Failure/Error: @jane.invited_by?(@john).should be_true
expected false to be true
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:126:in `block (3 levels) in <top (required)>'
35) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should check if a user has invited another user
Failure/Error: @john.invited?(@jane).should be_true
expected false to be true
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:136:in `block (3 levels) in <top (required)>'
36) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when removing friendships should remove the friends invited by him
Failure/Error: @victoria.friends.should include(@mary)
expected [#<Profile id: 9, name: "John">, #<Profile id: 14, name: "Mary">, #<Profile id: 12, name: "James">] to include #<Profile id: 14, name: "Mary">
Diff:
@@ -1,2 +1,4 @@
-[#<Profile id: 14, name: "Mary">]
+[#<Profile id: 9, name: "John">,
+ #<Profile id: 14, name: "Mary">,
+ #<Profile id: 12, name: "James">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:164:in `block (3 levels) in <top (required)>'
37) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when removing friendships should remove the friends who invited him
Failure/Error: @victoria.friends.should include(@james)
expected [#<Profile id: 9, name: "John">, #<Profile id: 14, name: "Mary">, #<Profile id: 12, name: "James">] to include #<Profile id: 12, name: "James">
Diff:
@@ -1,2 +1,4 @@
-[#<Profile id: 12, name: "James">]
+[#<Profile id: 9, name: "John">,
+ #<Profile id: 14, name: "Mary">,
+ #<Profile id: 12, name: "James">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:180:in `block (3 levels) in <top (required)>'
38) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when removing friendships should remove the pending friends invited by him
Failure/Error: @victoria.pending_invited.should include(@elisabeth)
expected [#<Profile id: 16, name: "Elisabeth">] to include #<Profile id: 16, name: "Elisabeth">
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:196:in `block (3 levels) in <top (required)>'
39) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when removing friendships should remove the pending friends who invited him
Failure/Error: @victoria.pending_invited_by.should include(@peter)
expected [#<Profile id: 13, name: "Peter">] to include #<Profile id: 13, name: "Peter">
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:209:in `block (3 levels) in <top (required)>'
40) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when blocking friendships should list the blocked users
Failure/Error: @james.blocked.should == [@john]
expected: [#<Profile id: 9, name: "John">]
got: [#<Profile id: 9, name: "John">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:273:in `block (3 levels) in <top (required)>'
41) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when blocking friendships should not list blocked users in friends
Failure/Error: @james.friends.should =~ [@jane, @victoria]
expected collection contained: [#<Profile id: 10, name: "Jane">, #<Profile id: 15, name: "Victoria">]
actual collection contained: [#<Profile id: 10, name: "Jane">, #<Profile id: 15, name: "Victoria">]
the missing elements were: [#<Profile id: 10, name: "Jane">, #<Profile id: 15, name: "Victoria">]
the extra elements were: [#<Profile id: 10, name: "Jane">, #<Profile id: 15, name: "Victoria">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:279:in `block (3 levels) in <top (required)>'
42) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when blocking friendships should not list blocked users in invited
Failure/Error: @victoria.invited.should == [@james]
expected: [#<Profile id: 12, name: "James">]
got: [#<Profile id: 12, name: "James">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:287:in `block (3 levels) in <top (required)>'
43) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when blocking friendships should check if a user is blocked
Failure/Error: @james.blocked?(@john).should be_true
expected false to be true
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:303:in `block (3 levels) in <top (required)>'
44) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in friends
Failure/Error: @john.friends.should == [@james]
expected: [#<Profile id: 12, name: "James">]
got: [#<Profile id: 12, name: "James">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:353:in `block (3 levels) in <top (required)>'
45) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in invited
Failure/Error: @john.invited.should == [@james]
expected: [#<Profile id: 12, name: "James">]
got: [#<Profile id: 12, name: "James">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:360:in `block (3 levels) in <top (required)>'
46) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in invited by
Failure/Error: @victoria.invited_by.should == [@mary]
expected: [#<Profile id: 14, name: "Mary">]
got: [#<Profile id: 14, name: "Mary">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:365:in `block (3 levels) in <top (required)>'
47) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in pending invited
Failure/Error: @victoria.pending_invited.should =~ [@jane, @david]
expected collection contained: [#<Profile id: 10, name: "Jane">, #<Profile id: 11, name: "David">]
actual collection contained: [#<Profile id: 10, name: "Jane">, #<Profile id: 11, name: "David">]
the missing elements were: [#<Profile id: 10, name: "Jane">, #<Profile id: 11, name: "David">]
the extra elements were: [#<Profile id: 10, name: "Jane">, #<Profile id: 11, name: "David">]
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:370:in `block (3 levels) in <top (required)>'
48) Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in pending invited by
Failure/Error: @david.pending_invited_by.should == [@victoria]
expected: [#<Profile id: 15, name: "Victoria">]
got: [#<Profile id: 15, name: "Victoria">] (using ==)
Diff:
Shared Example Group: "a friend model" called from ./spec/support/parameterized_models.rb:17
# ./spec/support/friend_examples.rb:375:in `block (3 levels) in <top (required)>'
Finished in 8.89 seconds
230 examples, 48 failures
Failed examples:
rspec ./spec/support/friend_examples.rb:35 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when creating friendships should not approve a self requested friendship
rspec ./spec/support/friend_examples.rb:61 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list all the friends
rspec ./spec/support/friend_examples.rb:65 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should not list non-friended users
rspec ./spec/support/friend_examples.rb:72 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the friends who invited him
rspec ./spec/support/friend_examples.rb:76 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the friends who were invited by him
rspec ./spec/support/friend_examples.rb:80 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the pending friends who invited him
rspec ./spec/support/friend_examples.rb:84 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the pending friends who were invited by him
rspec ./spec/support/friend_examples.rb:88 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should list the friends he has in common with another user
rspec ./spec/support/friend_examples.rb:99 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should check if a user is a friend
rspec ./spec/support/friend_examples.rb:125 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should check if a user was invited by another
rspec ./spec/support/friend_examples.rb:135 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when listing friendships should check if a user has invited another user
rspec ./spec/support/friend_examples.rb:162 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when removing friendships should remove the friends invited by him
rspec ./spec/support/friend_examples.rb:178 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when removing friendships should remove the friends who invited him
rspec ./spec/support/friend_examples.rb:194 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when removing friendships should remove the pending friends invited by him
rspec ./spec/support/friend_examples.rb:207 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when removing friendships should remove the pending friends who invited him
rspec ./spec/support/friend_examples.rb:270 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when blocking friendships should list the blocked users
rspec ./spec/support/friend_examples.rb:278 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when blocking friendships should not list blocked users in friends
rspec ./spec/support/friend_examples.rb:286 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when blocking friendships should not list blocked users in invited
rspec ./spec/support/friend_examples.rb:302 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when blocking friendships should check if a user is blocked
rspec ./spec/support/friend_examples.rb:352 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in friends
rspec ./spec/support/friend_examples.rb:359 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in invited
rspec ./spec/support/friend_examples.rb:364 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in invited by
rspec ./spec/support/friend_examples.rb:369 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in pending invited
rspec ./spec/support/friend_examples.rb:373 # Custom friend model it should behave like friend with parameterized models When users are created after activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in pending invited by
rspec ./spec/support/friend_examples.rb:35 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when creating friendships should not approve a self requested friendship
rspec ./spec/support/friend_examples.rb:61 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list all the friends
rspec ./spec/support/friend_examples.rb:65 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should not list non-friended users
rspec ./spec/support/friend_examples.rb:72 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the friends who invited him
rspec ./spec/support/friend_examples.rb:76 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the friends who were invited by him
rspec ./spec/support/friend_examples.rb:80 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the pending friends who invited him
rspec ./spec/support/friend_examples.rb:84 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the pending friends who were invited by him
rspec ./spec/support/friend_examples.rb:88 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should list the friends he has in common with another user
rspec ./spec/support/friend_examples.rb:99 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should check if a user is a friend
rspec ./spec/support/friend_examples.rb:125 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should check if a user was invited by another
rspec ./spec/support/friend_examples.rb:135 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when listing friendships should check if a user has invited another user
rspec ./spec/support/friend_examples.rb:162 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when removing friendships should remove the friends invited by him
rspec ./spec/support/friend_examples.rb:178 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when removing friendships should remove the friends who invited him
rspec ./spec/support/friend_examples.rb:194 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when removing friendships should remove the pending friends invited by him
rspec ./spec/support/friend_examples.rb:207 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when removing friendships should remove the pending friends who invited him
rspec ./spec/support/friend_examples.rb:270 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when blocking friendships should list the blocked users
rspec ./spec/support/friend_examples.rb:278 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when blocking friendships should not list blocked users in friends
rspec ./spec/support/friend_examples.rb:286 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when blocking friendships should not list blocked users in invited
rspec ./spec/support/friend_examples.rb:302 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when blocking friendships should check if a user is blocked
rspec ./spec/support/friend_examples.rb:352 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in friends
rspec ./spec/support/friend_examples.rb:359 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in invited
rspec ./spec/support/friend_examples.rb:364 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in invited by
rspec ./spec/support/friend_examples.rb:369 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in pending invited
rspec ./spec/support/friend_examples.rb:373 # Custom friend model it should behave like friend with parameterized models When users are created before activating amistad it should behave like a friend model when unblocking friendships should list unblocked users in pending invited by
[retro@retro amistad (master *>)]❤
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment