Commit 5f48256c authored by Eric Davis's avatar Eric Davis

Fixed a typo in Object daddy

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3010 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 7b77301e
class User < Principal
generator_for :login, :method => :next_email
generator_for :login, :method => :next_login
generator_for :mail, :method => :next_email
generator_for :firstname, :method => :next_firstname
generator_for :lastname, :method => :next_lastname
......
......@@ -25,6 +25,12 @@ class UserTest < ActiveSupport::TestCase
@jsmith = User.find(2)
@dlopper = User.find(3)
end
test 'object_daddy creation' do
User.generate_with_protected!(:firstname => 'Testing connection')
User.generate_with_protected!(:firstname => 'Testing connection')
assert_equal 2, User.count(:all, :conditions => {:firstname => 'Testing connection'})
end
def test_truth
assert_kind_of User, @jsmith
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment