Comments (2)
config.generators
applies to all Rails generators, not just scaffold. So it depends on if you use any generators or not. For example, with the above configuration, the model generator would give you files for the model, the model spec, and a factory file.
If you don't use any generators, then it doesn't matter what you put in this config.
I recommend creating a new Rails app and experimenting with different settings and generators and see what works best for you.
from rails-4-1-rspec-3-0.
Thanks, Aaron.
I noticed when I run, for example, rails g model post title body
, it creates factories when I have settings in application.rb
in advance, so I can be useful.
from rails-4-1-rspec-3-0.
Related Issues (20)
- Well done HOT 1
- Shared db connection
- Ch.9 Avoid useless stubbing
- Ch.5 assigns[key] is used
- Ch 9. How about refactoring contacts_controller_spec ?
- Ch 9. set_user_session is not used
- Ch 8. Feature spec works without find method
- Ch 6. id is not required for create
- Ch.5 be_true should be be_truthy
- Where to place `gem "factory_girl_rails"` in Gemfile HOT 6
- Can't pass `bundle exec spec` on 05_controller_basics branch HOT 3
- error with invalid contact for controller spec HOT 3
- CH.5 Failing Test HOT 1
- selenium-webdriver won't work against Firefox 48 or later HOT 2
- [error] newer bundler causes: Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section: 'rspec' HOT 1
- Chapter 5 Testing Controllers HOT 1
- Question on controller testing advanced..authentication comment out... HOT 1
- ch. 5 pag. 68 populates an array of all contacts (FAILED - 1) HOT 6
- 09_speedup "ruby_dep requires Ruby version >= 2.2.5, ~> 2.2." HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails-4-1-rspec-3-0.