RubyMine syntax checking interprets block as a hash...

Just downloaded RubyMine 3.1.1 (windows version), set up my pet project for Ruby1.9.2... after some tweaks to the gem set, all my unit tests work fine.

However, my unit tests have some red on them ... I turned off the spell-checker, which helped some.  However, it's still objecting to the code in my unit tests....

I can't get one particular construct to pass muster :

    assert_raise (MyAppException) {"bad_argument")}

The Wrong hash inspection is jumping on this, claiming that I need two arguments between the curly brackets... when it's actually a code block.

If I turn off the Ruby code inspection completely, it then objects to the closed bracket at the end, with Expected =>, which still sounds like the IDE is treating it as a hash.

I can't seem to get rid of the red error indication... While not truly harmful, it is distracting.  Any clues ?


Comment actions Permalink

Hello Lonnie,

Thanks for the issue, feel free to watch it at:
As a workaround you can remove space after assert_raise identifier.


Comment actions Permalink

Thanks, Oleg.  I guess I should have thought of that. Workaround works, code looks happy now.:)



Please sign in to leave a comment.