test(jekyll3): Make it all pass under Jekyll v3

This commit is contained in:
Pixelastic 2016-07-08 15:02:13 +02:00
parent 6a9e815603
commit adfb9ce96b
9 changed files with 11 additions and 33 deletions

View File

@ -2,12 +2,7 @@ appraise 'jekyll-v2' do
gem 'jekyll', '~> 2.5'
end
appraise 'jekyll-v3_1_3' do
gem 'jekyll', '3.1.3'
gem 'jekyll-paginate', '~> 1.1.0'
end
appraise 'jekyll-v3_1_6' do
gem 'jekyll', '3.1.6'
appraise 'jekyll-v3' do
gem 'jekyll', '~> 3.0'
gem 'jekyll-paginate', '~> 1.1.0'
end

View File

@ -1,4 +1,4 @@
guard :rspec, cmd: 'appraisal jekyll-v3_1_3 bundle exec rspec --color --format documentation' do
guard :rspec, cmd: 'appraisal jekyll-v3 bundle exec rspec --color --format documentation' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }

View File

@ -1,7 +0,0 @@
guard :rspec, cmd: 'appraisal jekyll-v3_1_6 bundle exec rspec --color --format documentation' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
end
notification :off

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
cd "$(dirname "$BASH_SOURCE")"
./test_v2 && ./test_v3_1_3 && ./test_v3_1_6
./test_v2 && ./test_v3

6
scripts/test_v3 Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname "$BASH_SOURCE")"/..
echo "Testing under Jekyll 3"
COVERAGE=1 appraisal jekyll-v3 bundle exec rspec

View File

@ -1,6 +0,0 @@
#!/usr/bin/env bash
cd "$(dirname "$BASH_SOURCE")"/..
echo "Testing under Jekyll 3.1.3"
COVERAGE=1 appraisal jekyll-v3_1_3 bundle exec rspec

View File

@ -1,6 +0,0 @@
#!/usr/bin/env bash
cd "$(dirname "$BASH_SOURCE")"/..
echo "Testing under Jekyll 3.1.6"
COVERAGE=1 appraisal jekyll-v3_1_6 bundle exec rspec

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
cd "$(dirname "$BASH_SOURCE")"/..
guard --guardfile ./Guardfile_jekyllv3_1_3
guard --guardfile ./Guardfile_jekyllv3

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
cd "$(dirname "$BASH_SOURCE")"/..
guard --guardfile ./Guardfile_jekyllv3_1_6