Skip to content

Instantly share code, notes, and snippets.

@marcelloma
Created April 19, 2011 13:52
Show Gist options
  • Save marcelloma/927856 to your computer and use it in GitHub Desktop.
Save marcelloma/927856 to your computer and use it in GitHub Desktop.
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