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