Sha256: 1db679ccdb729c31157af9eda50ef0dfc23c0e903c0df5e162dc4b1423c28382

Contents?: true

Size: 1.06 KB

Versions: 42

Compression:

Stored size: 1.06 KB

Contents

require 'spec_helper'

include SpecInfra::Helper::Darwin

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.0.0 spec/darwin/php_config_spec.rb
serverspec-0.16.0 spec/darwin/php_config_spec.rb
serverspec-0.15.5 spec/darwin/php_config_spec.rb
serverspec-0.15.4 spec/darwin/php_config_spec.rb
serverspec-0.15.3 spec/darwin/php_config_spec.rb
serverspec-0.15.2 spec/darwin/php_config_spec.rb
serverspec-0.15.1 spec/darwin/php_config_spec.rb
serverspec-0.15.0 spec/darwin/php_config_spec.rb
serverspec-0.14.4 spec/darwin/php_config_spec.rb
serverspec-0.14.3 spec/darwin/php_config_spec.rb
serverspec-0.14.2 spec/darwin/php_config_spec.rb
serverspec-0.14.1 spec/darwin/php_config_spec.rb
serverspec-0.14.0 spec/darwin/php_config_spec.rb
serverspec-0.13.7 spec/darwin/php_config_spec.rb
serverspec-0.13.6 spec/darwin/php_config_spec.rb
serverspec-0.13.5 spec/darwin/php_config_spec.rb
serverspec-0.13.4 spec/darwin/php_config_spec.rb
serverspec-0.13.3 spec/darwin/php_config_spec.rb
serverspec-0.13.2 spec/darwin/php_config_spec.rb
serverspec-0.13.1 spec/darwin/php_config_spec.rb