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<[email protected]> 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: [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 > > _______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
