vraptor-scaffold 0.0.1.rc → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/.document +1 -1
  2. data/.gitignore +1 -0
  3. data/Gemfile +3 -3
  4. data/History.txt +10 -0
  5. data/README.textile +32 -0
  6. data/Rakefile +6 -7
  7. data/VERSION.yml +1 -1
  8. data/bin/vraptor +1 -1
  9. data/lib/configuration.rb +31 -0
  10. data/lib/generators/app_generator/app_generator.rb +75 -126
  11. data/lib/generators/app_generator/freemarker_template_engine.rb +50 -0
  12. data/lib/generators/app_generator/jsp_template_engine.rb +21 -0
  13. data/lib/generators/app_generator/templates/build.properties.erb +16 -0
  14. data/lib/generators/app_generator/templates/build.xml +109 -0
  15. data/lib/generators/app_generator/templates/decorators.erb +7 -0
  16. data/lib/generators/app_generator/templates/eclipse/classpath +23 -0
  17. data/lib/generators/app_generator/templates/eclipse/project.erb +36 -0
  18. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.jdt.core.prefs +8 -0
  19. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.component.tt +10 -0
  20. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml +10 -0
  21. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container +1 -0
  22. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name +1 -0
  23. data/lib/generators/app_generator/templates/freemarker/freemarker-ivy.xml +2 -0
  24. data/lib/generators/app_generator/templates/freemarker/freemarker-pom.xml +6 -0
  25. data/lib/generators/app_generator/templates/freemarker/freemarker-web.xml +23 -0
  26. data/lib/generators/app_generator/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt +21 -0
  27. data/lib/generators/app_generator/templates/{macros → freemarker/macros}/html.ftl +0 -0
  28. data/lib/generators/app_generator/templates/freemarker/main.ftl +14 -0
  29. data/lib/generators/app_generator/templates/ivy-2.2.0-rc1.jar +0 -0
  30. data/lib/generators/app_generator/templates/ivy.erb +35 -0
  31. data/lib/generators/app_generator/templates/jsp/main.jsp +16 -0
  32. data/lib/generators/app_generator/templates/pom.erb +24 -3
  33. data/lib/generators/app_generator/templates/{messages.properties → resources-test/.empty_directory} +0 -0
  34. data/lib/generators/app_generator/templates/{persistence.xml → resources/META-INF/persistence.xml} +0 -0
  35. data/lib/generators/app_generator/templates/{log4j.properties → resources/log4j.properties} +0 -0
  36. data/lib/generators/app_generator/templates/resources/messages.properties +0 -0
  37. data/lib/generators/app_generator/templates/src-test/controllers/.empty_directory +0 -0
  38. data/lib/generators/app_generator/templates/src-test/models/.empty_directory +0 -0
  39. data/lib/generators/app_generator/templates/src-test/repositories/.empty_directory +0 -0
  40. data/lib/generators/app_generator/templates/src/controllers/.empty_directory +0 -0
  41. data/lib/generators/app_generator/templates/src/models/Entity.java.tt +45 -0
  42. data/lib/generators/app_generator/templates/src/repositories/Repository.java.tt +43 -0
  43. data/lib/generators/app_generator/templates/vraptor-scaffold.erb +2 -0
  44. data/lib/generators/app_generator/templates/webapp/WEB-INF/web.xml +38 -0
  45. data/lib/generators/app_generator/templates/webapp/images/.empty_directory +0 -0
  46. data/lib/generators/app_generator/templates/{index.jsp → webapp/index.jsp} +0 -0
  47. data/lib/generators/app_generator/templates/{javascripts → webapp/javascripts}/jquery-1.4.2.min.js +0 -0
  48. data/lib/generators/app_generator/templates/{stylesheets → webapp/stylesheets}/scaffold.css +0 -0
  49. data/lib/generators/scaffold_generator/attribute.rb +14 -6
  50. data/lib/generators/scaffold_generator/base_scaffold.rb +14 -10
  51. data/lib/generators/scaffold_generator/controller_generator/controller_generator.rb +6 -6
  52. data/lib/generators/scaffold_generator/controller_generator/templates/controller.erb +7 -7
  53. data/lib/generators/scaffold_generator/controller_generator/templates/controller_test.erb +1 -1
  54. data/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator.rb +5 -5
  55. data/lib/generators/scaffold_generator/freemarker_generator/templates/index.erb +2 -3
  56. data/lib/generators/scaffold_generator/jsp_generator/jsp_generator.rb +22 -0
  57. data/lib/generators/scaffold_generator/jsp_generator/templates/edit.erb +3 -0
  58. data/lib/generators/scaffold_generator/jsp_generator/templates/form.erb +27 -0
  59. data/lib/generators/scaffold_generator/jsp_generator/templates/index.erb +36 -0
  60. data/lib/generators/scaffold_generator/jsp_generator/templates/new.erb +3 -0
  61. data/lib/generators/scaffold_generator/jsp_generator/templates/show.erb +14 -0
  62. data/lib/generators/scaffold_generator/model_generator/model_generator.rb +5 -5
  63. data/lib/generators/scaffold_generator/model_generator/templates/model.erb +1 -1
  64. data/lib/generators/scaffold_generator/model_generator/templates/model_test.erb +1 -1
  65. data/lib/generators/scaffold_generator/repository_generator/repository_generator.rb +6 -5
  66. data/lib/generators/scaffold_generator/repository_generator/templates/repository.erb +17 -9
  67. data/lib/generators/scaffold_generator/repository_generator/templates/repository_impl.erb +16 -0
  68. data/lib/generators/scaffold_generator/repository_generator/templates/repository_test.erb +2 -2
  69. data/lib/generators/scaffold_generator/scaffold_generator.rb +31 -38
  70. data/lib/load_paths.rb +6 -2
  71. data/lib/vraptor-scaffold.rb +29 -5
  72. data/spec/lib/configuration_spec.rb +60 -0
  73. data/spec/lib/generators/app_generator/app_generator_spec.rb +237 -116
  74. data/spec/lib/generators/app_generator/freemarker_template_engine_spec.rb +92 -0
  75. data/spec/lib/generators/app_generator/jsp_template_engine_spec.rb +44 -0
  76. data/{lib → spec/lib}/generators/app_generator/templates/Entity.java +5 -2
  77. data/{lib → spec/lib}/generators/app_generator/templates/FreemarkerPathResolver.java +1 -1
  78. data/{lib → spec/lib}/generators/app_generator/templates/Repository.java +6 -6
  79. data/spec/lib/generators/app_generator/templates/build.properties +16 -0
  80. data/spec/lib/generators/app_generator/templates/decorators-jsp.xml +7 -0
  81. data/{lib → spec/lib}/generators/app_generator/templates/decorators.xml +2 -2
  82. data/spec/lib/generators/app_generator/templates/ivy.xml +35 -0
  83. data/spec/lib/generators/app_generator/templates/pom.xml +24 -3
  84. data/spec/lib/generators/scaffold_generator/attribute_spec.rb +47 -27
  85. data/spec/lib/generators/scaffold_generator/base_scaffold_spec.rb +31 -27
  86. data/spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb +11 -9
  87. data/spec/lib/generators/scaffold_generator/controller_generator/templates/ProductController.java +2 -2
  88. data/spec/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb +16 -14
  89. data/spec/lib/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb +34 -0
  90. data/spec/lib/generators/scaffold_generator/model_generator/model_generator_spec.rb +11 -9
  91. data/spec/lib/generators/scaffold_generator/repository_generator/repository_generator_spec.rb +17 -9
  92. data/spec/lib/generators/scaffold_generator/repository_generator/templates/ProductRepository.java +15 -7
  93. data/spec/lib/generators/scaffold_generator/repository_generator/templates/ProductRepositoryImpl.java +16 -0
  94. data/spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb +55 -57
  95. data/spec/lib/vraptor-scaffold_spec.rb +77 -24
  96. data/spec/resources/vraptor-scaffold.properties +2 -0
  97. data/spec/spec_helper.rb +13 -1
  98. data/vraptor-scaffold.gemspec +82 -34
  99. metadata +86 -42
  100. data/README.rdoc +0 -104
  101. data/TODO.txt +0 -17
  102. data/lib/generators/app_generator/templates/main.ftl +0 -14
  103. data/lib/generators/app_generator/templates/web.xml +0 -61
