Skip to content

Instantly share code, notes, and snippets.

@alindeman
Created December 6, 2011 20:29
describe "#users" do
it "reads /etc/passwd and returns user information" do
File.stubs(:read).returns("andy:*:100:100\nbob:*:101:101")
users.should == [["andy", "*", "100", "100"],
["bob", "*", "101", "101"]]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment