cleaned up user specs

This commit is contained in:
danielvincent 2010-06-12 18:52:36 -07:00
parent 8b0c3725a5
commit 583067b05c

View file

@ -1,24 +1,13 @@
require 'spec_helper' require 'spec_helper'
describe 'a user should be able to log into his seed' do describe User do
before do before do
User.delete_all User.delete_all
end end
it 'should should have a name and password' do it 'should should have a valid name and password' do
User.create
User.count.should == 0 User.count.should == 0
billy = User.new
User.count.should == 0
billy.save
User.count.should == 0
end end
it 'should be able to log into a page with a password' do
billy = User.create(:password => "foobar")
billy.password.should == "foobar"
end
end end