Sha256: 955b9dad1084cd211e906e6ae5877d7af679117661b3080e9d73b1fed9db95c9

Contents?: true

Size: 656 Bytes

Versions: 6

Compression:

Stored size: 656 Bytes

Contents

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

After do
  FileUtils.rm_rf(@tmp_refinery_app_root)
end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-0.9.7.15 features/step_definitions/refinery/plugin_generator_steps.rb
refinerycms-0.9.7.14 features/step_definitions/refinery/plugin_generator_steps.rb
refinerycms-0.9.7.13 features/step_definitions/refinery/plugin_generator_steps.rb
refinerycms-0.9.7.11 features/step_definitions/refinery/plugin_generator_steps.rb
refinerycms-0.9.7.10 features/step_definitions/refinery/plugin_generator_steps.rb
refinerycms-0.9.7.9 features/step_definitions/refinery/plugin_generator_steps.rb