Commit Graph

85 Commits

Author SHA1 Message Date
Parker Moore
7cf5f51ca2 Enforce Style/FrozenStringLiteralComment. (#6265)
Merge pull request 6265
2017-08-03 21:27:32 -04:00
Bogdan
8f1959bbc4 Define path with __dir__ (#6087)
Merge pull request 6087
2017-07-25 19:20:20 -04:00
Frank Taillandier
5ed22d0b3e Now we must execute SimpleCov 2017-01-19 22:39:39 +01:00
jekyllbot
477b2f0f3e Merge pull request #5640 from jekyll/jekyll-utils-exec
Merge pull request 5640
2017-01-18 14:15:11 -05:00
Parker Moore
ad8fb9b927 Add theme_dir() helper func 2017-01-17 16:19:26 -05:00
jekyllbot
71dab94a97 Merge pull request #5779 from jekyll/fix-flaky-plugins-path-test
Merge pull request 5779
2017-01-16 17:03:41 -05:00
Parker Moore
aa7e47a30d Remove calls to Dir.chdir without a block.
This removes the necessity to initialize Jekyll::Configuration::DEFAULTS manually.
2017-01-16 16:43:25 -05:00
Parker Moore
567a7952dd test/helper: fix flaky plugin path test by initializing Configuration::DEFAULTS at start of tests
If we do a Dir.chdir before Configuration::DEFAULTS is initialized, then its source and destination values will not be what we expect.
We expect that Dir.pwd should stay as the root of the repo but there are some errant calls to Dir.chdir without a block that are still
not yet cleaned up.
2017-01-16 16:25:09 -05:00
Pat Hawks
1d885911bc Rubocop: Require consistent comma in multiline literals 2017-01-12 17:52:29 -06:00
Parker Moore
6e2449b482 Write Jekyll::Utils::Exec.run for running shell commands. 2016-12-07 17:38:22 -08:00
Parker Moore
f27eb77d0b Add failing test for permalink templates with trailing underscores 2016-11-11 16:30:53 -08:00
Ashwin Maroli
1852e54d10 add and use 'skip_if_windows' helper method
- add a new helper method to skip tests if on Windows platform
  - skip those tests that fail due to lack of support for symlinked files
    on Windows.
2016-11-04 09:20:46 +05:30
Parker Moore
aa86651650 Add absolute_url and relative_url filters. 2016-09-22 14:16:00 -07:00
jekyllbot
cf810a88fa Merge pull request #4942 from pathawks/fp/configuration-from-permalink-fix
Merge pull request 4942
2016-05-25 15:42:05 -07:00
Pat Hawks
cc0c5ea19e Rubocop fixes 2016-05-24 19:01:35 -05:00
Parker Moore
37b93f10dd Add missing 'end' to test/helper.rb 2016-05-24 18:47:15 -05:00
Parker Moore
dbcbf809ff Refactor some tests to prevent manipulation of Jekyll::Config::DEFAULTS 2016-05-24 18:47:04 -05:00
Parker Moore
c69ca4c11e Test#build_configs shouldn't overwrite default collections 2016-05-24 18:40:19 -05:00
Parker Moore
3896f6d5d8 Use require_relative 2016-05-24 17:32:33 -05:00
Brint O'Hearn
aad587ca2f Rubocop fixes for test/helper.rb 2016-05-16 19:26:53 -05:00
Jordon Bedwell
f80321ecac Update Rake.
Update Rake and disable verbosity when running the specs because we have some
deprecated usage (for now -- however, see: jekyll/jekyll#4719) and because
Rouge, and Liquid throw out thousands (probably hyperbolic) of warnigns when the
specs are being ran.  We need upstream to fix their problems while we fix ours
or we'll all have a bad day, not that we aren't already.
2016-03-27 22:22:35 -05:00
Parker Moore
5cf5ce979f test: add assert_exist and refute_exist 2016-01-18 13:42:03 -08:00
Pat Hawks
ba017ebb97 Remove old Fixme note 2016-01-11 22:32:04 -08:00
Jordon Bedwell
55423e344e Add CodeClimate to the testing stuff. 2016-01-10 11:18:46 -06:00
Jordon Bedwell
3432fd2c2d Modernize Kramdown for Markdown converter. 2015-12-04 08:09:08 -06:00
Alfred Xing
2a040fd527 Rename incremental regeneration flag
Rename from `full_rebuild` to disable, to `incremental` to enable
2015-10-26 14:20:44 -07:00
Parker Moore
b89f943bf2 collections: posts as collection 2015-10-26 00:29:14 -07:00
Matt Rogers
ff504a39ba Ignore .bundle when generating test coverage
Fix the code coverage reporting when using `.bundle` to store my gems in
by having SimpleCov ignore that directory. Use of `.bundle` to store my
gems consolidates things since since that directory also holds the
bundler config file. It also keeps a `vendor` directory out of the
project tree for non-Rails projects.  Simplecov was not ignoring that
directory though, which meant that the code coverage numbers I were
seeing locally were wrong (and very frightening). With this change, all
is right with the world once again. 😃
2015-10-15 20:59:34 -05:00
Jordon Bedwell
f054bae503 Add support for JRuby, it was easier than assumed. 2015-05-15 07:10:22 -05:00
Jordon Bedwell
f26cdd8da4 Create #mock_expects that goes directly to RSpec Mocks. 2015-04-14 14:20:55 -05:00
Arthur Neves
67ba8ad0cb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
Parker Moore
f1edf9e692 Add minitest/profile to profile 10 slowest tests 2015-03-01 00:36:40 -08:00
Parker Moore
fbe52bca85 Move simplecov_custom_profile to test/ & gate with TRAVIS env 2015-03-01 00:36:20 -08:00
Fabian Rodriguez
cd7b3f54f1 Removes the following deprecation warning:
'method adapters is deprecated. use profiles instead'

This warning was showing up because the project was using
the gem 'simplecov-gem-adapter' which uses the old syntax.

* Remove the gem dependency
* Add a profile with the same setup that the gem has
2015-02-27 23:01:48 -02:00
Parker Moore
7ad0597bff Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
Parker Moore
52c4ce2a5a Finish of moving the unit tests over to Minitest 2015-02-21 00:31:07 -08:00
Parker Moore
d2b19963c1 Move from Test::Unit to Minitest. 2015-02-20 13:34:51 -08:00
Alfred Xing
29aabd84bd Fix up tests 2015-01-19 16:23:51 -08:00
Parker Moore
9d547f74cc Make all the tests happy. 2015-01-17 16:52:12 -08:00
Parker Moore
c1da91cf5c Start removing mentions of Textile. 2015-01-17 16:51:28 -08:00
Parker Moore
a6781bda30 Always, always rebuild (by default) in tests. 2014-12-29 00:37:16 -05:00
Parker Moore
7227ad4ebb Merge pull request #3116 from alfredxing/incremental 2014-12-22 08:57:50 -05:00
Matt Rogers
f8af94431d Fix coverage reporting for built-in bundles 2014-12-02 20:50:39 -06:00
Alfred Xing
fe6bfc6f1b Fix failing tests 2014-11-21 22:12:21 -08:00
Parker Moore
5a350788e7 Test JEKYLL_NO_BUNDLER_REQUIRE. 2014-11-05 21:04:34 -08:00
Parker Moore
8d02c5cd94 Allow override of destination in site_configuration in tests 2014-11-03 22:16:48 -08:00
Anatol Broder
df334e809e Remove coverage reporting with Coveralls 2014-06-09 02:35:55 +02:00
Parker Moore
4c55c77c04 Using stderr instead of stdout 2014-05-06 13:15:19 -04:00
Parker Moore
7787d64bce Rename those Utils functions. 2014-03-04 15:52:05 -05:00
Parker Moore
e2af1b547b Extract core extensions into a Utils module
Fixes #2111
2014-03-03 22:13:03 -05:00