Change return type
This commit is contained in:
parent
b5d07dd7d6
commit
e7e4ecc405
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user