mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 23:06:05 +01:00
Fixed Stack level too deep error when calling #find_name_by_reflection for missing record.
git-svn-id: http://svn.redmine.org/redmine/trunk@14002 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -295,4 +295,8 @@ class IssuesHelperTest < ActionView::TestCase
|
||||
assert_equal "Precedes deleted (Issue ##{issue.id})", show_detail(detail, true)
|
||||
assert_equal "<strong>Precedes</strong> deleted (<i>Issue ##{issue.id}</i>)", show_detail(detail, false)
|
||||
end
|
||||
|
||||
def test_find_name_by_reflection_should_return_nil_for_missing_record
|
||||
assert_nil find_name_by_reflection('status', 99)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user