Ben Hall
2009-Jul-14 20:14 UTC
[Ironruby-core] How to run ''spec'' on an individual sample ?
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 > >
Ivan Porto Carrero
2009-Jul-15 07:24 UTC
[Ironruby-core] How to run ''spec'' on an individual sample ?
yes you can but you have to create a different batch script. ispec.bat to use ir my_spec.rb you would alsi need to have require ''rubygems'' require ''spec'' in your spec_helper or something. by default require ''rubygems'' isn''t there. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jul 14, 2009 at 10:48 PM, Thibaut Barr?re <thibaut.barrere at gmail.com> wrote:> 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.... > > > Nifty - will try that :) > > -- Thibaut > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090715/50e1a0ba/attachment.html>