Sha256: af0a2294ba23d6c4f395175ce176757bab93431422eb340a79f4a72fd0b68287
Contents?: true
Size: 624 Bytes
Versions: 7
Compression:
Stored size: 624 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Actor do it "should generate slug" do assert Factory(:actor).slug.present? end it "should generate different slug" do a = Factory(:actor) b = Factory(:actor, :name => a.name) a.name.should == b.name a.slug.should_not == b.slug end it "should generate relations" do assert Factory(:actor).relation_customs.present? end context 'pending contacts' do it 'should not include self' do a = Factory(:actor) c = a.contact_to!(a) a.pending_contacts.should_not include(c) end end end
Version data entries
7 entries across 7 versions & 1 rubygems