Skip to content

Instantly share code, notes, and snippets.

@mlins
Created July 29, 2008 19:37
Show Gist options
  • Save mlins/3155 to your computer and use it in GitHub Desktop.
Save mlins/3155 to your computer and use it in GitHub Desktop.
require File.dirname(__FILE__) + '/spec_helper.rb'
APP_ROOT = File.dirname(__FILE__) + "/../tmp"
require 'rubygems'
require 'rubigen'
require 'rubigen/scripts/generate'
describe 'LegacyModelGenerator' do
include GeneratorSpecHelper
before do
source = RubiGen::PathSource.new(:component, File.join(File.dirname(__FILE__), "../generators"))
RubiGen::Base.reset_sources
RubiGen::Base.prepend_sources source
@generator = RubiGen::Scripts::Generate.new
end
it "should create the directory" do
@generator.run(['blah'], :generator => 'legacy_model')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment