Sha256: a67fb5bd2e179094e99a94c82b9d4b4cfb5080c3c1b66ab05fca5874521b7575

Contents?: true

Size: 668 Bytes

Versions: 9

Compression:

Stored size: 668 Bytes

Contents

require File.expand_path("../../../lib/generators/refinery_engine/refinery_engine_generator", __FILE__)

Before do
  @engine_generator_root  = File.expand_path('../../../', __FILE__)
  @tmp_refinery_app_name  = "tmp_refinery_app"
  require 'tmpdir'
  @tmp_refinery_app_root  = File.join(Dir.tmpdir, @tmp_refinery_app_name)
  @app_root = @tmp_refinery_app_root
end

After do
  FileUtils.rm_rf(@tmp_refinery_app_root)
end

When /^I generate an engine with the arguments of "([^\"]*)"$/ do |arguments|
  generator = RefineryEngineGenerator.new(arguments.split(" "))
  generator.destination_root = @app_root
  generator.options = {:quiet => true}
  generator.generate
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-generators-1.0.4 features/step_definitions/engine_generator_steps.rb
refinerycms-generators-1.0.3 features/step_definitions/engine_generator_steps.rb
refinerycms-generators-1.0.2 features/step_definitions/engine_generator_steps.rb
refinerycms-generators-1.0.1 features/step_definitions/engine_generator_steps.rb
refinerycms-generators-1.0.0 features/step_definitions/engine_generator_steps.rb
refinerycms-generators-0.9.9.6 features/step_definitions/engine_generator_steps.rb
refinerycms-generators-0.9.9.5 features/step_definitions/engine_generator_steps.rb
refinerycms-generators-0.9.9.4 features/step_definitions/engine_generator_steps.rb
refinerycms-generators-0.9.9.3 features/step_definitions/engine_generator_steps.rb