Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
danielvincent 2010-10-08 00:37:10 -07:00
commit fc2eda7adf
3 changed files with 48 additions and 47 deletions

1
.gitignore vendored
View file

@ -19,3 +19,4 @@ gpg/*/random_seed
public/uploads/* public/uploads/*
public/source.tar public/source.tar
tmp/**/* tmp/**/*
capybara-*.html

4
lib/tasks/ci.rake Normal file
View file

@ -0,0 +1,4 @@
desc "Run all specs and features"
task :ci => [:environment] do
system "bundle exec rake"
end

View file

@ -45,7 +45,8 @@ describe User do
Request.count.should == 0 Request.count.should == 0
end end
it 'should not be able to friend request an existing friend' do friend = Factory.create(:person) it 'should not be able to friend request an existing friend' do
friend = Factory.create(:person)
@user.friends << friend @user.friends << friend
@user.save @user.save
@ -209,19 +210,14 @@ describe User do
@user2.receive @message.to_diaspora_xml.to_s @user2.receive @message.to_diaspora_xml.to_s
@user2.unfriend @user.person @user2.unfriend @user.person
@user.unfriended_by @user2.person @user.unfriended_by @user2.person
@aspect.reload
@aspect2.reload
@user.reload
@user2.reload
end end
it "deletes the unfriended user's posts from visible_posts" do it "deletes the unfriended user's posts from visible_posts" do
@user.raw_visible_posts.include?(@message.id).should be_false @user.raw_visible_posts(true).include?(@message.id).should be_false
end end
it "deletes the unfriended user's posts from the aspect's posts" do it "deletes the unfriended user's posts from the aspect's posts" do
@aspect2.posts.include?(@message).should be_false @aspect2.posts(true).include?(@message).should be_false
end end
end end
end end
end end
end end