From ea4d78ffc348ba24a9fed34e6ae324248f7ff40c Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Thu, 17 Dec 2015 23:15:19 +0000 Subject: [PATCH] Basic omf tests --- .travis.yml | 2 ++ pkg/omf/spec/basic_spec.fish | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pkg/omf/spec/basic_spec.fish diff --git a/.travis.yml b/.travis.yml index 7223a77..5180631 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,8 @@ before_script: script: - docker run -t oh-my-fish /usr/bin/fish "tests/run.fish" + - docker run -t oh-my-fish /usr/bin/fish -c "cd pkg/fish-spec; fish-spec" + - docker run -t oh-my-fish /usr/bin/fish -c "cd pkg/omf; fish-spec" - docker run -t oh-my-fish /usr/bin/fish "tests/test-generate-themes-doc.fish" after_failure: diff --git a/pkg/omf/spec/basic_spec.fish b/pkg/omf/spec/basic_spec.fish new file mode 100644 index 0000000..22c0d3a --- /dev/null +++ b/pkg/omf/spec/basic_spec.fish @@ -0,0 +1,22 @@ +function describe_basic_tests + function before_all + set -gx CI WORKAROUND + end + + function it_has_a_help_command + set -l output (omf help) + assert 0 = $status + end + + function it_has_a_doctor_command + set -l output (omf doctor) + assert 0 = $status + end + + function it_install_packages + set -l remove_output (omf remove apt ^/dev/null) + set -l install_output (omf install apt) + + assert 0 = $status + end +end