Sha256: 9661a6b8749f8857ba6817c9f41d5301f1f5700beab8c0847e84028465ae00a1

Contents?: true

Size: 501 Bytes

Versions: 14

Compression:

Stored size: 501 Bytes

Contents

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

describe "Generator" do

  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

14 entries across 14 versions & 1 rubygems

Version Path
padrino-gen-0.11.3 test/test_generator.rb
padrino-gen-0.11.2 test/test_generator.rb
padrino-gen-0.11.1 test/test_generator.rb
padrino-gen-0.11.0 test/test_generator.rb
padrino-gen-0.10.7 test/test_generator.rb
padrino-gen-0.10.6 test/test_generator.rb
padrino-gen-0.10.6.e test/test_generator.rb
padrino-gen-0.10.6.d test/test_generator.rb
padrino-gen-0.10.6.c test/test_generator.rb
padrino-gen-0.10.6.b test/test_generator.rb
padrino-gen-0.10.6.a test/test_generator.rb
padrino-gen-0.10.5 test/test_generator.rb
padrino-gen-0.10.4 test/test_generator.rb
padrino-gen-0.10.3 test/test_generator.rb