diff options
author | Tim Smith <tsmith@chef.io> | 2021-10-20 17:56:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 17:56:25 -0700 |
commit | 1b8d15dd5b9126ae5c812c2050cc9a8ebbf24503 (patch) | |
tree | 6811b2024b95e61505813361b8be44ac2b1f2452 | |
parent | 9c88df077dd05c3593dbfc184fe2a9b6a72d113e (diff) | |
parent | 50c26342c1f7c0a0cf8b1b07d05458cb6ddf37f1 (diff) | |
download | ohai-1b8d15dd5b9126ae5c812c2050cc9a8ebbf24503.tar.gz |
Merge pull request #1680 from chef/testing
Add unit testing on windows
-rw-r--r-- | .github/workflows/unit.yml | 2 | ||||
-rw-r--r-- | spec/unit/application_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 2f2f9eab..d98f705b 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -11,7 +11,7 @@ jobs: test: strategy: matrix: - os: ['ubuntu-latest', 'macos-latest'] + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] ruby: ['2.7', '3.0'] name: Unit test on ${{ matrix.os }} with Ruby ${{ matrix.ruby }} runs-on: ${{ matrix.os }} diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb index 4895b184..86970cdb 100644 --- a/spec/unit/application_spec.rb +++ b/spec/unit/application_spec.rb @@ -44,7 +44,7 @@ RSpec.describe "Ohai::Application" do before do if windows? expect(ChefConfig::WorkstationConfigLoader).to receive(:new) - .with("C:#{config_file}", Ohai::Log) + .with(/[CD]:#{config_file}/, Ohai::Log) .and_return(config_loader) else expect(ChefConfig::WorkstationConfigLoader).to receive(:new) |