From 1fb4dce2f5b1d9618ef737469a3477eb1cbf93ef Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Fri, 23 Sep 2016 23:21:10 +0530 Subject: [PATCH] add a step to check contents in assets directory --- features/step_definitions.rb | 2 ++ features/theme_gem.feature | 1 + 2 files changed, 3 insertions(+) diff --git a/features/step_definitions.rb b/features/step_definitions.rb index e993b4f9..7d490cda 100644 --- a/features/step_definitions.rb +++ b/features/step_definitions.rb @@ -177,6 +177,8 @@ When(%r!^I decide to build the theme gem$!) do 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") end # diff --git a/features/theme_gem.feature b/features/theme_gem.feature index b79d9c0b..d36c71ac 100644 --- a/features/theme_gem.feature +++ b/features/theme_gem.feature @@ -25,6 +25,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/.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