Sha256: 6279532f232ed82aa6f256d2c7c59bf98f0ec7d9b3a3c64b371e696da5d40a46

Contents?: true

Size: 1.06 KB

Versions: 31

Compression:

Stored size: 1.06 KB

Contents

require 'spec_helper'

include Serverspec::Helper::Solaris10

describe php_config('default_mimetype') do
  let(:stdout) { 'text/html' }
  its(:value) { should eq 'text/html' }
  its(:command) { should eq "php -r 'echo get_cfg_var( \"default_mimetype\" );'" }
end

describe php_config('default_mimetype') do
  let(:stdout) { 'text/html' }
  its(:value) { should_not eq 'text/plain' }
end

describe php_config('session.cache_expire') do
  let(:stdout) { '180' }
  its(:value) { should eq 180 }
  its(:command) { should eq "php -r 'echo get_cfg_var( \"session.cache_expire\" );'" }
end

describe php_config('session.cache_expire') do
  let(:stdout) { '180' }
  its(:value) { should_not eq 360 }
end

describe php_config('mbstring.http_output_conv_mimetypes') do
  let(:stdout) { 'application' }
  its(:value) { should match /application/ }
  its(:command) { should eq "php -r 'echo get_cfg_var( \"mbstring.http_output_conv_mimetypes\" );'" }
end

describe php_config('mbstring.http_output_conv_mimetypes') do
  let(:stdout) { 'application' }
  its(:value) { should_not match /html/ }
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/solaris10/php_config_spec.rb
serverspec-0.11.4 spec/solaris10/php_config_spec.rb
serverspec-0.11.3 spec/solaris10/php_config_spec.rb
serverspec-0.11.2 spec/solaris10/php_config_spec.rb
serverspec-0.9.4 spec/solaris10/php_config_spec.rb
serverspec-0.9.3 spec/solaris10/php_config_spec.rb
serverspec-0.9.2 spec/solaris10/php_config_spec.rb
serverspec-0.9.1 spec/solaris10/php_config_spec.rb
serverspec-0.9.0 spec/solaris10/php_config_spec.rb
serverspec-0.8.1 spec/solaris10/php_config_spec.rb
serverspec-0.8.0 spec/solaris10/php_config_spec.rb
serverspec-0.7.13 spec/solaris10/php_config_spec.rb
serverspec-0.7.12 spec/solaris10/php_config_spec.rb
serverspec-0.7.11 spec/solaris10/php_config_spec.rb
serverspec-0.7.10 spec/solaris10/php_config_spec.rb
serverspec-0.7.9 spec/solaris10/php_config_spec.rb
serverspec-0.7.8 spec/solaris10/php_config_spec.rb
serverspec-0.7.7 spec/solaris10/php_config_spec.rb
serverspec-0.7.6 spec/solaris10/php_config_spec.rb
serverspec-0.7.5 spec/solaris10/php_config_spec.rb