title: Rails 3 model valid when it should not be
body: <p>Can someone tell me why my test keeps failing when I try to confirm uniqueness of the email attribute in my model. When I test this in the Rails console, it works correctly, but when I run the unit tests in the console, it fails with this error message:
  <img src="https://i.stack.imgur.com/nJ2pr.png" alt="alt text"></p>
  
  <p>This is my model:
  <img src="https://i.stack.imgur.com/82S3d.png" alt="alt text"></p>
  
  <p>And here is the unit test that keeps failing:
  <img src="https://i.stack.imgur.com/JO2ry.png" alt="alt text"></p>
  
  <p>The reason the unit test keeps failing is that it says that invalid_user is valid when it shouldn't be. Can someone please help me figure out why this is failing -- it's getting on my nerves that I can't figure it out lol?</p>
  
  <p>Thanks!</p>