Skip to content

Commit a4fed4e

Browse files
committed
Add simple test for plugin-add command.
1 parent 5255f0e commit a4fed4e

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

test/plugin_commands.bats

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bats
2+
3+
load test_helpers
4+
5+
. $(dirname $BATS_TEST_DIRNAME)/lib/commands/plugin-add.sh
6+
. $(dirname $BATS_TEST_DIRNAME)/lib/commands/plugin-list.sh
7+
8+
setup() {
9+
setup_asdf_dir
10+
}
11+
12+
teardown() {
13+
clean_asdf_dir
14+
}
15+
16+
@test "plugin_add command with no URL specified adds a plugin using repo" {
17+
run plugin_add_command "elixir"
18+
[ "$status" -eq 0 ]
19+
20+
run plugin_list_command
21+
[ "$output" = "elixir" ]
22+
}

0 commit comments

Comments
 (0)