Fixed runner tests for windows.

Passes on my side and only fails on buildkite's windows. I have no
idea why / how it differs. This should be neutral enough that it works
on both.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-10-31 15:20:58 -07:00
parent fe3fc3ffbf
commit e54f0b3646

View file

@ -11,7 +11,7 @@ describe Inspec::Runner do
it "bug #4524" do
file = <<-RUBY
describe "a thing" do
before(:all) { command("true") }
before(:all) { os }
it("should pass") {}
end
RUBY
@ -26,8 +26,8 @@ describe Inspec::Runner do
it "bug #4587" do
file = <<-RUBY
describe "a thing" do
subject! { command("true") }
its("exit_status") { should eq 0 }
subject! { os }
its("family") { should_not eq 42 }
end
RUBY
runner.add_target("bug4587.rb" => file)