Sha256: b007361439b46a203abfb8e9a6503d84923d14b6b355a2d99df8fbc2eba03780
Contents?: true
Size: 666 Bytes
Versions: 3
Compression:
Stored size: 666 Bytes
Contents
# encoding: UTF-8 # Generators register themself on the CLI module require "test_helper" require "test_construct" require File.dirname(__FILE__) + "/../../helpers/cli" module Roger # Test Roger Generators class GeneratoGeneratorTest < ::Test::Unit::TestCase include TestConstruct::Helpers include TestCli def test_new_generator_exists assert_includes Cli::Generate.tasks, "generator" end def test_generator_generator name = "tralal" path = "./tmp" within_construct do run_command(%w(generate generator) + [name, path]) assert File.exist? "#{path}/#{name}_generator.rb" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
roger-1.8.0 | test/unit/generators/generator_test.rb |
roger-1.7.2 | test/unit/generators/generator_test.rb |
roger-1.7.1 | test/unit/generators/generator_test.rb |