Sha256: dc0479728b07da67c4ac7727607e51767950d2d72655352d5b789304ff92d4aa
Contents?: true
Size: 941 Bytes
Versions: 2
Compression:
Stored size: 941 Bytes
Contents
require 'spec_helper' describe command('. /home/vagrant/.bash_profile; which nodebrew') do let(:disable_sudo) { true } its(:stdout) { should match '/home/vagrant/.nodebrew/current/bin/nodebrew' } end %w[io@v3.3.0 v4.0.0].each do |node_version| describe command(". /home/vagrant/.bash_profile; nodebrew ls | grep '#{node_version}'") do let(:disable_sudo) { true } its(:stdout) { should match /#{Regexp.escape(node_version)}/ } end end describe command(". /home/vagrant/.bash_profile; nodebrew use io@v3.3.0 && npm ls -g coffee-script") do let(:disable_sudo) { false } its(:stdout) { should match /1\.9\.3/ } end describe command(". /home/vagrant/.bash_profile; nodebrew use v4.0.0 && npm ls -g gulp") do let(:disable_sudo) { false } its(:stdout) { should match /gulp/ } end describe command(". /home/vagrant/.bash_profile; node -v") do let(:disable_sudo) { true } its(:stdout) { should match /v4\.0\.0/ } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
itamae-plugin-recipe-nodebrew-0.1.1 | spec/user/nodebrew_spec.rb |
itamae-plugin-recipe-nodebrew-0.1.0 | spec/user/nodebrew_spec.rb |