Sha256: e23a4e6c0b2ad8089eb29e7cc0dca474448628f660a4dd2375308019eaa43682

Contents?: true

Size: 512 Bytes

Versions: 5

Compression:

Stored size: 512 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/helper')

class TestGenerator < Test::Unit::TestCase

  context "the generator" do
    should "have default generators" do
      %w{controller mailer migration model app}.each do |gen|
        assert Padrino::Generators.mappings.has_key?(gen.to_sym)
        assert_equal "Padrino::Generators::#{gen.classify}", Padrino::Generators.mappings[gen.to_sym].name
        assert Padrino::Generators.mappings[gen.to_sym].respond_to?(:start)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
padrino-gen-0.9.13 test/test_generator.rb
padrino-gen-0.9.12 test/test_generator.rb
padrino-gen-0.9.11 test/test_generator.rb
padrino-gen-0.9.10 test/test_generator.rb
padrino-gen-0.9.9 test/test_generator.rb