diff --git a/test/helper.rb b/test/helper.rb index 2220ebca..7d969732 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -53,6 +53,10 @@ class Test::Unit::TestCase response.body.to_s end + def assert_body(value) + assert_equal value.strip, body.strip + end + # Delegate other missing methods to response. def method_missing(name, *args, &block) if response && response.respond_to?(name) diff --git a/test/rdoc_test.rb b/test/rdoc_test.rb index 8762e3db..93a71a5d 100644 --- a/test/rdoc_test.rb +++ b/test/rdoc_test.rb @@ -15,13 +15,13 @@ class RdocTest < Test::Unit::TestCase it 'renders inline rdoc strings' do rdoc_app { rdoc '= Hiya' } assert ok? - assert_equal "