Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "should not destroy notification for like on comment" do
- comment = FactoryGirl.create(:comment)
- like = FactoryGirl.create_list(:like, 2, likable: comment)
- like.first.destroy
- note = comment.user.notifications.find_by(notifiable: comment, from_comment: false)
- note.should_not be_nil
- end
- $ rails c test
- it "should not destroy notification for like on comment" do
- comment = FactoryGirl.create(:comment)
- like = FactoryGirl.create_list(:like, 2, likable: comment)
- debugger
- like.first.destroy
- note = comment.user.notifications.find_by(notifiable: comment, from_comment: false)
- note.should_not be_nil
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement