Sha256: 806f8c3e857116ed1edcb9e9d8a24a3969711183612430177909663f5ddbb8e4
Contents?: true
Size: 833 Bytes
Versions: 20
Compression:
Stored size: 833 Bytes
Contents
require File.join(File.dirname(__FILE__), "test_generator_helper.rb") class TestGenerateBuiltinApplication < Test::Unit::TestCase include RubiGen::GeneratorTestHelper def setup bare_setup end def teardown bare_teardown end def test_ruby_app run_generator('ruby_app', [APP_ROOT], sources) assert_generated_file("Rakefile") assert_generated_file("README.txt") assert_generated_file("lib/#{PROJECT_NAME}.rb") assert_generated_file("test/test_helper.rb") assert_generated_file("script/generate") assert_generated_file("script/destroy") assert_generated_module("lib/#{PROJECT_NAME}") end private def sources [RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__),"..", generator_path)) ] end def generator_path "app_generators" end end
Version data entries
20 entries across 20 versions & 1 rubygems