Sha256: 36eea3422de3e8b8214f8a3ea7222e4cd17bf0d455bda7e93ae019189be137d7
Contents?: true
Size: 923 Bytes
Versions: 8
Compression:
Stored size: 923 Bytes
Contents
require 'spec_helper' describe command('. /home/vagrant/.bash_profile; which rbenv') do let(:disable_sudo) { true } its(:stdout) { should match '/home/vagrant/.rbenv/bin/rbenv' } end %w[2.2.0 2.1.3].each do |ruby_version| describe command(". /home/vagrant/.bash_profile; rbenv versions | grep '#{ruby_version}'") do let(:disable_sudo) { true } its(:stdout) { should match /#{Regexp.escape(ruby_version)}/ } end end describe command(". /home/vagrant/.bash_profile; rbenv shell 2.2.0; gem list | grep 'sinatra'") do let(:disable_sudo) { true } its(:stdout) { should match /sinatra/ } end describe command(". /home/vagrant/.bash_profile; rbenv shell 2.1.3; gem list | grep 'rake'") do let(:disable_sudo) { true } its(:stdout) { should match /10\.2\.0/ } end describe command(". /home/vagrant/.bash_profile; ruby -v") do let(:disable_sudo) { true } its(:stdout) { should match /2\.2\.0/ } end
Version data entries
8 entries across 8 versions & 1 rubygems