Sha256: be13620000aeaa51c682bbb3880e8fa89abbb0357b2a2beef21b97ec2058695a

Contents?: true

Size: 1.06 KB

Versions: 20

Compression:

Stored size: 1.06 KB

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'AIX'
end

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

20 entries across 20 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/aix/php_config_spec.rb
serverspec-0.11.0 spec/aix/php_config_spec.rb
serverspec-0.10.13 spec/aix/php_config_spec.rb
serverspec-0.10.12 spec/aix/php_config_spec.rb
serverspec-0.10.11 spec/aix/php_config_spec.rb
serverspec-0.10.10 spec/aix/php_config_spec.rb
serverspec-0.10.9 spec/aix/php_config_spec.rb
serverspec-0.10.8 spec/aix/php_config_spec.rb
serverspec-0.10.7 spec/aix/php_config_spec.rb
serverspec-0.10.6 spec/aix/php_config_spec.rb
serverspec-0.10.5 spec/aix/php_config_spec.rb
serverspec-0.10.4 spec/aix/php_config_spec.rb
serverspec-0.10.3 spec/aix/php_config_spec.rb
serverspec-0.10.2 spec/aix/php_config_spec.rb
serverspec-0.10.1 spec/aix/php_config_spec.rb
serverspec-0.10.0 spec/aix/php_config_spec.rb
serverspec-0.9.8 spec/aix/php_config_spec.rb
serverspec-0.9.7 spec/aix/php_config_spec.rb
serverspec-0.9.6 spec/aix/php_config_spec.rb
serverspec-0.9.5 spec/aix/php_config_spec.rb