Defect #19304 » application_helper_test.rb.patch
application_helper_test.rb (working copy) | ||
---|---|---|
282 | 282 |
board_url = {:controller => 'boards', :action => 'show', :id => 2, :project_id => 'ecookbook'} |
283 | 283 | |
284 | 284 |
message_url = {:controller => 'messages', :action => 'show', :board_id => 1, :id => 4} |
285 |
|
|
285 | ||
286 | 286 |
news_url = {:controller => 'news', :action => 'show', :id => 1} |
287 | 287 | |
288 | 288 |
project_url = {:controller => 'projects', :action => 'show', :id => 'subproject1'} |
... | ... | |
930 | 930 |
def test_pre_content_should_not_parse_wiki_and_redmine_links |
931 | 931 |
raw = <<-RAW |
932 | 932 |
[[CookBook documentation]] |
933 |
|
|
933 | ||
934 | 934 |
#1 |
935 | 935 | |
936 | 936 |
<pre> |
937 | 937 |
[[CookBook documentation]] |
938 |
|
|
938 | ||
939 | 939 |
#1 |
940 | 940 |
</pre> |
941 | 941 |
RAW |
... | ... | |
1239 | 1239 |
end |
1240 | 1240 |
end |
1241 | 1241 | |
1242 |
def test_should_handle_a_tag_without_attributes |
|
1243 |
text = '<a>http://example.com</a>' |
|
1244 |
assert_nil parse_redmine_links(text, nil, nil, nil, true, {}) |
|
1245 |
end |
|
1246 | ||
1242 | 1247 |
def test_due_date_distance_in_words |
1243 | 1248 |
to_test = { Date.today => 'Due in 0 days', |
1244 | 1249 |
Date.today + 1 => 'Due in 1 day', |
- « Previous
- 1
- 2
- Next »