Skip to content

Instantly share code, notes, and snippets.

@tbelmega
Last active March 17, 2019 01:50
Show Gist options
  • Save tbelmega/2ea271fa5f20aeff20ddfdbed9d7f36e to your computer and use it in GitHub Desktop.
Save tbelmega/2ea271fa5f20aeff20ddfdbed9d7f36e to your computer and use it in GitHub Desktop.
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