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