diff --git a/.gitignore b/.gitignore index 45b891c..fd5a9f0 100644 --- a/.gitignore +++ b/.gitignore @@ -7,9 +7,9 @@ Berksfile.lock .*.sw[a-z] *.un~ /cookbooks +.kitchen # Bundler Gemfile.lock bin/* .bundle/* - diff --git a/Gemfile b/Gemfile index e5187f6..7bbb7e2 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source 'https://rubygems.org' gem 'berkshelf' -gem "chefspec", "~> 1.2.0" +gem 'chefspec', '~> 1.2.0' gem 'thor-foodcritic' -gem 'test-kitchen', '~> 1.0.0.alpha.6' +gem 'test-kitchen' gem 'kitchen-vagrant', :group => :integration diff --git a/test/integration/default/bash/embedded_test.sh b/test/integration/default/bash/embedded_test.sh deleted file mode 100644 index 8ee7eed..0000000 --- a/test/integration/default/bash/embedded_test.sh +++ /dev/null @@ -1 +0,0 @@ -echo "The test passed!" diff --git a/test/integration/default/bats/chruby-installed.bats b/test/integration/default/bats/chruby-installed.bats new file mode 100644 index 0000000..1542c51 --- /dev/null +++ b/test/integration/default/bats/chruby-installed.bats @@ -0,0 +1,8 @@ +@test "chruby function is available" { + /bin/bash --login -c "chruby" +} + +@test "chruby version" { + run /bin/bash --login -c "chruby --version" + [ "$output" = "chruby version 0.3.4" ] +}