Merged r2894 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2996 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -37,7 +37,19 @@ class AccountControllerTest < Test::Unit::TestCase
|
||||
assert_template 'show'
|
||||
assert_not_nil assigns(:user)
|
||||
end
|
||||
|
||||
def test_show_should_not_fail_when_custom_values_are_nil
|
||||
user = User.find(2)
|
||||
|
||||
# Create a custom field to illustrate the issue
|
||||
custom_field = CustomField.create!(:name => 'Testing', :field_format => 'text')
|
||||
custom_value = user.custom_values.build(:custom_field => custom_field).save!
|
||||
|
||||
get :show, :id => 2
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
|
||||
def test_show_inactive
|
||||
get :show, :id => 5
|
||||
assert_response 404
|
||||
|
||||
Reference in New Issue
Block a user