[rspec-users] spec command and windows

David Chelimsky dchelimsky at gmail.com
Fri Jan 5 23:04:21 EST 2007

On 1/5/07, Wayne Vucenic <waynev at gmail.com> wrote:
> Hi Brian,
> It looks like c:\ruby\bin isn't in your PATH environment variable on
> Windows.  (I've had problems with the OneClickInstaller not adding
> this directory to the PATH).  If this is true, adding it to PATH
> should solve your problem.
> > Could rspec be run from ruby instead?
> This is similar to a question I was going to ask on this list.  I'm
> trying to figure out how to run a xyz_spec.rb file from within my IDE,
> rather than having to use spec on the command line.   Can anyone tell
> me how to do this?

Just require 'spec' in the file or a file it includes and go:

ruby path/to/the/file.rb

OR (if you MUST)

ruby path\to\the\file.rb


> Thanks,
> Wayne
> ---
> Wayne Vucenic
> No Bugs Software
> Ruby, C#, and Erlang Agile Contract Programming in Silicon Valley
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list