Skip to content

Commit

Permalink
Correct spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
kronos-pbrideau committed Sep 15, 2015
1 parent 2fcc230 commit 2ec25cc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/defines/resource_vhost_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,9 @@
}
end

it "should set the server_name of the rewrite server stanza to the first server_name with 'www.' stripped" do
is_expected.to contain_concat__fragment("#{title}-ssl-header").with_content(/^\s+server_name\s+foo.com;/)
it "should set the server_name of the rewrite server stanza to every server_name with 'www.' stripped" do
is_expected.to contain_concat__fragment("#{title}-ssl-header").with_content(/^\s+server_name\s+foo.com\s*;/)
is_expected.to contain_concat__fragment("#{title}-ssl-header").with_content(/^\s+server_name\s+bar.foo.com\s*;/)
end
end

Expand All @@ -726,8 +727,9 @@
}
end

it "should set the server_name of the rewrite server stanza to the first server_name with 'www.' stripped" do
is_expected.to contain_concat__fragment("#{title}-header").with_content(/^\s+server_name\s+foo.com;/)
it "should set the server_name of the rewrite server stanza to every server_name with 'www.' stripped" do
is_expected.to contain_concat__fragment("#{title}-header").with_content(/^\s+server_name\s+foo.com\s*;/)
is_expected.to contain_concat__fragment("#{title}-header").with_content(/^\s+server_name\s+bar.foo.com\s*;/)
end
end

Expand Down

0 comments on commit 2ec25cc

Please sign in to comment.