>
>   Doesn't ir.exe my_spec.rb work also? You won't get any configuration
> benefits "spec" gives you, but it should still run. If not, then just copy
> "spec" and "spec.bat" from the ruby bin directory (usually C:\ruby\bin) to
> where ir.exe is located, rename them to "ispec", and edit ispec.bat to run
> ispec with IronRuby.
>

Not sure if it's rpsec 1.2.7 specific or not, but if I just run ir.exe
my_spec.rb, nothing happens (either in MRI or IronRuby).

About your solution: I just came out with the same idea!

My ispec.bat:

ir C:\ironruby\lib\IronRuby\gems\1.8\gems\rspec-1.2.7\bin\spec %*

-- Thibaut



>  ~js
>  ------------------------------
> *From:* [email protected] [
> [email protected]] on behalf of Thibaut Barrère [
> [email protected]]
> *Sent:* Tuesday, July 14, 2009 12:35 PM
> *To:* ironruby-core
> *Subject:* [Ironruby-core] How to run 'spec' on an individual sample ?
>
>    Hi,
>
> is there a specific trick to be able to launch a single rspec example when
> working with IronRuby ?
>
> The regular way of doing this is to call "spec my_spec.rb", which defaults
> to using MRI afaik.
>
> Are other people patching the spec script manually, or is there a cleaner
> alternative ?
>
> -- Thibaut
>
> _______________________________________________
> Ironruby-core mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to