diff --git a/src/test/scala/view/AvatarImageProviderSpec.scala b/src/test/scala/view/AvatarImageProviderSpec.scala index a331704..079771a 100644 --- a/src/test/scala/view/AvatarImageProviderSpec.scala +++ b/src/test/scala/view/AvatarImageProviderSpec.scala @@ -15,24 +15,24 @@ implicit val context = app.Context(createSystemSettings(true), None, null) val provider = new AvatarImageProviderImpl(Some(createAccount(None))) - provider.toHtml("user", 20).toString mustEqual - "" + provider.toHtml("user", 32).toString mustEqual + "" } "show uploaded image even if gravatar integration is enabled" in { implicit val context = app.Context(createSystemSettings(true), None, null) val provider = new AvatarImageProviderImpl(Some(createAccount(Some("icon.png")))) - provider.toHtml("user", 20).toString mustEqual - "" + provider.toHtml("user", 32).toString mustEqual + "" } "show local image for no image account if gravatar integration is disabled" in { implicit val context = app.Context(createSystemSettings(false), None, null) val provider = new AvatarImageProviderImpl(Some(createAccount(None))) - provider.toHtml("user", 20).toString mustEqual - "" + provider.toHtml("user", 32).toString mustEqual + "" } "show Gravatar image for specified mail address if gravatar integration is enabled" in { @@ -40,7 +40,7 @@ val provider = new AvatarImageProviderImpl(None) provider.toHtml("user", 20, "hoge@hoge.com").toString mustEqual - "" + "" } "show unknown image for unknown user if gravatar integration is enabled" in { @@ -48,7 +48,7 @@ val provider = new AvatarImageProviderImpl(None) provider.toHtml("user", 20).toString mustEqual - "" + "" } "show unknown image for specified mail address if gravatar integration is disabled" in { @@ -56,7 +56,7 @@ val provider = new AvatarImageProviderImpl(None) provider.toHtml("user", 20, "hoge@hoge.com").toString mustEqual - "" + "" } "add tooltip if it's enabled" in { @@ -64,7 +64,7 @@ val provider = new AvatarImageProviderImpl(None) provider.toHtml("user", 20, "hoge@hoge.com", true).toString mustEqual - "" + "" } }