Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I cannot get "lambda {}.must_be_silent" to work in minitest

59 views
Skip to first unread message

xeno.ca...@gmail.com

unread,
Apr 19, 2012, 5:55:25 PM4/19/12
to
I'm successfully using lambda {}.must_raise(ArgumentError), for
instance, so largely I think I'm on the right track, but when I try
must_be_silent in the same context, I get:

1) Error:
test_0003_mycfg_new_must_be_silent_(MykitSpec::MycfgSpec):
NoMethodError: undefined method `must_be_silent' for #<Proc:
0x000000...@MyTest.rb:22 (lambda)>
MyTest.rb:22:in `block (3 levels) in <main>'

I wish there was better documentation on Minitest. All I see are very
economical introductions and summaries, and no list of known bugs.
Message has been deleted

erikec...@gmail.com

unread,
Jul 27, 2012, 7:55:00 AM7/27/12
to
solved updating to ruby-1.9.3-p125

On Thursday, 19 April 2012 23:55:25 UTC+2, Xeno Campanoli wrote:
> I&#39;m successfully using lambda {}.must_raise(ArgumentError), for
> instance, so largely I think I&#39;m on the right track, but when I try
> must_be_silent in the same context, I get:
>
> 1) Error:
> test_0003_mycfg_new_must_be_silent_(MykitSpec::MycfgSpec):
> NoMethodError: undefined method `must_be_silent&#39; for #&lt;Proc:
> 0x000000...@MyTest.rb:22 (lambda)&gt;
> MyTest.rb:22:in `block (3 levels) in &lt;main&gt;&#39;
0 new messages