diff --git a/spec/grape/validations/params_scope_spec.rb b/spec/grape/validations/params_scope_spec.rb index a9173e9a5b..8c5cce6ed0 100644 --- a/spec/grape/validations/params_scope_spec.rb +++ b/spec/grape/validations/params_scope_spec.rb @@ -126,7 +126,7 @@ class AnotherCustomType def self.parse(value) case value when 'invalid with message' - Grape::Validations::Types::InvalidValue.new "is not correct" + Grape::Validations::Types::InvalidValue.new 'is not correct' when 'invalid without message' Grape::Validations::Types::InvalidValue.new else