package com.sksamuel.kotest.engine.active

import io.kotest.engine.KotestEngineProperties
import io.kotest.core.annotation.Isolate
import io.kotest.core.spec.style.WordSpec
import io.kotest.extensions.system.withSystemProperty
import io.kotest.matchers.booleans.shouldBeTrue

@Isolate
class BangPropertyOverrideTest : WordSpec({

   "setting system property to override bang" should {
      var run = false
      withSystemProperty(KotestEngineProperties.disableBangPrefix, "true") {
         "!allow this test to run" {
            run = true
         }
      }
      run.shouldBeTrue()
   }

})
