Project

General

Profile

« Previous | Next » 

Revision ea15e866

Added by Lucas Tolchinsky over 14 years ago

  • ID ea15e86609cb379e85cc2e7321f34c3ab80ad37c

removed trailing spaces in user_test and the initial "Replace this with..." comment

View differences:

test/unit/user_test.rb
u = User.new :mail => "foo@bar.com"
assert !u.save
end
test "should have mail" do
u = User.new :login => "foo"
assert !u.save
assert !u.save
end
test "login should be unique" do
u = User.create :login => "foo", :mail => "foo@bar.com"
u2 = User.new :login => u.login, :mail => u.mail
assert !u2.valid?
end
test "mail should have format" do
u = User.create :login => "foo", :mail => "bar"
assert !u.valid?
end
# TODO; Authentication should be tested too.
end

Also available in: Unified diff