Sha256: 340bbadfc0067ad61b924b6f007c09c519b998488260fd979981d73600c4aeb6

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 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 plugin}.each do |gen|
        assert Padrino::Generators.mappings.has_key?(gen.to_sym)
        assert_equal "Padrino::Generators::#{gen.camelize}", Padrino::Generators.mappings[gen.to_sym].name
        assert Padrino::Generators.mappings[gen.to_sym].respond_to?(:start)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
padrino-gen-0.10.2 test/test_generator.rb