package org.elixir_lang.reference.callable; import com.intellij.psi.PsiElement; import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase; import org.elixir_lang.psi.call.Call; import static org.elixir_lang.reference.Callable.isVariable; public class Issue456Test extends LightCodeInsightFixtureTestCase { /* * Tests */ public void testIsVariable() { myFixture.configureByFiles("is_variable.ex"); PsiElement callable = myFixture .getFile() .findElementAt(myFixture.getCaretOffset()) .getPrevSibling(); assertInstanceOf(callable, Call.class); assertFalse("order_by is incorrectly marked as a variable", isVariable(callable)); } /* * Protected Instance Methods */ @Override protected String getTestDataPath() { return "testData/org/elixir_lang/reference/callable/issue_456"; } }