You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am running into an issue with blocks in rbs. It should be noted that this spec passes with rbs disabled.
rbs 3.5.3
given the following RSpec spec:
describe'.parameter'doit'adds a parameter to the parameter set'dodescribed_class.parameter(:test)dodesc'A test parameter'endexpect(described_class.parameters.test).tobe_an_instance_of(Domainic::Type::Constraint::Parameter).and(have_attributes(name: :test,description: 'A test parameter'))endend
classBasedef self.parameter: (::String | Symbol parameter_name) { (?) -> DSL::ParameterBuilder } -> voidprivatedef self.parameter_builder: -> DSL::ParameterBuilder
end
moduleDSLclassParameterBuilderdefdefine(parameter_name, &)@current_parameter=@data[parameter_name.to_sym] ||=
PARAMETER_DEFAULTS.transform_values(&:dup).merge(name: parameter_name.to_sym)instance_exec(&)ifblock_given?selfenddefdescription(description_string)raiseArgumentError,'No parameter is currently being defined'if@current_parameter.nil?@current_parameter[:description]=description_stringselfendaliasdescdescriptionendend
Hi, I am running into an issue with blocks in rbs. It should be noted that this spec passes with rbs disabled.
given the following RSpec spec:
and the following signatures:
I get:
Additionally the recommended annotation to skip tests does not fix the issue:
The text was updated successfully, but these errors were encountered: