From 00639f89bd86d4027a2e818062d096baf477a5e8 Mon Sep 17 00:00:00 2001 From: Frank Taillandier Date: Sun, 18 Feb 2018 16:47:31 +0100 Subject: [PATCH] Fix theme gem feature (#6784) Merge pull request 6784 --- features/step_definitions.rb | 2 -- features/theme_gem.feature | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/features/step_definitions.rb b/features/step_definitions.rb index 97b9ffaa..f52c2b44 100644 --- a/features/step_definitions.rb +++ b/features/step_definitions.rb @@ -216,8 +216,6 @@ end When(%r!^I decide to build the theme gem$!) do 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("_sass/blank.scss", "w") File.new("assets/blank.scss", "w") diff --git a/features/theme_gem.feature b/features/theme_gem.feature index c46d37e0..621acfa3 100644 --- a/features/theme_gem.feature +++ b/features/theme_gem.feature @@ -17,7 +17,7 @@ Feature: Building Theme Gems Then the "assets/blank.scss" file should exist When I run git add . 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 When I run gem unpack my-cool-theme-0.1.0.gem Then the my-cool-theme-0.1.0 directory should exist