Skip to content

Commit

Permalink
using should matcher for assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
fhopf committed Aug 2, 2011
1 parent 29cdcc9 commit a0179d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/scala/org/synyx/git/RepositoryServiceTest.scala
Expand Up @@ -3,10 +3,11 @@ package org.synyx.git
import org.scalatest.FunSuite
import java.io.File
import org.scalatest.junit.JUnitRunner
import org.scalatest.matchers.ShouldMatchers
import org.junit.runner.RunWith

@RunWith(classOf[JUnitRunner])
class RepositoryServiceTest extends FunSuite {
class RepositoryServiceTest extends FunSuite with ShouldMatchers {

val service = RepositoryService

Expand All @@ -15,9 +16,9 @@ class RepositoryServiceTest extends FunSuite {

service.updateRepo(repo)

assert(repo.folder.exists)
repo.folder.exists should be(true)
val gitDir = new File(repo.folder, ".git")
assert(gitDir.exists)
gitDir.exists should be(true)

}

Expand Down

0 comments on commit a0179d1

Please sign in to comment.