@@ -2,31 +2,35 @@ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
2
2
 
3
3
  describe BaseScaffold do
4
4
 
5
- before(:each) do
6
- @base = BaseScaffold.new("client")
7
- end
8
-
9
- it "should know model class name" do
10
- @base.class_name.should eql("Client")
11
- end
12
-
13
- it "should know model test class name" do
14
- @base.test_class_name.should eql("ClientTest")
15
- end
16
-
17
- it "should know repository class name" do
18
- @base.repository_class_name.should eql("ClientRepository")
19
- end
20
-
21
- it "should know repository test class name" do
22
- @base.repository_test_class_name.should eql("ClientRepositoryTest")
23
- end
24
-
25
- it "should know controller class name" do
26
- @base.controller_class_name.should eql("ClientController")
27
- end
28
-
29
- it "should know controller test class name" do
30
- @base.controller_test_class_name.should eql("ClientControllerTest")
31
- end
5
+ before(:each) do
6
+ @base = BaseScaffold.new("client")
7
+ end
8
+
9
+ it "should know model class name" do
10
+ @base.class_name.should eql("Client")
11
+ end
12
+
13
+ it "should know model test class name" do
14
+ @base.test_class_name.should eql("ClientTest")
15
+ end
16
+
17
+ it "should know repository class name impl" do
18
+ @base.repository_impl_name.should eql("ClientRepositoryImpl")
19
+ end
20
+
21
+ it "should know repository interface name" do
22
+ @base.repository_interface_name.should eql("ClientRepository")
23
+ end
24
+
25
+ it "should know repository test class name" do
26
+ @base.repository_test_class_name.should eql("ClientRepositoryImplTest")
27
+ end
28
+
29
+ it "should know controller class name" do
30
+ @base.controller_class_name.should eql("ClientController")
31
+ end
32
+
33
+ it "should know controller test class name" do
34
+ @base.controller_test_class_name.should eql("ClientControllerTest")
35
+ end
32
36
  end
