Sha256: da3863b001ead643ace327625d13e3bc0e6310419483d84d9fcfabcac92b332c

Contents?: true

Size: 806 Bytes

Versions: 1

Compression:

Stored size: 806 Bytes

Contents

require 'spec_helper'

describe command('. /etc/profile && which php-nabe') do
  let(:disable_sudo) { true }
  its(:stdout) { should match '/usr/local/php-nabe/php-nabe' }
end

%w[5.6.4 5.5.20].each do |php_version|
  describe command(". /etc/profile && php-nabe ls | grep '#{php_version}'") do
    let(:disable_sudo) { true }
    its(:stdout) { should match /#{Regexp.escape(php_version)}/ }
  end
end

describe command(". /etc/profile && php -v") do
  let(:disable_sudo) { true }
  its(:stdout) { should match /5\.6\.4/ }
end

describe command(". /etc/profile && php-config --configure-options") do
  let(:disable_sudo) { true }
  its(:stdout) { should match /with-curl/ }
end

describe command(". /etc/profile && php -m") do
  let(:disable_sudo) { true }
  its(:stdout) { should match /mbstring/ }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itamae-plugin-recipe-rtn_php_nabe-0.0.1 spec/system/php_nabe_spec.rb