@@ -116,7 +116,9 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 | 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 | 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 | |
@@ -126,7 +128,9 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 | ) | |
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 | end |
|
134 | end | |
131 |
|
135 | |||
132 | context "with a due_date attribute" do |
|
136 | context "with a due_date attribute" do |
General Comments 0
You need to be logged in to leave comments.
Login now