test/actors/mentioner_test.rb in socialization-0.5.0.beta3 vs test/actors/mentioner_test.rb in socialization-0.5.0.beta4
- old
+ new
@@ -95,7 +95,12 @@
should "call $Mention.mentionables_relation" do
$Mention.expects(:mentionables_relation).with(@mentioner, @mentionable.class, { :foo => :bar })
@mentioner.mentionees_relation(@mentionable.class, { :foo => :bar })
end
end
+
+ should "remove mention relationships" do
+ Socialization.mention_model.expects(:remove_mentionables).with(@mentioner)
+ @mentioner.destroy
+ end
end
end