Skip to content

Commit

Permalink
PE-3136 Fix test leakage.
Browse files Browse the repository at this point in the history
  • Loading branch information
fenallen committed Jul 14, 2017
1 parent 90c075a commit d39e5e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class UserInfoGeneratorSpec extends UnitSpec with PropertyChecks with BeforeAndA
FeatureSwitch.enable(UserInfoFeatureSwitches.countryCode)
}

override protected def afterEach(): Unit = {
FeatureSwitch.enable(UserInfoFeatureSwitches.countryCode)
}

"userInfo" should {
"generate an OpenID Connect compliant UserInfo response" in forAll(UserInfoGenerator.userInfo) { userInfo: UserInfo =>
UserInfoGenerator.firstNames should contain (userInfo.given_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ class UserInfoTransformerSpec extends UnitSpec with MockitoSugar with BeforeAndA
FeatureSwitch.enable(UserInfoFeatureSwitches.countryCode)
}

override protected def afterEach() = {
FeatureSwitch.enable(UserInfoFeatureSwitches.countryCode)
}

trait Setup {
implicit val hc: HeaderCarrier = HeaderCarrier()

Expand Down

0 comments on commit d39e5e0

Please sign in to comment.