Skip to content

Commit

Permalink
Proposed changes for test prefixesInPostsWithGemTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Simaris committed Mar 25, 2019
1 parent 561e136 commit 8fe18a4
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
source 'https://rubygems.org'


gem "theme-gem", :path => 'test/theme-gem'
gemspec

2 changes: 1 addition & 1 deletion test/cases/prefixesInPostsWithGemTheme/Gemfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion test/cases/prefixesInPostsWithGemTheme/_config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
baseurl: ""
url: "http://example.org/"

theme: jekyll-theme-jod
theme: theme-gem
plugins:
- jekyll-rdf
jekyll_rdf:
Expand Down
2 changes: 1 addition & 1 deletion test/cases/prefixesInPostsWithGemTheme/test_prefixes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TestPrefixes < Test::Unit::TestCase
#TODO This test case has to be completed once jekyll runs successfull

assert_equal "<h1>My Jekyll RDF Blog</h1>", content[0]
assert_equal "<p>This is a Blogpost</p>", content[2]
assert_equal "<p>This is a Blogpost</p>", content[1]
end
end
end
4 changes: 4 additions & 0 deletions test/theme-gem/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gemspec

13 changes: 13 additions & 0 deletions test/theme-gem/_layouts/ontology.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
---
<html>
<head>
<title>ontology layout</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>My Jekyll RDF Blog</h1>
{{content}}
</body>
</html>
13 changes: 13 additions & 0 deletions test/theme-gem/theme-gem.gemspec
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8fe18a4

Please sign in to comment.