##// END OF EJS Templates
Merged r10688 from trunk to 2.1-stable...
Toshi MARUYAMA -
r10479:b7e999d1aa84
parent child
Show More
@@ -109,7 +109,8 class IssuesHelperTest < ActionView::TestCase
109 end
109 end
110 end
110 end
111
111
112 def test_with_a_start_date_attribute_should_format_the_current_date
112 context "with a start_date attribute" do
113 should "format the current date" do
113 @detail = JournalDetail.new(
114 @detail = JournalDetail.new(
114 :property => 'attr',
115 :property => 'attr',
115 :old_value => '2010-01-01',
116 :old_value => '2010-01-01',
@@ -121,7 +122,7 class IssuesHelperTest < ActionView::TestCase
121 end
122 end
122 end
123 end
123
124
124 def test_with_a_start_date_attribute_should_format_the_old_date
125 should "format the old date" do
125 @detail = JournalDetail.new(
126 @detail = JournalDetail.new(
126 :property => 'attr',
127 :property => 'attr',
127 :old_value => '2010-01-01',
128 :old_value => '2010-01-01',
@@ -132,6 +133,7 class IssuesHelperTest < ActionView::TestCase
132 assert_match "01/01/2010", show_detail(@detail, true)
133 assert_match "01/01/2010", show_detail(@detail, true)
133 end
134 end
134 end
135 end
136 end
135
137
136 def test_with_a_due_date_attribute_should_with_a_due_date_attribute
138 def test_with_a_due_date_attribute_should_with_a_due_date_attribute
137 @detail = JournalDetail.new(
139 @detail = JournalDetail.new(
General Comments 0
You need to be logged in to leave comments. Login now