Project

General

Profile

Defect #19304 » application_helper_test.rb.patch

test case - Pavel Rosický, 2015-03-11 00:26

View differences:

application_helper_test.rb (working copy)
board_url = {:controller => 'boards', :action => 'show', :id => 2, :project_id => 'ecookbook'}
message_url = {:controller => 'messages', :action => 'show', :board_id => 1, :id => 4}
news_url = {:controller => 'news', :action => 'show', :id => 1}
project_url = {:controller => 'projects', :action => 'show', :id => 'subproject1'}
......
def test_pre_content_should_not_parse_wiki_and_redmine_links
raw = <<-RAW
[[CookBook documentation]]
#1
<pre>
[[CookBook documentation]]
#1
</pre>
RAW
......
end
end
def test_should_handle_a_tag_without_attributes
text = '<a>http://example.com</a>'
assert_nil parse_redmine_links(text, nil, nil, nil, true, {})
end
def test_due_date_distance_in_words
to_test = { Date.today => 'Due in 0 days',
Date.today + 1 => 'Due in 1 day',
(2-2/2)