[rspec-users] slightly confusing error message

Roger Pack lists at ruby-forum.com
Tue Aug 23 14:00:44 EDT 2011

This error message:

   it 'should' do
      proc { eval("a=")}.should raise_exception(/SyntaxError/)

       expected Exception with message matching /SyntaxError/, got
#<SyntaxError: (eval):1: syntax error, unexpected end-of-file>

Is a bit confusing, since it appears from the error output that it
*does* match /SyntaxError/

Might be able to word it better or along those lines.

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list