From f636067661f2cad2c9c97e5526b3631c2e265dd2 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Fri, 30 Sep 2016 15:34:46 +0530 Subject: [PATCH] remove 'css' subdirectory from assets folder --- features/step_definitions.rb | 5 ++--- features/theme_gem.feature | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/features/step_definitions.rb b/features/step_definitions.rb index bf6883af632..b57f5bb8d10 100644 --- a/features/step_definitions.rb +++ b/features/step_definitions.rb @@ -177,8 +177,7 @@ File.write(gemspec, File.read(gemspec).sub("TODO: ", "")) File.new("_includes/blank.html", "w") File.new("_sass/blank.scss", "w") - FileUtils.mkdir_p("assets/css") - File.new("assets/css/blank.scss", "w") + File.new("assets/blank.scss", "w") end # @@ -275,7 +274,7 @@ _layouts/page.html _layouts/post.html _sass/blank.scss - assets/css/blank.scss + assets/blank.scss my-cool-theme.gemspec ) index.each do |file| diff --git a/features/theme_gem.feature b/features/theme_gem.feature index 875a8568ca2..c46d37e040c 100644 --- a/features/theme_gem.feature +++ b/features/theme_gem.feature @@ -14,7 +14,7 @@ Feature: Building Theme Gems When I decide to build the theme gem Then the "_includes/blank.html" file should exist Then the "_sass/blank.scss" file should exist - Then the "assets/css/blank.scss" file should exist + 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 @@ -24,7 +24,7 @@ Feature: Building Theme Gems And the "my-cool-theme-0.1.0/_layouts/default.html" file should exist And the "my-cool-theme-0.1.0/_includes/blank.html" file should exist And the "my-cool-theme-0.1.0/_sass/blank.scss" file should exist - And the "my-cool-theme-0.1.0/assets/css/blank.scss" file should exist + And the "my-cool-theme-0.1.0/assets/blank.scss" file should exist And the my-cool-theme-0.1.0/.git directory should not exist And the "my-cool-theme-0.1.0/.gitignore" file should not exist And the "my-cool-theme-0.1.0/Gemfile" file should not exist