Sha256: 2b74aa3fc352ec17ec024807e92d2e0f33a08813ab7080daf523182fb417b613

Contents?: true

Size: 1.07 KB

Versions: 20

Compression:

Stored size: 1.07 KB

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'Darwin'
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/darwin/php_config_spec.rb
serverspec-0.11.0 spec/darwin/php_config_spec.rb
serverspec-0.10.13 spec/darwin/php_config_spec.rb
serverspec-0.10.12 spec/darwin/php_config_spec.rb
serverspec-0.10.11 spec/darwin/php_config_spec.rb
serverspec-0.10.10 spec/darwin/php_config_spec.rb
serverspec-0.10.9 spec/darwin/php_config_spec.rb
serverspec-0.10.8 spec/darwin/php_config_spec.rb
serverspec-0.10.7 spec/darwin/php_config_spec.rb
serverspec-0.10.6 spec/darwin/php_config_spec.rb
serverspec-0.10.5 spec/darwin/php_config_spec.rb
serverspec-0.10.4 spec/darwin/php_config_spec.rb
serverspec-0.10.3 spec/darwin/php_config_spec.rb
serverspec-0.10.2 spec/darwin/php_config_spec.rb
serverspec-0.10.1 spec/darwin/php_config_spec.rb
serverspec-0.10.0 spec/darwin/php_config_spec.rb
serverspec-0.9.8 spec/darwin/php_config_spec.rb
serverspec-0.9.7 spec/darwin/php_config_spec.rb
serverspec-0.9.6 spec/darwin/php_config_spec.rb
serverspec-0.9.5 spec/darwin/php_config_spec.rb