Forum: IronRuby "mspec ci" throws an exception

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.
91eb330fb36d1e03c856574dfb77d2bc?d=identicon&s=25 Thibaut Barrère (thbar)
on 2009-04-16 10:26
(Received via mailing list)
Hi,

should I open a bug on codeplex for that ? Is anyone else meeting the
same issue ? (details below)

C:\Git\ironruby\Merlin\Main\Languages\Ruby>mspec ci
IronRuby 0.3 0.3.0.0 on .NET 2.0.0.0
script.rb:172:in `files': undefined method `inject' for nil:NilClass
(NoMethodError)
        from mspec-ci.rb:11:in `options'
        from script.rb:189:in `main'
        from mspec-ci:0

I had a closer look and saw that the files methods in script.rb is
passed a nil files argument. This is caused by

C:\git\ironruby\Merlin\External.LCA_RESTRICTED\Languages\IronRuby\mspec\mspec\lib\mspec\commands\mspec-ci.rb

line 54: patterns = config[:ci_files] if patterns.empty?

config[:ci_files] is nil.

I searched for ci_files on all the files but can't find anything that
would set this key in the hash (except for tests).

-- Thibaut
This topic is locked and can not be replied to.