Adds a macro for inserting collapsed text (#12167).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10680 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-10-20 14:49:32 +00:00
1 parent 0faab70be5
commit d29fa4735b
5 files changed
+50

No files matched your search

+5
View File
@@ -185,6 +185,11 @@ class ActiveSupport::TestCase
assert !s.include?(expected), "\"#{expected}\" found in \"#{s}\""
end
def assert_select_in(text, *args, &block)
d = HTML::Document.new(CGI::unescapeHTML(String.new(text))).root
assert_select(d, *args, &block)
end
def assert_mail_body_match(expected, mail)
if expected.is_a?(String)
assert_include expected, mail_body(mail)