[Ironruby-core] How to run 'spec' on an individual sample ?

Ben Hall ben2004uk at googlemail.com
Tue Jul 14 16:14:47 EDT 2009


ir my_spec.rb used to work, but in either 0.6 or 1.2.7 no information
is wrote to the console.

What I did was added C:\ironruby\lib\IronRuby\gems\1.8\bin to my path
variable, make sure its before the MRI path and then you can do spec
my_spec and it will work against IR....

On Tue, Jul 14, 2009 at 8:46 PM, Thibaut
Barrère<thibaut.barrere at gmail.com> wrote:
>> 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: ironruby-core-bounces at rubyforge.org
>> [ironruby-core-bounces at rubyforge.org] on behalf of Thibaut Barrère
>> [thibaut.barrere at gmail.com]
>> 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
>> Ironruby-core at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/ironruby-core
>>
>
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>


More information about the Ironruby-core mailing list