src/main/java/com/greghaskins/spectrum/internal/hooks/LetHook.java
/**
   * Will throw an exception if this method happens to be called while Spectrum is still defining
   * tests, rather than executing them. Useful to see if a hook is being accidentally used during
   * definition.
   */
Will throw an exception if this method happens to be called while Spectrum is still defining
tests, rather than executing them. Useful to see if a hook is being accidentally used during
definition.
Will throw an exception if this method happens to be called while Spectrum is still defining tests rather than executing them . Useful to see if a hook is being accidentally used during definition .
private void assertSpectrumIsRunningTestsNotDeclaringThem() {
    if (DeclarationState.instance().getCurrentSuiteBeingDeclared() != null) {
      throw new IllegalStateException(getExceptionMessageIfUsedAtDeclarationTime());
    }
  }
private void assertSpectrumIsRunningTestsNotDeclaringThem ( ) { if ( DeclarationState . instance ( ) . getCurrentSuiteBeingDeclared ( ) != null ) { throw new IllegalStateException ( getExceptionMessageIfUsedAtDeclarationTime ( ) ) ; } }
Will throw an exception if this method happens to be called while Spectrum is still defining
 tests, rather than executing them.
Will throw an exception if this method happens to be called while Spectrum is still defining tests rather than executing them .