Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-13 Thread Mano ah
Thank you Pat Maddox,Douglas Adams,Luis Lavena,Scott Taylor for your kind help. I have installed the plugins rspec and rspec-rails using git. I was not running the spec controller from the root thats the main problem. I followed all of your useful suggestions and able to build and run a proj

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-11 Thread David Chelimsky
On Sat, Oct 11, 2008 at 10:16 AM, Luis Lavena <[EMAIL PROTECTED]> wrote: > On Sat, Oct 11, 2008 at 7:59 AM, Mano ah <[EMAIL PROTECTED]> wrote: >> >> I followed the below ways of installation >> >> >> gem install rake >> gem install rails >> gem install rspec >> gem install rspec-rails >> >> rails m

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-11 Thread Luis Lavena
On Sat, Oct 11, 2008 at 7:59 AM, Mano ah <[EMAIL PROTECTED]> wrote: > > I followed the below ways of installation > > > gem install rake > gem install rails > gem install rspec > gem install rspec-rails > > rails my-test-app > cd my-test-app > ruby script/generate rspec > > > When i used > > 'rake

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-11 Thread Mano ah
I followed the below ways of installation gem install rake gem install rails gem install rspec gem install rspec-rails rails my-test-app cd my-test-app ruby script/generate rspec When i used 'rake spec' i received no error. After that I created a controller then installed the two plugin

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-11 Thread Pat Maddox
Dude, post your code On 10/10/08, Mano ah <[EMAIL PROTECTED]> wrote: > my gem list is > > > > actionmailer (2.1.1, 1.3.3) > actionpack (2.1.1, 1.13.3) > actionwebservice (1.2.3) > activerecord (2.1.1, 1.15.3) > activeresource (2.1.1) > activesupport (2.1.1, 1.4.2) > fxri (0.3.6) > fxruby (1.6.12)

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Mano ah
my gem list is actionmailer (2.1.1, 1.3.3) actionpack (2.1.1, 1.13.3) actionwebservice (1.2.3) activerecord (2.1.1, 1.15.3) activeresource (2.1.1) activesupport (2.1.1, 1.4.2) fxri (0.3.6) fxruby (1.6.12) hoe (1.7.0) hpricot (0.6) log4r (1.0.5) rails (1.2.3) rake (0.8.3) rspec (1.1.8, 0.5.15) rs

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Mano ah
Luis Lavena wrote: > On Fri, Oct 10, 2008 at 3:56 AM, Mano ah <[EMAIL PROTECTED]> wrote: >> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:28:in `ge >> >> describe SandboxController,"handling someaction" do >> >>@value = somemethod >> >> end >> >> end >> >> Please help me to solve t

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Luis Lavena
On Fri, Oct 10, 2008 at 3:56 AM, Mano ah <[EMAIL PROTECTED]> wrote: > > > When i run a spec file i am getting the following error > > D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb > c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:17:in > `method_ > missing

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Mano ah
Scott Taylor wrote: > On Oct 11, 2008, at 12:42 AM, Mano ah wrote: > >> 2.1.1 > Why don't you post your spec? It would be a lot easier to help if we > could look at the same thing you were looking at. > > Scott sorry spec? -- Posted via http://www.ruby-forum.com/. ___

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Scott Taylor
On Oct 11, 2008, at 12:42 AM, Mano ah wrote: rails 2.1.1 and rspec 1.1.8 never worked out for me So i downgraded rails to 1.2.3. while execiting ruby /script/generate rspec_controller MyController it ask rails version 2.1.1. i was getting the describe method error as mention earlier in usi

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Mano ah
rails 2.1.1 and rspec 1.1.8 never worked out for me So i downgraded rails to 1.2.3. while execiting ruby /script/generate rspec_controller MyController it ask rails version 2.1.1. i was getting the describe method error as mention earlier in using 2.1.1 -- Posted via http://www.ruby-forum.

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Scott Taylor
On Oct 10, 2008, at 11:50 PM, Mano ah wrote: How to solve the below error 1) NoMethodError in 'LoginController index should get successfully' You have a nil object when you didn't expect it! The error occurred while evaluating nil.status ./login_controller_spec.rb:9: 2) NoMethodError in 'Logi

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Scott Taylor
On Oct 10, 2008, at 11:50 PM, Mano ah wrote: How to solve the below error 1) NoMethodError in 'LoginController index should get successfully' You have a nil object when you didn't expect it! The error occurred while evaluating nil.status ./login_controller_spec.rb:9: 2) NoMethodError in 'Logi

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Mano ah
How to solve the below error 1) NoMethodError in 'LoginController index should get successfully' You have a nil object when you didn't expect it! The error occurred while evaluating nil.status ./login_controller_spec.rb:9: 2) NoMethodError in 'LoginController index should render 202 file' undefin

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Mano ah
Dear Scott, I am new to rspec and i am confused to test using it. Can you please help me with an easy example or link to get clear about it Regards M -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.o

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-10 Thread Scott Taylor
On Oct 10, 2008, at 2:56 AM, Mano ah wrote: When i run a spec file i am getting the following error D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb: 17:in `method_ missing': undefined method `describe

[rspec-users] rspec - undefined method `describe' for main:Object

2008-10-09 Thread Mano ah
When i run a spec file i am getting the following error D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:17:in `method_ missing': undefined method `describe' for main:Object (NoMethodError) from ./sa