From 8fe18a4e68b8ca0624b87979cbb0e5072b5cce0a Mon Sep 17 00:00:00 2001 From: Nime Date: Mon, 25 Mar 2019 12:19:09 +0100 Subject: [PATCH] Proposed changes for test prefixesInPostsWithGemTheme --- .travis.yml | 3 +++ Gemfile | 3 +++ test/cases/prefixesInPostsWithGemTheme/Gemfile | 2 +- test/cases/prefixesInPostsWithGemTheme/_config.yml | 2 +- .../prefixesInPostsWithGemTheme/test_prefixes.rb | 2 +- test/theme-gem/Gemfile | 4 ++++ test/theme-gem/_layouts/ontology.html | 13 +++++++++++++ test/theme-gem/theme-gem.gemspec | 13 +++++++++++++ 8 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 test/theme-gem/Gemfile create mode 100644 test/theme-gem/_layouts/ontology.html create mode 100644 test/theme-gem/theme-gem.gemspec diff --git a/.travis.yml b/.travis.yml index 9aade6ed..973c29f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,9 @@ matrix: - rvm: ruby-head before_install: - docker run -p 3030:3030 -d stain/jena-fuseki:latest ./fuseki-server --mem /remote +- cd test/theme-gem +- bundle install +- cd ../.. script: - bundle exec rake test deploy: diff --git a/Gemfile b/Gemfile index fa75df15..40514ac8 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,6 @@ source 'https://rubygems.org' + +gem "theme-gem", :path => 'test/theme-gem' gemspec + diff --git a/test/cases/prefixesInPostsWithGemTheme/Gemfile b/test/cases/prefixesInPostsWithGemTheme/Gemfile index 77abcf66..74fb4acd 100644 --- a/test/cases/prefixesInPostsWithGemTheme/Gemfile +++ b/test/cases/prefixesInPostsWithGemTheme/Gemfile @@ -1,5 +1,5 @@ source 'https://rubygems.org' group :jekyll_plugins do - gem "jekyll-theme-jod", "= 0.1.9" + gem "theme-gem", :path => '../../theme-gem' gem 'jekyll-rdf', :path => '../../../' end diff --git a/test/cases/prefixesInPostsWithGemTheme/_config.yml b/test/cases/prefixesInPostsWithGemTheme/_config.yml index 9af24458..9503dfba 100644 --- a/test/cases/prefixesInPostsWithGemTheme/_config.yml +++ b/test/cases/prefixesInPostsWithGemTheme/_config.yml @@ -1,7 +1,7 @@ baseurl: "" url: "http://example.org/" -theme: jekyll-theme-jod +theme: theme-gem plugins: - jekyll-rdf jekyll_rdf: diff --git a/test/cases/prefixesInPostsWithGemTheme/test_prefixes.rb b/test/cases/prefixesInPostsWithGemTheme/test_prefixes.rb index 50208a47..ecd7b63e 100644 --- a/test/cases/prefixesInPostsWithGemTheme/test_prefixes.rb +++ b/test/cases/prefixesInPostsWithGemTheme/test_prefixes.rb @@ -15,7 +15,7 @@ class TestPrefixes < Test::Unit::TestCase #TODO This test case has to be completed once jekyll runs successfull assert_equal "

My Jekyll RDF Blog

", content[0] - assert_equal "

This is a Blogpost

", content[2] + assert_equal "

This is a Blogpost

", content[1] end end end diff --git a/test/theme-gem/Gemfile b/test/theme-gem/Gemfile new file mode 100644 index 00000000..9e9ddcc3 --- /dev/null +++ b/test/theme-gem/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +gemspec + diff --git a/test/theme-gem/_layouts/ontology.html b/test/theme-gem/_layouts/ontology.html new file mode 100644 index 00000000..25bbc507 --- /dev/null +++ b/test/theme-gem/_layouts/ontology.html @@ -0,0 +1,13 @@ +--- +--- + + + ontology layout + + + + +

My Jekyll RDF Blog

+ {{content}} + + diff --git a/test/theme-gem/theme-gem.gemspec b/test/theme-gem/theme-gem.gemspec new file mode 100644 index 00000000..b3a9d7dc --- /dev/null +++ b/test/theme-gem/theme-gem.gemspec @@ -0,0 +1,13 @@ +Gem::Specification.new do |s| + s.name = 'theme-gem' + s.version = '1.0.0' + s.summary = '' + s.description = '' + s.authors = [''] + s.email = '' + s.files = Dir['**/*'] + s.homepage = '' + s.license = '' + +end +