Sha256: d895901e09ffcad7db64bd36a0c99102a7e8e55856c907b9ee749a371973cf4d

Contents?: true

Size: 1.06 KB

Versions: 42

Compression:

Stored size: 1.06 KB

Contents

require 'spec_helper'

include SpecInfra::Helper::Solaris

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

42 entries across 42 versions & 1 rubygems

Version Path
serverspec-1.16.0 spec/solaris/php_config_spec.rb
serverspec-1.15.0 spec/solaris/php_config_spec.rb
serverspec-1.14.0 spec/solaris/php_config_spec.rb
serverspec-1.13.0 spec/solaris/php_config_spec.rb
serverspec-1.12.0 spec/solaris/php_config_spec.rb
serverspec-1.11.0 spec/solaris/php_config_spec.rb
serverspec-1.10.0 spec/solaris/php_config_spec.rb
serverspec-1.9.1 spec/solaris/php_config_spec.rb
serverspec-1.9.0 spec/solaris/php_config_spec.rb
serverspec-1.8.0 spec/solaris/php_config_spec.rb
serverspec-1.7.1 spec/solaris/php_config_spec.rb
serverspec-1.7.0 spec/solaris/php_config_spec.rb
serverspec-1.6.0 spec/solaris/php_config_spec.rb
serverspec-1.5.0 spec/solaris/php_config_spec.rb
serverspec-1.4.2 spec/solaris/php_config_spec.rb
serverspec-1.4.1 spec/solaris/php_config_spec.rb
serverspec-1.4.0 spec/solaris/php_config_spec.rb
serverspec-1.3.0 spec/solaris/php_config_spec.rb
serverspec-1.2.0 spec/solaris/php_config_spec.rb
serverspec-1.1.0 spec/solaris/php_config_spec.rb