Permalink
Browse files

Removed a few puts statements.

  • Loading branch information...
1 parent ba3f5f2 commit beaa75558d354a90908cef83583bdb5d0cf95108 @markbates committed Jan 1, 2009
Showing with 0 additions and 4 deletions.
  1. +0 −3 app/models/user.rb
  2. +0 −1 test/models/user_spec.rb
View
@@ -22,9 +22,6 @@ class User
def self.authenticate(username, password)
user = User.first(:username => username)
return nil if user.nil?
- puts "user.password: #{user.password}"
- puts password.downcase.hexdigest
- puts "user.username: #{user.username}"
user.password == password.downcase.hexdigest ? user : nil
end
View
@@ -32,7 +32,6 @@
describe "authenticate" do
it "should take a username and password and true if it matches what's in the database" do
- puts "@user.username: #{@user.username}"
User.authenticate(@user.username, "password").should_not be_nil
end

0 comments on commit beaa755

Please sign in to comment.