macos_runner_spec: fix test

This commit is contained in:
Carlo Cabrera 2023-04-25 17:05:05 +08:00
parent 1a86a91c1b
commit 0c21ad20cd
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -3,10 +3,10 @@
require "macos_runner_spec"
describe MacOSRunnerSpec do
let(:spec) { described_class.new(name: "macOS 11-arm64", runner: "11-arm64", cleanup: true) }
let(:spec) { described_class.new(name: "macOS 11-arm64", runner: "11-arm64", timeout: 90, cleanup: true) }
it "has immutable attributes" do
[:name, :runner, :cleanup].each do |attribute|
[:name, :runner, :timeout, :cleanup].each do |attribute|
expect(spec.respond_to?("#{attribute}=")).to be(false)
end
end