From 3c0db284acdf6a7445b0b82727ae95feeb4e8fc5 Mon Sep 17 00:00:00 2001 From: Ivan Povalyukhin Date: Sat, 28 Mar 2015 18:27:11 -0700 Subject: [PATCH] added test/README with small guides about testing framework --- test/README.md | 4 ++++ test/plugins/ruby.plugin.bats | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 test/README.md diff --git a/test/README.md b/test/README.md new file mode 100644 index 00000000..281b1b6f --- /dev/null +++ b/test/README.md @@ -0,0 +1,4 @@ +## Testing with [Bats](https://github.com/sstephenson/bats#installing-bats-from-source) +``` +bats test/{lib,plugins} +``` diff --git a/test/plugins/ruby.plugin.bats b/test/plugins/ruby.plugin.bats index 2328e6e8..d3bbd70d 100755 --- a/test/plugins/ruby.plugin.bats +++ b/test/plugins/ruby.plugin.bats @@ -9,7 +9,6 @@ load ../../plugins/available/ruby.plugin assert_line 1 "remove_gem () " } - @test "plugins ruby: PATH includes ~/.gem/ruby/bin" { last_path_entry=$(echo $PATH | tr ":" "\n" | tail -1); [[ "${last_path_entry}" == "${HOME}"/.gem/ruby/*/bin ]]