Fix theme gem feature (#6784)

Merge pull request 6784
This commit is contained in:
Frank Taillandier 2018-02-18 16:47:31 +01:00 committed by jekyllbot
parent 31bd301b28
commit 00639f89bd
2 changed files with 1 additions and 3 deletions

View File

@ -216,8 +216,6 @@ end
When(%r!^I decide to build the theme gem$!) do When(%r!^I decide to build the theme gem$!) do
Dir.chdir(Paths.theme_gem_dir) Dir.chdir(Paths.theme_gem_dir)
gemspec = "my-cool-theme.gemspec"
File.write(gemspec, File.read(gemspec).sub("TODO: ", ""))
File.new("_includes/blank.html", "w") File.new("_includes/blank.html", "w")
File.new("_sass/blank.scss", "w") File.new("_sass/blank.scss", "w")
File.new("assets/blank.scss", "w") File.new("assets/blank.scss", "w")

View File

@ -17,7 +17,7 @@ Feature: Building Theme Gems
Then the "assets/blank.scss" file should exist Then the "assets/blank.scss" file should exist
When I run git add . When I run git add .
Then I should get an updated git index Then I should get an updated git index
When I run gem build my-cool-theme.gemspec When I run gem build --force my-cool-theme.gemspec
Then the "./my-cool-theme-0.1.0.gem" file should exist Then the "./my-cool-theme-0.1.0.gem" file should exist
When I run gem unpack my-cool-theme-0.1.0.gem When I run gem unpack my-cool-theme-0.1.0.gem
Then the my-cool-theme-0.1.0 directory should exist Then the my-cool-theme-0.1.0 directory should exist