diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-22 08:42:32 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-22 08:42:32 +0000 |
commit | 4a3f038595922dc5fef9f3541363a16078a5ace9 (patch) | |
tree | b27790f412ad9814ec3edcf2077cc3faa14dacfd /test/unit/principal_test.rb | |
parent | 1c31e32df737a6289486b69d971bba44785ac166 (diff) | |
download | redmine-4a3f038595922dc5fef9f3541363a16078a5ace9.tar.gz redmine-4a3f038595922dc5fef9f3541363a16078a5ace9.zip |
Use create!.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9468 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/principal_test.rb')
-rw-r--r-- | test/unit/principal_test.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/principal_test.rb b/test/unit/principal_test.rb index bc7e9605b..268e12511 100644 --- a/test/unit/principal_test.rb +++ b/test/unit/principal_test.rb @@ -49,19 +49,19 @@ class PrincipalTest < ActiveSupport::TestCase context "#like" do setup do - Principal.generate!(:login => 'login') - Principal.generate!(:login => 'login2') + Principal.create!(:login => 'login') + Principal.create!(:login => 'login2') - Principal.generate!(:firstname => 'firstname') - Principal.generate!(:firstname => 'firstname2') + Principal.create!(:firstname => 'firstname') + Principal.create!(:firstname => 'firstname2') - Principal.generate!(:lastname => 'lastname') - Principal.generate!(:lastname => 'lastname2') + Principal.create!(:lastname => 'lastname') + Principal.create!(:lastname => 'lastname2') - Principal.generate!(:mail => 'mail@example.com') - Principal.generate!(:mail => 'mail2@example.com') + Principal.create!(:mail => 'mail@example.com') + Principal.create!(:mail => 'mail2@example.com') - @palmer = Principal.generate!(:firstname => 'David', :lastname => 'Palmer') + @palmer = Principal.create!(:firstname => 'David', :lastname => 'Palmer') end should "search login" do |