open_closed_type

Rule languages supports extensions to OpenClosedType

    • Given Clean OpenHAB with latest Ruby Libraries
  • OpenClosedType is inspectable

    • Given code in a rules file
      logger.info("OpenClosedType inspected: #{CLOSED.inspect}")
    • When I deploy the rules file
    • Then It should log "OpenClosedType inspected: CLOSED" within 5 seconds
  • OpenClosedType support ! operator

    • Given code in a rules file
      logger.info("!OPEN = #{!OPEN}")
      logger.info("!CLOSED = #{!CLOSED}")
    • When I deploy the rules file
    • Then It should log "!OPEN = CLOSED" within 5 seconds
    • And It should log "!CLOSED = OPEN" within 5 seconds