Commit Graph

18 Commits

Author SHA1 Message Date
Eloy Pérez f10e571f4d
Minor cleaning setting up tests (#1875)
We use minitest for Sinatra's test suite but we weren't using its rake task. I've updated the Rakefile to require and use Minitest default rake task to simplify.

Another change is to rename the `helper.rb` file to `test_helper.rb` because I think that name is used more in the community and require it directly without calling `File.expand_path`
2023-02-12 19:09:35 +01:00
Olle Jonsson 1559a20b06 refactor: use __dir__ in File.expand_path
__dir__ is nice, and available.
2022-02-02 15:58:11 -05:00
Olle Jonsson 330d9b4364
Ruby 2: use __dir__ instead of File.dirname(__FILE__) (#1341) 2020-03-13 17:20:04 -04:00
Horaciob 4c0ec16648 deleting unnecesary to_s 2017-06-25 11:19:22 +02:00
Vipul A M 23c2e197c8 - Removed test-unit dependency
- updated minitest to 5.0
- Removed Test::Unit::TestCase and started using Minitest::Test instead
- Fixed usage of assert_raise
- Fixed usage of refute_nil
- Fixed and removed usage of assert_nothing_raised
2015-01-11 01:00:47 +05:30
Vipul A M b369e454f0 https://github.com/rdoc/rdoc/pull/329 changed page-top link from `documentation` to `top`.
Since we rely on both the rdoc gem and bundled versions, add regex to allow both documentation or top in the result string.
2015-01-01 19:42:43 +05:30
Vipul A M af0db3fa15 Fix param ambiguity 2013-07-02 20:58:25 +05:30
Bohuslav Kabrda 11f90fd295 Fix test failures with RDoc 4 broken by commit rdoc/rdoc@7f0033d 2013-03-07 15:36:38 +01:00
Zachary Scott 46e8bd67b3 First pass at block styles for tests
TODO:
* test/routing_test.rb
* test/settings_test.rb
2012-05-21 17:21:59 -04:00
Tim Felgentreff 3d78b5ee6c fix rdoc tests for 3.10 2011-10-10 19:50:59 -07:00
Tim Felgentreff dc1ff18670 Update rdoc test to work with RDoc 3.10 2011-10-10 18:57:14 -07:00
Konstantin Haase 5044802450 fix rdoc test, closes #270 2011-05-11 22:53:03 +02:00
Konstantin Haase e001d62669 adjust require lines for test helper, so it also works properly on 1.9.2 2011-05-11 09:44:02 +02:00
Konstantin Haase a9d89d28a5 add markdown, rdoc and textile nesting tests 2011-04-15 11:14:23 +02:00
Konstantin Haase 7c186a0d48 require "rdoc" -> require "rdoc/markup/to_html"
this file is not loaded but require "rdoc", moreover, we only need markup
2011-02-26 10:44:09 +01:00
elij e16bc71590 Explicitly handle the exception for failed loading.
The exception handler was only catching RuntimeError, which probably
should not be caught by the harness (so a test fails), when it should
have been catching LoadError exceptions (module not present to test).

Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
2011-01-31 10:34:41 +01:00
Konstantin Haase 9192432196 fix tests for rdoc 3.0 2010-12-23 12:11:57 +01:00
Konstantin Haase c248dbac9d Add rdoc helper method. Tilt supports RDoc for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-12 13:59:00 +02:00