forked from rtomayko/tilt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of building a poor clone of minitest/spec inside test_helper, just use minitest/spec since it is already loaded (by minitest/autorun). This eliminates top-level constants being defined by tilt_template_test.rb. The helper classes used in the file are now anonymous classes assigned to local variables. In addition to switch to mintest/spec, the following fixes are made: 1. Avoid displaying warning when testing deprecated Tilt::ERBTemplate.default_output_variable in the Erubis tests (similar change made previously in the ERB tests). 2. The pandoc tests in tilt_markdown_test.rb are not run if nokogiri is not installed (the tests depend on nokogiri). 3. Avoid loading tilt/sigil if sigil is not installed. 4. Paths adjusted in the markaby tests in order to get them passing in my environment. In my environment, there are test failures if both bluecoth and rdiscount are installed, since they both define the same non-static function (markdown_version). If either is installed, but not both, the related tests pass (this was true both before and after the change to minitest/spec). The diff is best viewed with --color-words -b.
- Loading branch information
1 parent
1ba7821
commit e3e5279
Showing
45 changed files
with
917 additions
and
981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.