Fix tests
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Wed, 26 Oct 2016 11:44:12 +0000 (13:44 +0200)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Wed, 26 Oct 2016 11:44:12 +0000 (13:44 +0200)
plugins/terminal/tests/org/jetbrains/plugins/terminal/TerminalShellCommandTest.java

index 4b3110b7fb936307e454b27b60c0baa3f7e09baf..cd80369bd2b1e7909696ac39a36ab2737978368c 100644 (file)
@@ -44,10 +44,10 @@ public class TerminalShellCommandTest extends TestCase {
 
   public void testAddRcConfig() {
     hasRcConfig("bash -i", "jediterm-bash.in", Maps.newHashMap());
-    hasRcConfig("sh --login", "jediterm-bash.in", Maps.newHashMap());
+    hasRcConfig("bash --login", "jediterm-bash.in", Maps.newHashMap());
     Map<String, String> envs = Maps.newHashMap();
-    hasRcConfig("sh --rcfile ~/.bashrc", "jediterm-bash.in", envs);
-    assertEquals("~/.bashrc", envs.get("JEDITERM_SOURCE"));
+    hasRcConfig("bash --rcfile ~/.bashrc", "jediterm-bash.in", envs);
+    assertEquals("~/.bashrc", envs.get("JEDITERM_USER_RCFILE"));
   }
 
   private static void hasRcConfig(String path, String configName, Map<String, String> envs) {