On Wed, May 20, 2009 at 1:47 AM, Amit Kulkarni <li...@ruby-forum.com> wrote: > Amit Kulkarni wrote: >> David Chelimsky wrote: >>> On Tue, May 19, 2009 at 9:04 AM, Amit Kulkarni <li...@ruby-forum.com> >>> wrote: >>>> but i am getting the same error which says RuntimeError in >>>> Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_control >>>> ./channels_controller_spec1.rb:149: >>> It looks like you're calling the file from the spec/controllers >>> directory. Just for fun, step up to the project root and run: >>> >>> script/spec spec/controllers/channels_controller_spec1.rb >> >> Hey It worked thanks a lot. :-) >> >> Can you tell me the difference why it was not running earlier and now it >> is running.Just for my understanding. > > It is not the case that i will always run spec from the root project.So > if i want to run from spec/controllers direcrtory then what should i do > since i am getting the error.
Unfortunately, you're going to have to run it from the project root because that's the only it works, apparently. You can file a bug report at http://rspec.lighthouseapp.com if you're interested. Cheers, David _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users