Last active
March 17, 2019 01:50
-
-
Save tbelmega/2ea271fa5f20aeff20ddfdbed9d7f36e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PastaAppConfigTest { | |
@Test | |
fun `getBaseUrl returns env1 if targetEnvironment is env1`{ | |
// given | |
val config = PastaAppConfig("https://foo-sandbox.bar", "Production", "https://foo.bar") | |
// when | |
val result = config.getBaseUrl("Production") | |
// then | |
assertThat(result).isEqualTo(config.env1BaseURL) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment