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