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
Eloy Pérez 3538518b61 Remove maruku 2022-02-27 11:40:23 +01:00
Eloy Pérez baa76e9165 Remove bluecloth 2022-02-27 11:32:40 +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
Vasiliy Yakliushin 1d19193653 Remove outdated code for Tilt 1.x versions support
I found out that Sinatra codebase still contains code for handling
both versions of Tilt (1.x and 2.x), however starting from Sinatra 2.0
the minimally required version of Tilt is 2.0 as well.

This commit removes old code and cleans up a bit how tests for
different markdown engines are generated.
2019-04-28 18:09:06 +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
Yegor Timoschenko e94227e978 Drop a newline for Ruby 1.8 compatibility 2014-07-22 18:24:00 +07:00
Yegor Timoschenko e8ea770953 Make Sinatra compatible with Tilt 2 2014-07-22 18:15:34 +07:00
Konstantin Haase a099dffc35 unloadable library might raise NameError in tilt master 2013-01-26 10:12:16 +01:00
Konstantin Haase 8d6b69c315 fix test name generation for tilt master 2012-12-12 12:42:16 +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
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 4b8aaef0b4 test all mardown engines if available 2011-04-15 11:00:07 +02: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 beea69953b Skip rdiscount tests on JRuby. 2010-09-12 23:21:48 +02:00
Konstantin Haase 970169b1fb Add markdown helper method. Tilt supports markdown 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-11 14:35:29 +02:00