summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-01 18:24:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-01 18:24:33 +0000
commit733fef458c5c0aa7b0d3231f849dfc3245143ddb (patch)
treec2cc4cdb0adb3fa640f963a2dcf460130b16c232 /test/unit
parent121ce2a3900cd9fcb67df7fbcb7bd660d3251f79 (diff)
downloadredmine-733fef458c5c0aa7b0d3231f849dfc3245143ddb.tar.gz
redmine-733fef458c5c0aa7b0d3231f849dfc3245143ddb.zip
Replaced group[lastname] parameter with group[name].
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9745 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/group_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb
index 0351dd671..3d7c2da26 100644
--- a/test/unit/group_test.rb
+++ b/test/unit/group_test.rb
@@ -31,8 +31,10 @@ class GroupTest < ActiveSupport::TestCase
include Redmine::I18n
def test_create
- g = Group.new(:lastname => 'New group')
+ g = Group.new(:name => 'New group')
assert g.save
+ g.reload
+ assert_equal 'New group', g.name
end
def test_blank_name_error_message