local integration tests #389
| @ -1,9 +1,9 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
|  |  | ||||||
| _common_setup() { | _common_setup() { | ||||||
|   load '/usr/lib/bats/bats-support/load' |   bats_load_library bats-support | ||||||
|   load '/usr/lib/bats/bats-assert/load' |   bats_load_library bats-assert | ||||||
|   load '/usr/lib/bats/bats-file/load' |   bats_load_library bats-file | ||||||
|  |  | ||||||
|   load "$PWD/tests/integration/helpers/app" |   load "$PWD/tests/integration/helpers/app" | ||||||
|   load "$PWD/tests/integration/helpers/git" |   load "$PWD/tests/integration/helpers/git" | ||||||
|  | |||||||
| @ -1,7 +1,11 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
|  |  | ||||||
| _add_server() { | _add_server() { | ||||||
|   run $ABRA server add "$TEST_SERVER" |   if [[ "$TEST_SERVER" == "default" ]]; then | ||||||
|  |       run $ABRA server add -l | ||||||
|  |   else | ||||||
|  |       run $ABRA server add "$TEST_SERVER" | ||||||
|  |   fi | ||||||
|   assert_success |   assert_success | ||||||
|   assert_exists "$ABRA_DIR/servers/$TEST_SERVER" |   assert_exists "$ABRA_DIR/servers/$TEST_SERVER" | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user