-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from doughsay/master
Use a git repository for installing plugins.
- Loading branch information
Showing
7 changed files
with
94 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
installs | ||
plugins | ||
shims | ||
repository | ||
.vagrant | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bats | ||
|
||
load test_helpers | ||
|
||
. $(dirname $BATS_TEST_DIRNAME)/lib/commands/plugin-add.sh | ||
. $(dirname $BATS_TEST_DIRNAME)/lib/commands/plugin-list.sh | ||
|
||
setup() { | ||
setup_asdf_dir | ||
} | ||
|
||
teardown() { | ||
clean_asdf_dir | ||
} | ||
|
||
@test "plugin_add command with no URL specified adds a plugin using repo" { | ||
run plugin_add_command "elixir" | ||
[ "$status" -eq 0 ] | ||
|
||
run plugin_list_command | ||
[ "$output" = "elixir" ] | ||
} | ||
|
||
@test "plugin_add command with no URL specified fails if the plugin doesn't exist" { | ||
run plugin_add_command "does-not-exist" | ||
[ "$status" -eq 1 ] | ||
echo "$output" | grep "plugin does-not-exist not found in repository" | ||
} |