cleaned up user specs
This commit is contained in:
parent
8b0c3725a5
commit
583067b05c
1 changed files with 3 additions and 14 deletions
|
|
@ -1,24 +1,13 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'a user should be able to log into his seed' do
|
||||
describe User do
|
||||
before do
|
||||
User.delete_all
|
||||
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
|
||||
billy = User.new
|
||||
User.count.should == 0
|
||||
billy.save
|
||||
User.count.should == 0
|
||||
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue