package reaktor.scct

import org.specs.mock.Mockito
import org.specs.Specification

class EnvSpec extends Specification with Mockito {
  "Env" should {
    "provide Option[String]'s" in {
      val propName = "scct.test."+System.currentTimeMillis
      try {
        Env.sysOption(propName) mustEqual None
        System.setProperty(propName, "1")
        Env.sysOption(propName) mustEqual Some("1")
      } finally {
        System.setProperty(propName, null)
      }
    }
  }
}

package reaktor.scct

import org.specs.mock.Mockito
import org.specs.Specification

class EnvSpec extends Specification with Mockito {
  "Env" should {
    "provide Option[String]'s" in {
      val propName = "scct.test."+System.currentTimeMillis
      try {
        Env.sysOption(propName) mustEqual None
        System.setProperty(propName, "1")
        Env.sysOption(propName) mustEqual Some("1")
      } finally {
        System.clearProperty(propName)
      }
    }
  }
}

Fix systemproperty clearing in test.
Fix systemproperty clearing in test.
