[rspec-users] Rspec model generation problem

Amit Kulkarni lists at ruby-forum.com
Fri May 7 09:16:31 EDT 2010


Amit Kulkarni wrote:
> Hello,
> I am currently working on Ubuntu machine in which there is already a
> spec file generated which has some models
> So i just updated by entering the command "ruby script/generate rspec"
> Now when i try to generate rspec model then it shows error as
> 
> "The name 'User' is either already used in your application or reserved
> by Ruby on Rails.Please choose an alternative and run this generator
> again."
> 
> I am getting this for almost for every rspec model
> Please suggest.
Versions which i am using
Rails 2.3.4
rspec 1.3.0
rspec-rails (1.3.2)
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
cucumber (0.7.2)
cucumber-rails (0.3.1)
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list