Skip to content

Commit

Permalink
Merge pull request #213 from tmc-cli/version-update-aleksi
Browse files Browse the repository at this point in the history
Fix the default server address.
  • Loading branch information
Salmela committed Jun 9, 2016
2 parents d0c5198 + e16926b commit 12edf5c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private String getServerAddress(CommandLine line) {
String serverAddress = line.getOptionValue("s");
if (serverAddress == null) {
// todo: don't hardcode the default value, get it from somewhere
serverAddress = "https://tmc.mooc.fi/staging";
serverAddress = "https://tmc.mooc.fi/mooc";
}
return serverAddress;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,4 @@ public void loginAsksPasswordFromUser() {
app.run(args);
verify(mockIo).readPassword(eq("password: "));
}

@Test
public void loginGetsRightServerAddressIfNotGiven() {
String[] args = {"login", "-u", username, "-p", password};
app.run(args);
verify(mockIo).println(eq("Login succesful."));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ public void localeIsSetToEn() {
assertTrue(new Locale("EN").equals(settings.getLocale()));
}

@Test
public void configRootIsSetCorrectly() {
/*assertTrue("/tmp/tmc-cli".equals(
settings.getConfigRoot().toString()));*/
}

@Test
public void noCourseIsSetByDefault() {
assertTrue(!settings.getCurrentCourse().isPresent());
Expand Down

0 comments on commit 12edf5c

Please sign in to comment.