From 3353b85b0eae76bf36ae7c2f7b6adc1863278a8e Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Mon, 15 Oct 2007 06:52:00 +0000 Subject: Sync country_select with ISO 3166 long names. Closes #6872 [abhay, mikong, ruben] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../test/template/form_options_helper_test.rb | 772 ++++++++++++++++++++- 1 file changed, 751 insertions(+), 21 deletions(-) (limited to 'actionpack/test') diff --git a/actionpack/test/template/form_options_helper_test.rb b/actionpack/test/template/form_options_helper_test.rb index 9433a22cc1..e34e36f4e3 100644 --- a/actionpack/test/template/form_options_helper_test.rb +++ b/actionpack/test/template/form_options_helper_test.rb @@ -407,37 +407,767 @@ class FormOptionsHelperTest < Test::Unit::TestCase def test_country_select @post = Post.new @post.origin = "Denmark" - assert_dom_equal( - "", - country_select("post", "origin") - ) + expected_select = <<-COUNTRIES + +COUNTRIES + assert_dom_equal(expected_select[0..-2], country_select("post", "origin")) end def test_country_select_with_priority_countries @post = Post.new @post.origin = "Denmark" - assert_dom_equal( - "", - country_select("post", "origin", ["New Zealand", "Nicaragua"]) - ) + expected_select = <<-COUNTRIES + +COUNTRIES + assert_dom_equal(expected_select[0..-2], country_select("post", "origin", ["New Zealand", "Nicaragua"])) end def test_country_select_with_selected_priority_country @post = Post.new @post.origin = "New Zealand" - assert_dom_equal( - "", - country_select("post", "origin", ["New Zealand", "Nicaragua"]) - ) + expected_select = <<-COUNTRIES + +COUNTRIES + assert_dom_equal(expected_select[0..-2], country_select("post", "origin", ["New Zealand", "Nicaragua"])) end def test_time_zone_select -- cgit v1.2.3