@admin = User.create(:login => "admin", :email => "admin@test.com", :password => "pass", :password_confirmation => "pass") @admin.update_attributes(:admin => true) User.create(:login => "user", :email => "user@test.com", :password => "pass", :password_confirmation => "pass")