10 lines
240 B
Ruby
10 lines
240 B
Ruby
require 'spec_helper'
|
|
|
|
describe Person do
|
|
it 'should not allow a friend with the same url as the user' do
|
|
user = Factory.create(:user)
|
|
friend = Factory.build(:friend, :url => user.url)
|
|
friend.valid?.should == false
|
|
|
|
end
|
|
end
|