Created
April 19, 2011 13:42
-
-
Save marcelloma/927761 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe User do | |
describe "other_users"do | |
it "should return other users" do | |
User.delete_all | |
me = Factory(:user) | |
other_one = Factory(:user) | |
other_two = Factory(:user) | |
User.other_users(me).all.should_not be_empty | |
User.other_users(me).count.should == 2 | |
User.other_users(me).include?(me).should_not | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
describe User do
describe "other_users" do
before {
User.delete_all
end
end