Mspec troubles


#1

I followed the steps described on the wiki to be able to run the specs
for
ironruby but when I then execute rake test
I get the following output:

  • C:\tools\ironruby\merlin\main\Languages\Ruby
    (master) » rake test
    (in C:/tools/ironruby/merlin/main/Languages/Ruby)
    C:\tools\ironruby\merlin\main\…\External.LCA_RESTRICTED\Languages\IronRuby\msp
    ec\default.mspec:12: undefined method filtered' for MSpecScript:Class (NoMethod Error) from ./default.mspec:15:inload’
    from ./default.mspec:15
    from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:45:in
    load' from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:45:inload’
    from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:44:in
    each' from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:44:inload’
    from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:91:in
    `main’
    from c:/tools/ironruby/mspec/bin/mspec:7

http://www.brainyquote.com/quotes/authors/m/mark_twain.html


#2

“rake test” is not the preferred way of running tests; directly run the
mspec command (or use irtests.bat, see below). This will use a version
of mspec that’s checked in, so you don’t need a separate directory for
mspec. Doing a “where mspec” should yield:

c:\tools\ironruby\Merlin\External.LCA_RESTRICTED\Languages\IronRuby\mspec\mspec\bin\mspec
c:\tools\ironruby\Merlin\External.LCA_RESTRICTED\Languages\IronRuby\mspec\mspec\bin\mspec.bat

If you run Dev.bat, this path will be set up for you, and a .mspecrc
file copied to %HOME%, which will hook everything up properly.

To run all the tests, there’s a single script
Merlin\Main\Languages\Ruby\Scripts\irtests.bat which should do the
trick. We should hook this back up into rake, but I think those rake
files are pretty scary, so we have some external scripts written by
people who don’t want to mess with rake. =P

~js

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Ivan Porto
Carrero
Sent: Friday, May 01, 2009 2:41 AM
To: ironruby-core
Subject: [Ironruby-core] mspec troubles

I followed the steps described on the wiki to be able to run the specs
for ironruby but when I then execute rake test
I get the following output:

  • C:\tools\ironruby\merlin\main\Languages\Ruby
    (master) » rake test
    (in C:/tools/ironruby/merlin/main/Languages/Ruby)
    C:\tools\ironruby\merlin\main\…\External.LCA_RESTRICTED\Languages\IronRuby\msp
    ec\default.mspec:12: undefined method filtered' for MSpecScript:Class (NoMethod Error) from ./default.mspec:15:inload’
    from ./default.mspec:15
    from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:45:in
    load' from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:45:inload’
    from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:44:in
    each' from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:44:inload’
    from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:91:in
    `main’
    from c:/tools/ironruby/mspec/bin/mspec:7