@@ -117,25 +117,27 @@ def test_issues_destroy_confirmation_message_with_issues_that_share_descendants
117
117
end
118
118
119
119
test 'show_detail with a start_date attribute should format the dates' do
120
- detail = JournalDetail . new (
121
- :property => 'attr' ,
122
- :old_value => '2010-01-01' ,
123
- :value => '2010-01-31' ,
124
- :prop_key => 'start_date'
125
- )
120
+ detail =
121
+ JournalDetail . new (
122
+ :property => 'attr' ,
123
+ :old_value => '2010-01-01' ,
124
+ :value => '2010-01-31' ,
125
+ :prop_key => 'start_date'
126
+ )
126
127
with_settings :date_format => '%m/%d/%Y' do
127
128
assert_match "01/31/2010" , show_detail ( detail , true )
128
129
assert_match "01/01/2010" , show_detail ( detail , true )
129
130
end
130
131
end
131
132
132
133
test 'show_detail with a due_date attribute should format the dates' do
133
- detail = JournalDetail . new (
134
- :property => 'attr' ,
135
- :old_value => '2010-01-01' ,
136
- :value => '2010-01-31' ,
137
- :prop_key => 'due_date'
138
- )
134
+ detail =
135
+ JournalDetail . new (
136
+ :property => 'attr' ,
137
+ :old_value => '2010-01-01' ,
138
+ :value => '2010-01-31' ,
139
+ :prop_key => 'due_date'
140
+ )
139
141
with_settings :date_format => '%m/%d/%Y' do
140
142
assert_match "01/31/2010" , show_detail ( detail , true )
141
143
assert_match "01/01/2010" , show_detail ( detail , true )
0 commit comments