* [gentoo-commits] gentoo-x86 commit in dev-ruby/sinatra/files: sinatra-1.3.1-rdoc-tests.patch sinatra-1.3.1-rdoc-require.patch
@ 2011-12-28 12:32 Hans de Graaff (graaff)
0 siblings, 0 replies; only message in thread
From: Hans de Graaff (graaff) @ 2011-12-28 12:32 UTC (permalink / raw
To: gentoo-commits
graaff 11/12/28 12:32:35
Added: sinatra-1.3.1-rdoc-tests.patch
sinatra-1.3.1-rdoc-require.patch
Log:
Version bump. Add ruby19. Drop arches due to new dependency, bug 396291.
(Portage version: 2.1.10.41/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-ruby/sinatra/files/sinatra-1.3.1-rdoc-tests.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/sinatra/files/sinatra-1.3.1-rdoc-tests.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/sinatra/files/sinatra-1.3.1-rdoc-tests.patch?rev=1.1&content-type=text/plain
Index: sinatra-1.3.1-rdoc-tests.patch
===================================================================
commit 3d78b5ee6c18d5776ddf9c7d148158a3604f80e6
Author: Tim Felgentreff <timfelgentreff@gmail.com>
Date: Mon Oct 10 19:50:59 2011 -0700
fix rdoc tests for 3.10
diff --git a/test/helper.rb b/test/helper.rb
index 1f061d4..dc8fd40 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -69,7 +69,11 @@ class Test::Unit::TestCase
end
def assert_body(value)
- assert_equal value.lstrip.gsub(/\s*\n\s*/, ""), body.lstrip.gsub(/\s*\n\s*/, "")
+ if value.respond_to? :to_str
+ assert_equal value.lstrip.gsub(/\s*\n\s*/, ""), body.lstrip.gsub(/\s*\n\s*/, "")
+ else
+ assert_match value, body
+ end
end
def assert_status(expected)
diff --git a/test/rdoc_test.rb b/test/rdoc_test.rb
index d28b16a..0d58856 100644
--- a/test/rdoc_test.rb
+++ b/test/rdoc_test.rb
@@ -16,13 +16,13 @@ class RdocTest < Test::Unit::TestCase
it 'renders inline rdoc strings' do
rdoc_app { rdoc '= Hiya' }
assert ok?
- assert_body "<h1>Hiya</h1>"
+ assert_body /<h1[^>]*>Hiya<\/h1>/
end
it 'renders .rdoc files in views path' do
rdoc_app { rdoc :hello }
assert ok?
- assert_body "<h1>Hello From RDoc</h1>"
+ assert_body /<h1[^>]*>Hello From RDoc<\/h1>/
end
it "raises error if template not found" do
1.1 dev-ruby/sinatra/files/sinatra-1.3.1-rdoc-require.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/sinatra/files/sinatra-1.3.1-rdoc-require.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/sinatra/files/sinatra-1.3.1-rdoc-require.patch?rev=1.1&content-type=text/plain
Index: sinatra-1.3.1-rdoc-require.patch
===================================================================
commit dc1ff1867096c5ef036c7aff9b55e4e72e4eaa6a
Author: Tim Felgentreff <timfelgentreff@gmail.com>
Date: Mon Oct 10 18:57:14 2011 -0700
Update rdoc test to work with RDoc 3.10
diff --git a/test/rdoc_test.rb b/test/rdoc_test.rb
index ff547bc..d28b16a 100644
--- a/test/rdoc_test.rb
+++ b/test/rdoc_test.rb
@@ -1,6 +1,7 @@
require File.expand_path('../helper', __FILE__)
begin
+require 'rdoc'
require 'rdoc/markup/to_html'
class RdocTest < Test::Unit::TestCase
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-28 12:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 12:32 [gentoo-commits] gentoo-x86 commit in dev-ruby/sinatra/files: sinatra-1.3.1-rdoc-tests.patch sinatra-1.3.1-rdoc-require.patch Hans de Graaff (graaff)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox