Commit Graph

17 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 c0eb49ea4e According to https://github.com/slim-template/slim/blob/master/CHANGES
`attr_wrapper` has been renamed to `attr_quote`

Fix slim tests to handle this change
2013-09-16 00:25:01 +05:30
Vipul A M 4fa3d9acb0 Just some typos, here and there! 2013-03-14 23:50:51 +05:30
Alexey Muranov ea0d9673ed Tests: 5 template helpers can nest layouts 2013-02-25 19:08:28 +01:00
Konstantin Shabanov 498bad9105 Remove trailing whitespaces 2012-07-18 23:07:24 +04: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 0db16d172f fix tests to work with Slim 1.0.2 2011-09-01 11:54:50 -06:00
Konstantin Haase 87a633db26 fix tests for slim 1.0 2011-08-01 09:52:13 +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
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
Steve Hodgkiss cea255b3f2 Fix slim options test
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
2010-11-06 10:25:47 +01:00
Steve Hodgkiss 495cb35011 Update slim tests
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
2010-11-05 12:00:45 +01:00
Steve Hodgkiss 4b38f3b8be Added slim support
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
2010-10-29 14:27:50 +02:00