##// END OF EJS Templates
use date_format setting at unit IssuesHelperTest test_with_a_start_date_attribute_*...
Toshi MARUYAMA -
r10074:4bca584024f5
parent child
Show More
@@ -116,7 +116,9 class IssuesHelperTest < ActionView::TestCase
116 116 :value => '2010-01-31',
117 117 :prop_key => 'start_date'
118 118 )
119 assert_match "01/31/2010", show_detail(@detail, true)
119 with_settings :date_format => '%m/%d/%Y'do
120 assert_match "01/31/2010", show_detail(@detail, true)
121 end
120 122 end
121 123
122 124 def test_with_a_start_date_attribute_format_the_old_date
@@ -126,7 +128,9 class IssuesHelperTest < ActionView::TestCase
126 128 :value => '2010-01-31',
127 129 :prop_key => 'start_date'
128 130 )
129 assert_match "01/01/2010", show_detail(@detail, true)
131 with_settings :date_format => '%m/%d/%Y'do
132 assert_match "01/01/2010", show_detail(@detail, true)
133 end
130 134 end
131 135
132 136 context "with a due_date attribute" do
General Comments 0
You need to be logged in to leave comments. Login now