improved messages fixtures. Additional user fixture (for sending messages between...
[rails.git] / test / unit / user_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class UserTest < Test::Unit::TestCase
4   fixtures :users
5   
6   def test_invalid_with_empty_attributes
7     user = User.new
8     assert !user.valid?
9     assert user.errors.invalid?(:email)
10     assert user.errors.invalid?(:pass_crypt)
11     assert user.errors.invalid?(:display_name)
12     assert user.errors.invalid?(:email)
13     assert !user.errors.invalid?(:home_lat)
14     assert !user.errors.invalid?(:home_lon)
15     assert !user.errors.invalid?(:home_zoom)
16   end
17   
18   
19 end