Created
July 29, 2008 19:37
-
-
Save mlins/3155 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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