I am new to ROR. I am working on Rspec…
I have been provided with a full package of an application.
I kept it in my rails dir.
The dir itself contains spec folder with some controllers/models and
fixtures but without spec_helper file.
So when i run $spec spec/ i got an error
`files_to_load’: File or directory not found: spec/ (RuntimeError)
So i simply deleted the whole spec folder.
And again created a new spec by
[email protected]:~/railsprojects/appname_c$ script/generate rspec
Configuring rspec and rspec-rails gems in config/environments/test.rb
exists lib/tasks create lib/tasks/rspec.rake create script/autospec create script/spec create spec create spec/rcov.opts create spec/spec.opts create spec/spec_helper.rb
after all this … I try to add the testing spec for my controller Users
[email protected]:~/railsprojects/appname_c$ script/generate
rspec_controller Users new
The name ‘UsersController’ 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 the error as above …
Pls give me suggestions of why i am getting this error.
How to resolve this one…