Created
April 19, 2011 13:52
-
-
Save marcelloma/927856 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
require 'spec_helper' | |
describe User do | |
describe "other_users" do | |
before { | |
User.delete_all | |
@me = Factory(:user) | |
@other_one = Factory(:user) | |
@other_two = Factory(:user) | |
} | |
subject { User.other_users(@me) } | |
it { should_not be_empty } | |
it { should_not include(@me) } | |
it { should include(@other_one) } | |
it { should include(@other_two) } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment