Merge pull request #4659 from inspec/zenspider/resources-for-windows

Fixed runner tests for windows.
This commit is contained in:
Ryan Davis 2019-10-31 15:23:41 -07:00 committed by GitHub
commit b8ea9ad9ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)