Move spec to user_spec

This commit is contained in:
Raphael 2010-10-22 11:10:35 -07:00
parent b67cee9af0
commit 1a19c28199
2 changed files with 4 additions and 3 deletions

View file

@ -13,9 +13,6 @@ describe 'user encryption' do
@aspect2 = @user2.aspect(:name => 'dudes')
end
it 'should have a key' do
@user.encryption_key.should_not be nil
end
describe 'key exchange on friending' do
it 'should send over a public key' do
message_queue.stub!(:add_post_request)

View file

@ -10,6 +10,10 @@ describe User do
let(:user2) { Factory(:user) }
let(:aspect2) { user2.aspect(:name => 'stuff') }
it 'should have a key' do
user.encryption_key.should_not be nil
end
describe "validation" do
describe "of associated person" do
it "fails if person is not valid" do