@@ -109,7 +109,8 class IssuesHelperTest < ActionView::TestCase | |||
|
109 | 109 | end |
|
110 | 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 | 114 | @detail = JournalDetail.new( |
|
114 | 115 | :property => 'attr', |
|
115 | 116 | :old_value => '2010-01-01', |
@@ -121,7 +122,7 class IssuesHelperTest < ActionView::TestCase | |||
|
121 | 122 | end |
|
122 | 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 | 126 | @detail = JournalDetail.new( |
|
126 | 127 | :property => 'attr', |
|
127 | 128 | :old_value => '2010-01-01', |
@@ -132,6 +133,7 class IssuesHelperTest < ActionView::TestCase | |||
|
132 | 133 | assert_match "01/01/2010", show_detail(@detail, true) |
|
133 | 134 | end |
|
134 | 135 | end |
|
136 | end | |
|
135 | 137 | |
|
136 | 138 | def test_with_a_due_date_attribute_should_with_a_due_date_attribute |
|
137 | 139 | @detail = JournalDetail.new( |
General Comments 0
You need to be logged in to leave comments.
Login now