Skip to content

Commit

Permalink
Update specs to correspond to the last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alup committed Apr 27, 2012
1 parent 720fb31 commit b96bc6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion spec/defines/rbenv__compile_spec.rb
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions spec/defines/rbenv__install_spec.rb
Expand Up @@ -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
Expand All @@ -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

0 comments on commit b96bc6e

Please sign in to comment.