Fix version test

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-02-20 20:44:25 -05:00
parent 491ec001a2
commit 947cf32307

View file

@ -11,7 +11,7 @@ describe 'command tests' do
out.stderr.must_equal ''
out.exit_status.must_equal 0
# Tolerate working on an out of date branch
output = out.stdout.split("\n").reject { |l| l.start_with?('Your version of InSpec is out of date!') }.join("\n")
output = out.stdout.split("\n").reject { |l| l.start_with?('Your version of InSpec is out of date!') }.join("\n") + "\n"
output.must_equal Inspec::VERSION + "\n"
end