##// 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,8 +116,10 class IssuesHelperTest < ActionView::TestCase
116 :value => '2010-01-31',
116 :value => '2010-01-31',
117 :prop_key => 'start_date'
117 :prop_key => 'start_date'
118 )
118 )
119 with_settings :date_format => '%m/%d/%Y'do
119 assert_match "01/31/2010", show_detail(@detail, true)
120 assert_match "01/31/2010", show_detail(@detail, true)
120 end
121 end
122 end
121
123
122 def test_with_a_start_date_attribute_format_the_old_date
124 def test_with_a_start_date_attribute_format_the_old_date
123 @detail = JournalDetail.new(
125 @detail = JournalDetail.new(
@@ -126,8 +128,10 class IssuesHelperTest < ActionView::TestCase
126 :value => '2010-01-31',
128 :value => '2010-01-31',
127 :prop_key => 'start_date'
129 :prop_key => 'start_date'
128 )
130 )
131 with_settings :date_format => '%m/%d/%Y'do
129 assert_match "01/01/2010", show_detail(@detail, true)
132 assert_match "01/01/2010", show_detail(@detail, true)
130 end
133 end
134 end
131
135
132 context "with a due_date attribute" do
136 context "with a due_date attribute" do
133 should "format the current date" do
137 should "format the current date" do
General Comments 0
You need to be logged in to leave comments. Login now