aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2011-12-26 13:56:47 +0100
committerPiotr Sarnacki <drogus@gmail.com>2011-12-26 13:56:47 +0100
commit719ba0b6bb0653da3f35ed55557d7c3f034c092a (patch)
tree93b3c7e55d9366ca93496977498cf34d2663fd7d /actionpack/test/template
parent76f0fa6066b78cd8f0e139dff4a7b65c96db5778 (diff)
downloadrails-719ba0b6bb0653da3f35ed55557d7c3f034c092a.tar.gz
rails-719ba0b6bb0653da3f35ed55557d7c3f034c092a.tar.bz2
rails-719ba0b6bb0653da3f35ed55557d7c3f034c092a.zip
Revert "Merge pull request #4154 from nashby/include-blank-date-helper"
This reverts commit 76f0fa6066b78cd8f0e139dff4a7b65c96db5778, reversing changes made to 28cd098d99c52486aecb72aab39105d8abcd52ad.
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 21c9083386..fadfb59572 100644
--- a/actionpack/test/template/date_helper_test.rb
+++ b/actionpack/test/template/date_helper_test.rb
@@ -1581,26 +1581,6 @@ class DateHelperTest < ActionView::TestCase
assert_dom_equal expected, date_select("post", "written_on", :include_blank => true)
end
- def test_date_select_with_stringified_blank
- @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=\"\">blank</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=\"\">blank</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=> 'blank')
- end
-
def test_date_select_with_nil_and_blank_and_order
@post = Post.new