Skip to content

Commit

Permalink
(MODULES-4213) Adds spec test for rewrite_inherit
Browse files Browse the repository at this point in the history
  • Loading branch information
bmjen committed Dec 14, 2016
1 parent fd0a140 commit 3ba1c4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/defines/vhost_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@
'rewrite_base' => '/',
'rewrite_rule' => '^index\.html$ welcome.html',
'rewrite_cond' => '%{HTTP_USER_AGENT} ^MSIE',
'rewrite_inherit' => true,
'setenv' => ['FOO=/bin/true'],
'setenvif' => 'Request_URI "\.gif$" object_is_image=gif',
'setenvifnocase' => 'REMOTE_ADDR ^127.0.0.1 localhost=true',
Expand Down Expand Up @@ -556,6 +557,8 @@
it { is_expected.to contain_concat__fragment('rspec.example.com-rack') }
it { is_expected.to contain_concat__fragment('rspec.example.com-redirect') }
it { is_expected.to contain_concat__fragment('rspec.example.com-rewrite') }
it { is_expected.to contain_concat__fragment('rspec.example.com-rewrite').with(
:content => /^\s+RewriteOptions Inherit$/ ) }
it { is_expected.to contain_concat__fragment('rspec.example.com-scriptalias') }
it { is_expected.to contain_concat__fragment('rspec.example.com-serveralias') }
it { is_expected.to contain_concat__fragment('rspec.example.com-setenv').with_content(
Expand Down

0 comments on commit 3ba1c4b

Please sign in to comment.