@@ -1,24 +1,26 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/../../../../spec_helper")
2
2
 
3
3
  describe ControllerGenerator do
4
-
4
+
5
5
  before(:each) do
6
+ mock_config_file
6
7
  @generator = ControllerGenerator.new("product", build_attributes)
7
8
  @generator.build
8
9
  end
9
-
10
+
10
11
  after(:each) do
11
12
  FileUtils.remove_dir("src")
12
13
  end
13
-
14
+
14
15
  it "should create controller" do
15
- from = File.expand_path(File.dirname(__FILE__) + "/templates/ProductController.java")
16
- to = "src/main/java/app/controllers/ProductController.java"
17
- FileUtils.compare_file(from, to).should be_true
16
+ source = File.join File.dirname(__FILE__), "templates", "ProductController.java"
17
+ destination = Configuration.main_class_path "controllers", "ProductController.java"
18
+ exists_and_identical?(source, destination)
18
19
  end
19
-
20
+
20
21
  it "should create controller test" do
21
- File.exist?("src/test/java/app/controllers/ProductControllerTest.java").should be_true
22
+ test_class = Configuration.test_class_path "controllers", "ProductControllerTest.java"
23
+ File.exist?(test_class).should be_true
22
24
  end
23
-
25
+
24
26
  end
@@ -63,13 +63,13 @@ public class ProductController {
63
63
  }
64
64
 
65
65
  @Get
66
- @Path("/products/{product.id}/show")
66
+ @Path("/products/{product.id}")
67
67
  public Product show(Product product) {
68
68
  return repository.find(product.getId());
69
69
  }
70
70
 
71
71
  @Delete
