Fixed `ResultOfAssignmentUsed` inspection, when it's not in method
[idea/community.git] / plugins / groovy / test / org / jetbrains / plugins / groovy / lang / highlighting / GrInspectionTest.groovy
index d294dbf5c047f639b60380a2c7d0b932bd87d314..e232b54e87201a1b4d8f9ee4a3c96406f07fcc63 100644 (file)
@@ -50,11 +50,11 @@ class GrInspectionTest extends GrHighlightingTestBase {
 
   public void testResolveMetaClass() { doTest(new GroovyAccessibilityInspection()) }
 
-  public void testResultOfAssignmentUsed() { doTest(new GroovyResultOfAssignmentUsedInspection()) }
+  public void testResultOfAssignmentUsed() { doTest(new GroovyResultOfAssignmentUsedInspection(inspectClosures: true)) }
 
   public void testSuppressions() { doTest(new GrUnresolvedAccessInspection(), new GroovyUntypedAccessInspection()) }
 
-  public void testInnerClassConstructorThis() { doTest(true, true, true, new GroovyResultOfAssignmentUsedInspection()) }
+  public void testInnerClassConstructorThis() { doTest(true, true, true, new GroovyResultOfAssignmentUsedInspection(inspectClosures: true)) }
 
   public void testUnnecessaryReturnInSwitch() { doTest(new GroovyUnnecessaryReturnInspection()) }