Change return type

This commit is contained in:
Douglas Eichelberger 2024-02-19 13:29:49 -08:00
parent b5d07dd7d6
commit e7e4ecc405
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class Requirement
cc: T.nilable(String),
build_bottle: T::Boolean,
bottle_arch: T.nilable(String),
).returns(T.untyped)
).void
}
def modify_build_environment(env: nil, cc: nil, build_bottle: false, bottle_arch: nil)
satisfied?(env: env, cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch)

View File

@ -177,7 +177,7 @@ RSpec.describe Requirement do
let(:klass) { Class.new(described_class) }
it "returns nil" do
expect(requirement.modify_build_environment).to be_nil
expect { requirement.modify_build_environment }.not_to raise_error
end
end
end