72
- @Path("/products")
72
+ @Path("/products/{product.id}")
73
73
  public void destroy(Product product) {
74
74
  repository.destroy(repository.find(product.getId()));
75
75
  result.redirectTo(this).index();
@@ -1,34 +1,36 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/../../../../spec_helper")
2
2
 
3
3
  describe FreemarkerGenerator do
4
-
4
+
5
5
  before(:each) do
6
- @generator = FreemarkerGenerator.new("product", build_attributes)
6
+ model = "product"
7
+ @views_path = File.join Configuration::WEB_INF, "views", model
8
+ @generator = FreemarkerGenerator.new(model, build_attributes)
7
9
  @generator.build
8
10
  end
9
-
11
+
10
12
  after(:each) do
11
13
  FileUtils.remove_dir("src")
12
14
  end
13
-
15
+
14
16
  it "should create index view" do
15
- File.exist?("src/main/webapp/WEB-INF/views/product/index.ftl").should be_true
17
+ File.exist?("#{@views_path}/index.ftl").should be_true
16
18
  end
17
-
19
+
18
20
  it "should create show view" do
19
- File.exist?("src/main/webapp/WEB-INF/views/product/show.ftl").should be_true
21
+ File.exist?("#{@views_path}/show.ftl").should be_true
20
22
  end
21
-
23
+
22
24
  it "should create form view" do
23
- File.exist?("src/main/webapp/WEB-INF/views/product/form.ftl").should be_true
25
+ File.exist?("#{@views_path}/form.ftl").should be_true
24
26
  end
25
-
27
+
26
28
  it "should create new view" do
27
- File.exist?("src/main/webapp/WEB-INF/views/product/newProduct.ftl").should be_true
29
+ File.exist?("#{@views_path}/newProduct.ftl").should be_true
28
30
  end
29
-
31
+
30
32
  it "should create edit view" do
31
- File.exist?("src/main/webapp/WEB-INF/views/product/edit.ftl").should be_true
33
+ File.exist?("#{@views_path}/edit.ftl").should be_true
32
34
  end
33
-
35
+
34
36
  end
@@ -0,0 +1,34 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/../../../../spec_helper")
2
+
3
+ describe JspGenerator do
4
+ before(:each) do
5
+ model = "product"
6
+ @views_path = File.join Configuration::WEB_INF, "jsp", model
7
+ @generator = JspGenerator.new(model, build_attributes)
8
+ @generator.build
9
+ end
10
+
11
+ after(:each) do
12
+ FileUtils.remove_dir("src")
13
+ end
14
+
15
+ it "should create index view" do
16
+ File.exist?("#{@views_path}/index.jsp").should be_true
17
+ end
18
+
19
+ it "should create show view" do
20
+ File.exist?("#{@views_path}/show.jsp").should be_true
21
+ end
22
+
23
+ it "should create form view" do
24
+ File.exist?("#{@views_path}/form.jsp").should be_true
25
+ end
26
+
27
+ it "should create new view" do
28
+ File.exist?("#{@views_path}/newProduct.jsp").should be_true
29
+ end
30
+
31
+ it "should create edit view" do
32
+ File.exist?("#{@views_path}/edit.jsp").should be_true
33
+ end
34
+ end
@@ -1,23 +1,25 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/../../../../spec_helper")
2
2
 
3
3
  describe ModelGenerator do
4
-
4
+
5
5
  before(:each) do
6
+ mock_config_file
6
7
  @generator = ModelGenerator.new("product", build_attributes)
7
8
  @generator.build
8
9
  end
9
-
10
+
10
11
  after(:each) do
11
12
  FileUtils.remove_dir("src")
12
13
  end
13
-
14
+
14
15
  it "should create model" do
15
- from = File.expand_path(File.dirname(__FILE__) + "/templates/Product.java")
16
- to = "src/main/java/app/models/Product.java"
17
- FileUtils.compare_file(from, to).should be_true
16
+ source = File.join File.dirname(__FILE__), "templates", "Product.java"
17
+ destination = Configuration.main_class_path "models", "Product.java"
18
+ exists_and_identical?(source, destination)
18
19
  end
19
-
20
- it "should create model test" do
21
- File.exist?("src/test/java/app/models/ProductTest.java").should be_true
20
+
21
+ it "should create model test" do
22
+ test_class = Configuration.test_class_path "models", "ProductTest.java"
23
+ File.exist?(test_class).should be_true
22
24
  end
23
25
  end
@@ -1,23 +1,31 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/../../../../spec_helper")
2
2
 
3
3
  describe RepositoryGenerator do
4
-
4
+
5
5
  before(:each) do
6
+ mock_config_file
6
7
  @generator = RepositoryGenerator.new("product", build_attributes)
7
8
  @generator.build
8
9
  end
9
-
10
+
10
11
  after(:each) do
11
12
  FileUtils.remove_dir("src")
12
13
  end
13
14
 
14
- it "should create repository" do
15
- from = File.expand_path(File.dirname(__FILE__) + "/templates/ProductRepository.java")
16
- to = "src/main/java/app/repositories/ProductRepository.java"
17
- FileUtils.compare_file(from, to).should be_true
15
+ it "should create repository interface" do
16
+ source = File.join File.dirname(__FILE__), "templates", "ProductRepository.java"
17
+ destination = Configuration.main_class_path "repositories", "ProductRepository.java"
18
+ exists_and_identical?(source, destination)
18
19
  end
19
-
20
- it "should create repository" do
21
- File.exist?("src/test/java/app/repositories/ProductRepositoryTest.java").should be_true
20
+
21
+ it "should create repository impl" do
22
+ source = File.join File.dirname(__FILE__), "templates", "ProductRepositoryImpl.java"
23
+ destination = Configuration.main_class_path "repositories", "ProductRepositoryImpl.java"
24
+ exists_and_identical?(source, destination)
25
+ end
26
+
27
+ it "should create repository test" do
28
+ test_class = Configuration.test_class_path "repositories", "ProductRepositoryImplTest.java"
29
+ File.exist?(test_class).should be_true
22
30
  end
23
31
  end
@@ -1,14 +1,22 @@
1
1
  package app.repositories;
2
2
 
3
- import javax.persistence.EntityManager;
3
+ import java.util.List;
4
4
 
5
- import br.com.caelum.vraptor.ioc.Component;
6
5
  import app.models.Product;
7
6
 
8
- @Component
9
- public class ProductRepository extends Repository<Product> {
7
+ public interface ProductRepository {
8
+ /*
9
+ * Delete the methods you don't want to expose
10
+ */
11
+
12
+ void create(Product entity);
13
+
14
+ void update(Product entity);
15
+
16
+ void destroy(Product entity);
17
+
18
+ Product find(Long id);
19
+
20
+ List<Product> findAll();
10
21
 
11
- public ProductRepository(EntityManager entityManager) {
12
- super(entityManager);
13
- }
14
22
  }
@@ -0,0 +1,16 @@
1
+ package app.repositories;
2
+
3
+ import javax.persistence.EntityManager;
4
+
5
+ import br.com.caelum.vraptor.ioc.Component;
6
+ import app.models.Product;
7
+
8
+ @Component
9
+ public class ProductRepositoryImpl
10
+ extends Repository<Product, Long>
11
+ implements ProductRepository {
12
+
13
+ public ProductRepositoryImpl(EntityManager entityManager) {
14
+ super(entityManager);
15
+ }
16
+ }
@@ -1,68 +1,66 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
2
2
 
3
3
  describe ScaffoldGenerator do
4
-
4
+
5
5
  before(:each) do
6
- @args = ["product", "name:String", "value:double"]
6
+ @model = "product"
7
+ args = [@model, {"name" => "string", "value" => "double"}]
8
+ @generator = ScaffoldGenerator.new(args)
9
+ @attributes = @generator.generated_attributes
7
10
  end
8
-
9
- context "invalid scaffold command" do
10
- it "outside project root" do
11
- File.stub!(:exist?).with("pom.xml").and_return(false)
12
- Kernel.should_receive(:exit)
13
- ScaffoldGenerator.new(@args)
11
+
12
+ context "generated attributes" do
13
+ it "should generate name attribute" do
14
+ att = @attributes.first
15
+ att.name.should == "name"
16
+ att.type.should == "string"
14
17
  end
15
-
16
- it "invalid attribute type" do
17
- File.stub!(:exist?).and_return(true)
18
- args = ["product", "name:string", "value:char"]
19
- Kernel.should_receive(:exit)
20
- ScaffoldGenerator.new(args)
18
+
19
+ it "should generate value attribute" do
20
+ att = @attributes.last
21
+ att.name.should == "value"
22
+ att.type.should == "double"
21
23
  end
22
24
  end
23
-
24
- context "valid scaffold command" do
25
-
26
- before(:each) do
27
- File.stub!(:exist?).and_return(true)
28
- @generator = ScaffoldGenerator.new(@args)
29
-
30
- @model_generator = mock(ModelGenerator)
31
- ModelGenerator.stub!(:new).with(@generator.model, @generator.attributes).and_return(@model_generator)
32
-
33
- @repository_generator = mock(RepositoryGenerator)
34
- RepositoryGenerator.stub!(:new).with(@generator.model, @generator.attributes).and_return(@repository_generator)
35
-
36
- @controller_generator = mock(ControllerGenerator)
37
- ControllerGenerator.stub!(:new).with(@generator.model, @generator.attributes).and_return(@controller_generator)
38
-
39
- @freemarker_generator = mock(FreemarkerGenerator)
40
- FreemarkerGenerator.stub!(:new).with(@generator.model, @generator.attributes).and_return(@freemarker_generator)
41
-
42
- @model_generator.stub!(:build)
43
- @repository_generator.stub!(:build)
44
- @controller_generator.stub!(:build)
45
- @freemarker_generator.stub!(:build)
25
+
26
+ it "should call model generator" do
27
+ @model_generator = mock(ModelGenerator)
28
+ ModelGenerator.stub!(:new).with(@model, @attributes).and_return(@model_generator)
29
+ @model_generator.should_receive(:build)
30
+ @generator.model_generator
46
31
  end
47
-
48
- it "should call model generator" do
49
- @model_generator.should_receive(:build)
50
- @generator.build
51
- end
52
-
53
- it "should call controller generator" do
54
- @controller_generator.should_receive(:build)
55
- @generator.build
56
- end
57
-
58
- it "should call freemarker generator" do
59
- @freemarker_generator.should_receive(:build)
60
- @generator.build
61
- end
62
-
63
- it "should call repository generator" do
64
- @repository_generator.should_receive(:build)
65
- @generator.build
66
- end
32
+
33
+ it "should call controller generator" do
34
+ @controller_generator = mock(ControllerGenerator)
35
+ ControllerGenerator.stub!(:new).with(@model, @attributes).and_return(@controller_generator)
36
+ @controller_generator.should_receive(:build)
37
+ @generator.controller_generator
38
+ end
39
+
40
+ it "should call freemarker generator" do
41
+ Configuration.stub!(:template_engine).and_return("ftl")
42
+ @freemarker_generator = mock(FreemarkerGenerator)
43
+ FreemarkerGenerator.stub!(:new).with(@model, @attributes).and_return(@freemarker_generator)
44
+ @freemarker_generator.should_receive(:build)
45
+ @generator.template_engine_generator
46
+ end
47
+
48
+ it "should call jsp generator" do
49
+ Configuration.stub!(:template_engine).and_return("jsp")
50
+ @jsp_generator = mock(JspGenerator)
51
+ JspGenerator.stub!(:new).with(@model, @attributes).and_return(@jsp_generator)
52
+ @jsp_generator.should_receive(:build)
53
+ @generator.template_engine_generator
54
+ end
55
+
56
+ it "should call repository generator" do
57
+ @repository_generator = mock(RepositoryGenerator)
58
+ RepositoryGenerator.stub!(:new).with(@model, @attributes).and_return(@repository_generator)
59
+ @repository_generator.should_receive(:build)
60
+ @generator.repository_generator
61
+ end
62
+
63
+ it "should configure banner" do
64
+ ScaffoldGenerator.banner.should == "vraptor scaffold MODEL [field:type field:type]"
67
65
  end
68
66
  end