##// END OF EJS Templates
Fixed a typo in Object daddy...
Eric Davis -
r2896:5f48256c20cc
parent child
Show More
@@ -1,5 +1,5
1 1 class User < Principal
2 generator_for :login, :method => :next_email
2 generator_for :login, :method => :next_login
3 3 generator_for :mail, :method => :next_email
4 4 generator_for :firstname, :method => :next_firstname
5 5 generator_for :lastname, :method => :next_lastname
@@ -25,6 +25,12 class UserTest < ActiveSupport::TestCase
25 25 @jsmith = User.find(2)
26 26 @dlopper = User.find(3)
27 27 end
28
29 test 'object_daddy creation' do
30 User.generate_with_protected!(:firstname => 'Testing connection')
31 User.generate_with_protected!(:firstname => 'Testing connection')
32 assert_equal 2, User.count(:all, :conditions => {:firstname => 'Testing connection'})
33 end
28 34
29 35 def test_truth
30 36 assert_kind_of User, @jsmith
General Comments 0
You need to be logged in to leave comments. Login now