# Mspec troubles

**URL:** <https://www.ruby-forum.com/t/mspec-troubles/166954>\
**Category:** IronRuby\
**Created:** [May 1, 2009, 11:43am UTC](https://www.ruby-forum.com/t/mspec-troubles/166954 "2009-05-01T11:43:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [May 1, 2009, 11:43am UTC](https://www.ruby-forum.com/t/mspec-troubles/166954/1 "2009-05-01T11:43:19Z")

</div>

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:in `load’  
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:in `load’  
from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:44:in  
`each' from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:44:in `load’  
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](http://www.brainyquote.com/quotes/authors/m/mark_twain.html)

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [May 1, 2009, 11:53am UTC](https://www.ruby-forum.com/t/mspec-troubles/166954/2 "2009-05-01T11:53:17Z")

</div>

â€œ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](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:in `load’  
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:in `load’  
from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:44:in  
`each' from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:44:in `load’  
from c:/tools/ironruby/mspec/lib/mspec/utils/script.rb:91:in  
`main’  
from c:/tools/ironruby/mspec/bin/mspec:7
