From b96bc6e4a589772ed2c78a038538edb147ac9fd6 Mon Sep 17 00:00:00 2001 From: Andreas Loupasakis Date: Fri, 27 Apr 2012 14:39:39 +0300 Subject: [PATCH] Update specs to correspond to the last changes --- spec/defines/rbenv__compile_spec.rb | 2 +- spec/defines/rbenv__install_spec.rb | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/spec/defines/rbenv__compile_spec.rb b/spec/defines/rbenv__compile_spec.rb index 04e03cd..e7e77a7 100644 --- a/spec/defines/rbenv__compile_spec.rb +++ b/spec/defines/rbenv__compile_spec.rb @@ -6,7 +6,7 @@ it "installs ruby of the chosen version" do should contain_exec("install ruby #{params[:ruby_version]}"). - with_command("rbenv-install #{params[:ruby_version]}") + with_command("rbenv install #{params[:ruby_version]}") end it "issues a rehash command" do diff --git a/spec/defines/rbenv__install_spec.rb b/spec/defines/rbenv__install_spec.rb index 736fc8e..26de209 100644 --- a/spec/defines/rbenv__install_spec.rb +++ b/spec/defines/rbenv__install_spec.rb @@ -12,7 +12,7 @@ it "appends in .bashrc, a command to include .rbenv/bin folder in PATH env variable" do should contain_exec("configure rbenv path"). - with_command('echo "export PATH=\$HOME/.rbenv/bin:\$PATH" >> .bashrc') + with_command('echo "export PATH=/home/tester/.rbenv/bin:$PATH" >> .bashrc') end it "appends in .bashrc, a command to initialiaze rbenv in each bash session" do @@ -24,14 +24,9 @@ context 'install ruby-build' do it "clones ruby-build" do - should contain_exec("checkout ruby-build"). + should contain_exec("checkout ruby-build plugin"). with_command("git clone git://github.com/sstephenson/ruby-build.git") end - - it "runs installation shell script" do - should contain_exec("install ruby-build"). - with_command("sh install.sh") - end end end