Add tests for every command

This commit is contained in:
Loïc Guitaut
2015-09-08 14:47:52 +02:00
parent cc5c7fee25
commit bd2bad8e1a
19 changed files with 416 additions and 31 deletions

12
tests/redis_create.bats Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bats
load test_helper
@test "($PLUGIN_COMMAND_PREFIX:create) success" {
run dokku "$PLUGIN_COMMAND_PREFIX:create" l
assert_contains "${lines[*]}" "container created: l"
}
@test "($PLUGIN_COMMAND_PREFIX:create) error when there are no arguments" {
run dokku "$PLUGIN_COMMAND_PREFIX:create"
assert_contains "${lines[*]}" "Please specify a name for the service"
}