aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllen Spertus <ellen.spertus@gmail.com>2018-09-04 14:45:08 -0700
committerEllen Spertus <ellen.spertus@gmail.com>2018-09-04 14:45:08 -0700
commitf41d8c48f4ce107db558b86a956fbdfd1e018a32 (patch)
treef0046a11d725da9d851d9ff20aafab5a45302ee6
parent98eebb1d9abc954c0fe1735bf5472c57e71dc7a8 (diff)
downloadsandcrawler-f41d8c48f4ce107db558b86a956fbdfd1e018a32.tar.gz
sandcrawler-f41d8c48f4ce107db558b86a956fbdfd1e018a32.zip
minor style improvement
-rw-r--r--scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala b/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala
index 3f6b87c..112a5e5 100644
--- a/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala
+++ b/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala
@@ -16,11 +16,11 @@ class ScorableFeaturesTest extends FlatSpec with Matchers {
private def titleToSlug(s : String) : Option[String] = ScorableFeatures.create(title = s).toSlug
"mapToSlug()" should "extract the parts of titles before a colon" in {
- titleToSlug("HELLO:there") shouldBe (Some("hellothere"))
+ titleToSlug("HELLO:there") shouldBe Some("hellothere")
}
it should "extract an entire colon-less string" in {
- titleToSlug("hello THERE") shouldBe (Some("hellothere"))
+ titleToSlug("hello THERE") shouldBe Some("hellothere")
}
it should "return Scorable.NoSlug if given empty string" in {