test/follow_test.rb in socialization-0.2.0 vs test/follow_test.rb in socialization-0.2.1
- old
+ new
@@ -25,9 +25,12 @@
# can't have duplicate follows
assert_raise ActiveRecord::RecordInvalid do
@u_john.follow!(@c_rick)
end
+
+ assert @u_john.unfollow!(@c_rick)
+ assert_equal false, @c_rick.followed_by?(@u_john)
end
def test_user_following_user
@u_john.follow!(@u_jane)
assert_equal true, @u_john.follows?(@u_jane)
\ No newline at end of file