spec/models/activity_spec.rb in social_stream-base-0.9.4 vs spec/models/activity_spec.rb in social_stream-base-0.9.5
- old
+ new
@@ -126,27 +126,6 @@
end
end
end
end
end
-
- context "without relations" do
- it "should allow create to friend" do
- tie = Factory(:friend)
-
- activity = Activity.new :contact_id => tie.contact.inverse!.id
-
- assert activity.allow?(tie.receiver, 'create')
- end
-
- it "should fill relation" do
- tie = Factory(:friend)
-
- post = Post.new :text => "testing",
- :_contact_id => tie.contact.inverse!.id
-
- post.save!
-
- post.post_activity.relations.should include(tie.relation)
- end
- end
end