[rspec-users] Problem while generating rspec model in Rails Project
lists at ruby-forum.com
Tue Jun 30 08:11:41 EDT 2009
David Chelimsky wrote:
> On Mon, Jun 15, 2009 at 8:04 AM, Ninad Pol<lists at ruby-forum.com> wrote:
>> I think this problem is not related any plugin (that define a client)
>> simply because if i try it with any other ruby file(other than
>> Client.rb) also i am facing same problem.
> So if you do this:
> rails widgets
> cd widgets
> script\generate model widget
> script\generate rspec
> script\generate rspec_model widget
> The last command tells you that Widget is already defined?
>> And what do you mean by some extension in the lib directory?
> I mean that you have a file in the lib directory in your Rails project
> that defines a client. I believe that loading the rails env (which
> happens when you run script\generate) loads the lib directory, so if
> you have a file in there that defines Client, then you'd run into this
I am so sorry for not being replying for so long.I was busy working with
some other things and kept aside RSPEC. Above command does not gave me
any problem for "widgets" and model with name "widget" was created. But
in my project i am still getting the same problem as mentioned earlier.
Posted via http://www.ruby-forum.com/.
More information about the rspec-users