make sure sed replacements are posix compliant

using \s will not work in some systems, use [[:space]] instead

Fixes #5812
This commit is contained in:
Joao Duarte 2016-08-23 12:13:02 +01:00 committed by João Duarte
parent 4f97021af2
commit 6c06082448

View file

@ -18,7 +18,7 @@ shared_examples "logstash update" do |logstash|
before do
logstash.run_command_in_path("bin/logstash-plugin install --no-verify --version #{previous_version} #{plugin_name}")
# Logstash wont update when we have a pinned versionin the gemfile so we remove them
logstash.replace_in_gemfile(',\s"0.1.0"', "")
logstash.replace_in_gemfile(',[[:space:]]"0.1.0"', "")
expect(logstash).to have_installed?(plugin_name, previous_version)
end