@@ -93,6 +93,8 @@ def using_source_path(path)
93
93
generate ( 'scaffold gadget' ) # scaffold with no attributes
94
94
generate ( 'scaffold ticket original_price:float discounted_price:float' )
95
95
generate ( 'scaffold admin/account name:string' ) # scaffold with nested resource
96
+ generate ( 'scaffold card --api' )
97
+ generate ( 'scaffold upload --no-request_specs --controller_specs' )
96
98
generate ( 'rspec:feature gadget' )
97
99
generate ( 'controller things custom_action' )
98
100
@@ -137,9 +139,21 @@ def using_source_path(path)
137
139
'config.warnings = false'
138
140
gsub_file '.rspec' , '--warnings' , ''
139
141
140
- # Remove skips so we can test controller specs work
141
- gsub_file 'spec/controllers/gadgets_controller_spec.rb' ,
142
+ # Make a generated file work
143
+ gsub_file 'app/views/cards/_card.json.jbuilder' ,
144
+ ', :created_at, :updated_at' ,
145
+ ''
146
+
147
+ # Remove skips so we can test specs work
148
+ gsub_file 'spec/requests/cards_spec.rb' ,
149
+ 'skip("Add a hash of attributes valid for your model")' ,
150
+ '{}'
151
+
152
+ gsub_file 'spec/requests/gadgets_spec.rb' ,
142
153
'skip("Add a hash of attributes valid for your model")' ,
143
154
'{}'
144
155
156
+ gsub_file 'spec/controllers/uploads_controller_spec.rb' ,
157
+ 'skip("Add a hash of attributes valid for your model")' ,
158
+ '{}'
145
159
final_tasks
0 commit comments