7 ms·
You can do script/generate rspec_model User with 2.3.5 right now.
by aditya 17y ago
You can do script/generate rspec_model User with 2.3.5 right now.
- mhartl 17y agoIndeed; see http://www.railstutorial.org/chapters/modeling-and-viewing-users-one#sec:database_migrations http://www.railstutorial.org/chapters/modeling-and-viewing-u... from my book for an example. ;-) But it requires running a special bootstrap script and has a different syntax from the default, i.e., $ script/generate rspec_model User for RSpec vs. $ script/generate model User for the default Test::Unit. In Rails 3, they will both simply be $ rails generate model User