#!/usr/bin/env bats

load 'helpers'

setup() { setup_party_sandbox; }
teardown() { teardown_party_sandbox; }

@test "test harness can locate the party binary path" {
  [ -n "$PARTY_BIN" ]
  # The file does not need to exist yet at this stage; we're proving
  # the path is computed correctly.
  case "$PARTY_BIN" in
    */party) ;;
    *) false ;;
  esac
}

@test "sandbox setup creates the override dir" {
  [ -d "$PARTY_SOCKET_DIR" ]
}
