Sha256: ff8f62c88b5b5cd905d7cef2b68e7b4847ca79e64513ecba585e879339b003c7
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
require 'spec_helper' describe 'init.sh' do context 'when run', :slow => true do before(:all) do @output = `sh init.sh < /dev/null` @exit_status = $? end it 'should not exit with an error' do expect(@exit_status).to be == 0 end it "should create ~/.vagrant.d directory" do expect(File.directory?("#{ENV['HOME']}/.vagrant.d")).to be == true end context "output" do subject { @output } it { should =~ /VirtualBox/ } if system 'which vagrant > /dev/null' it { should =~ /Found vagrant/ } it { should =~ /Vagrant\s*\d+\.\d+\.\d+/ } # should mention plugins %w{deep_merge vagrant-digitalocean vagrant-vbguest salted-rails}.each do |plugin| it { should =~ /plugin #{plugin}/ } end else it { should =~ /Please install vagrant/ } end if system 'which VirtualBox > /dev/null' it { should =~ /Found VirtualBox/ } it { should =~ /VirtualBox\D+\d+\.\d+\.\d+/ } else it { should =~ /Please install VirtualBox/ } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
salted-rails-0.0.9 | spec/integration/init_sh_spec.rb |