Sha256: 77d1c87a6ca73718e44a5bede3688b5fda1f9be0d3ecc971596d32fa747f5418
Contents?: true
Size: 899 Bytes
Versions: 5
Compression:
Stored size: 899 Bytes
Contents
### This is necessary to fake Rails into not throwing an error. # ...don't ask. class Configuration attr_reader :plugin_paths def initialize @plugin_paths = [] end end module Rails def self.configuration Configuration.new end end begin require File.dirname(__FILE__) + '/test_helper' rescue LoadError require 'test/unit' end 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 if defined?(RAILS_ROOT) RAILS_ROOT.replace(app_root) else RAILS_ROOT = app_root end begin require 'rubigen' rescue LoadError require 'rubygems' require 'rubigen' end require 'rubigen/helpers/generator_test_helper'
Version data entries
5 entries across 5 versions & 1 rubygems