Sha256: bc0ba9ee44cb10db3cda3d08290124b240e75fb3065d80f1009c7e235b94be20

Contents?: true

Size: 620 Bytes

Versions: 10

Compression:

Stored size: 620 Bytes

Contents

Before do
  @theme_generator_root  = File.join(File.dirname(__FILE__), "/../../")
  @tmp_refinery_app_name  = "tmp_refinery_app"
  @tmp_refinery_app_root  = File.join(@theme_generator_root, @tmp_refinery_app_name)
  @app_root = @tmp_refinery_app_root
  Rails::Generator::Base.append_sources(Rails::Generator::PathSource.new(:theme, "#{@theme_generator_root}/generators/"))
end

After do
  FileUtils.rm_rf(@tmp_refinery_app_root)
end

When /^I generate a theme with the name of "([^"]*)"$/ do |name|
  Rails::Generator::Scripts::Generate.new.run(['refinery_theme', name], {:quiet => true, :destination => @app_root})
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
refinerycms-theming-0.9.9 features/step_definitions/theme_generator_steps.rb
refinerycms-theming-0.9.8.2 features/step_definitions/theme_generator_steps.rb
refinerycms-0.9.7.15 features/step_definitions/refinery/theme_generator_steps.rb
refinerycms-0.9.7.14 features/step_definitions/refinery/theme_generator_steps.rb
refinerycms-theming-0.9.8.1 features/step_definitions/theme_generator_steps.rb
refinerycms-theming-0.9.8 features/step_definitions/theme_generator_steps.rb
refinerycms-0.9.7.13 features/step_definitions/refinery/theme_generator_steps.rb
refinerycms-0.9.7.11 features/step_definitions/refinery/theme_generator_steps.rb
refinerycms-0.9.7.10 features/step_definitions/refinery/theme_generator_steps.rb
refinerycms-0.9.7.9 features/step_definitions/refinery/theme_generator_steps.rb