aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-28 15:29:59 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-28 15:29:59 -0300
commitdc61ab0be5fb9c1dbca461c485be56ba24ed133c (patch)
treec17c088ced5a3a6ca27b6e8cf9d5511504de82a9 /actionpack/test/template
parentadcc5e11fe5edd2883b6ec4d08ab72180a973155 (diff)
downloadrails-dc61ab0be5fb9c1dbca461c485be56ba24ed133c.tar.gz
rails-dc61ab0be5fb9c1dbca461c485be56ba24ed133c.tar.bz2
rails-dc61ab0be5fb9c1dbca461c485be56ba24ed133c.zip
Remove duplicated test.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/date_helper_test.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb
index ea7c096b97..0cf7885772 100644
--- a/actionpack/test/template/date_helper_test.rb
+++ b/actionpack/test/template/date_helper_test.rb
@@ -1497,26 +1497,6 @@ class DateHelperTest < ActionView::TestCase
assert_dom_equal expected, date_select("post", "written_on", :order=>[:year, :month], :include_blank=>true)
end
- def test_date_select_with_nil_and_blank_and_order
- @post = Post.new
-
- start_year = Time.now.year-5
- end_year = Time.now.year+5
-
- expected = '<input name="post[written_on(3i)]" type="hidden" id="post_written_on_3i"/>' + "\n"
- expected << %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
- expected << "<option value=\"\"></option>\n"
- start_year.upto(end_year) { |i| expected << %(<option value="#{i}">#{i}</option>\n) }
- expected << "</select>\n"
-
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
- expected << "<option value=\"\"></option>\n"
- 1.upto(12) { |i| expected << %(<option value="#{i}">#{Date::MONTHNAMES[i]}</option>\n) }
- expected << "</select>\n"
-
- assert_dom_equal expected, date_select("post", "written_on", :order=>[:year, :month], :include_blank=>true)
- end
-
def test_date_select_cant_override_discard_hour
@post = Post.new
@post.written_on = Date.new(2004, 6, 15)