Forum: IronRuby mspec troubles

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ivan P. (Guest)
on 2009-05-01 13:43
(Received via mailing list)
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_t...
Jimmy S. (Guest)
on 2009-05-01 13:53
(Received via mailing list)
“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: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
This topic is locked and can not be replied to.