12 Commits

Author SHA1 Message Date
Pixelastic
d844281e39 test(fix): Fix failing tests and watch script 2018-04-26 18:38:33 +02:00
Pixelastic
0e5e36e063 test(guard): Correctly run TDD when editing overwrites files 2018-04-26 17:27:25 +02:00
Pixelastic
8544dde79a test(integration): Check that files are not deleted from _site 2018-03-01 17:06:50 +01:00
Pixelastic
7ef8296e6f Only reload changed tests, not the whole suite 2017-11-10 18:00:30 +01:00
Pixelastic
b05916f6b1 Adding Configurator and FileBrowser + tests 2017-11-09 17:29:01 +01:00
Pixelastic
591067ce6f Add test watching 2017-11-08 10:29:55 +01:00
Pixelastic
e4daad6762 fix(dependencies): Improve TDD watchers on various jekyll versions 2016-03-08 14:24:44 +01:00
Pixelastic
7005983727 feat(error): Display human error when API key ACL is not enough 2016-01-12 15:31:05 +01:00
Pixelastic
bee8926d1e fix(v3): Stop throwing deprecation warning when using Jekyll v3
This should fix the deprecation warnings the plugin is throwing with Jekyll 3.0.

```
Deprecation: Document#slug is now a key in the #data hash.
    Called by /home/tim/.rvm/gems/ruby-2.2.3/gems/algoliasearch-jekyll-0.5.3/lib/record_extractor.rb:35:in `metadata'.
Deprecation: Document#tags is now a key in the #data hash.
    Called by /home/tim/.rvm/gems/ruby-2.2.3/gems/algoliasearch-jekyll-0.5.3/lib/record_extractor.rb:53:in `tags'.
```

I've fighted hard, but we can now launch the tests for both Jekyll 2.5 and Jekyll 3.0 (everything is in `./scripts`), and write tests conditionnaly for one version or the other.

The tool to do that is [appraisal](https://github.com/thoughtbot/appraisal) that lets you define several Gemfiles, and you then have to prefix all your `bundle` commands with `appraisal` (so, yeah, you end up with silly `appraisal bundle exec rake stuff`).

I had to duplicate the fixtures, for each version, which explain the large number of file changed, but this is just a copy paste (except the `_config.yml` that is different for each jekyll version)
2016-01-11 09:47:58 +01:00
Pixelastic
aa3e865e2b test(extractor): Add tests for metadata 2015-07-02 15:47:56 +02:00
Pixelastic
129455d409 fix(test): Display test as documentation 2015-07-02 11:27:57 +02:00
Pixelastic
93802a149c test(guard): Add guard for better TDD workflow 2015-07-02 11:13:41 +02:00