X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ca213b873f35b6eae8ff13c4d88356f1225eea0f..6f144e8b7dbedab09042f461bd55d357c8896612:/test/helpers/browse_helper_test.rb diff --git a/test/helpers/browse_helper_test.rb b/test/helpers/browse_helper_test.rb index 7878d10e0..e34af0930 100644 --- a/test/helpers/browse_helper_test.rb +++ b/test/helpers/browse_helper_test.rb @@ -23,6 +23,7 @@ class BrowseHelperTest < ActionView::TestCase assert_dom_equal "18", printable_name(nodes(:node_with_name_redacted_version)) assert_dom_equal "Test Node (18, v2)", printable_name(nodes(:node_with_name_current_version), true) assert_dom_equal "18, v1", printable_name(nodes(:node_with_name_redacted_version), true) + assert_dom_equal "3.1415926 (19)", printable_name(current_nodes(:node_with_ref_without_name)) I18n.locale = "pt" @@ -32,6 +33,7 @@ class BrowseHelperTest < ActionView::TestCase assert_dom_equal "18", printable_name(nodes(:node_with_name_redacted_version)) assert_dom_equal "Nó teste (18, v2)", printable_name(nodes(:node_with_name_current_version), true) assert_dom_equal "18, v1", printable_name(nodes(:node_with_name_redacted_version), true) + assert_dom_equal "3.1415926 (19)", printable_name(current_nodes(:node_with_ref_without_name)) I18n.locale = "pt-BR" @@ -41,6 +43,7 @@ class BrowseHelperTest < ActionView::TestCase assert_dom_equal "18", printable_name(nodes(:node_with_name_redacted_version)) assert_dom_equal "Nó teste (18, v2)", printable_name(nodes(:node_with_name_current_version), true) assert_dom_equal "18, v1", printable_name(nodes(:node_with_name_redacted_version), true) + assert_dom_equal "3.1415926 (19)", printable_name(current_nodes(:node_with_ref_without_name)) I18n.locale = "de" @@ -50,6 +53,7 @@ class BrowseHelperTest < ActionView::TestCase assert_dom_equal "18", printable_name(nodes(:node_with_name_redacted_version)) assert_dom_equal "Test Node (18, v2)", printable_name(nodes(:node_with_name_current_version), true) assert_dom_equal "18, v1", printable_name(nodes(:node_with_name_redacted_version), true) + assert_dom_equal "3.1415926 (19)", printable_name(current_nodes(:node_with_ref_without_name)) end def test_link_class