Sha256: 349b9c2a5a7c7c9bed2244a15cfd1f6af01172c6ce72151874ed92f268ba724b
Contents?: true
Size: 851 Bytes
Versions: 4
Compression:
Stored size: 851 Bytes
Contents
require 'fileutils' # Must set before requiring generator libs. TMP_ROOT = File.dirname(__FILE__) + "/tmp" unless defined?(TMP_ROOT) PROJECT_NAME = "myproject" unless defined?(PROJECT_NAME) app_root = File.join(TMP_ROOT, PROJECT_NAME) if defined?(APP_ROOT) APP_ROOT.replace(app_root) else APP_ROOT = app_root end begin require 'rubigen' rescue LoadError require 'rubygems' require 'rubigen' end require 'rubigen/helpers/generator_test_helper' def directory_should_be_created(directory) File.should be_exist(File.join(APP_ROOT, directory)) File.should be_directory(File.join(APP_ROOT, directory)) end def file_should_be_created(file) File.should be_exist(File.join(APP_ROOT, file)) File.should be_file(File.join(APP_ROOT, file)) end def file_should_be_executable(file) File.should be_executable(File.join(APP_ROOT, file)) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
merb-0.5.0 | spec/spec_generator_helper.rb |
merb-0.5.1 | spec/spec_generator_helper.rb |
merb-0.5.2 | spec/spec_generator_helper.rb |
merb-0.5.3 | spec/spec_generator_helper.rb |