lib/bindata/choice.rb in bindata-0.11.0 vs lib/bindata/choice.rb in bindata-0.11.1

- old
+ new

@@ -90,10 +90,10 @@ def ensure_valid_keys(choices) if choices.has_key?(nil) raise ArgumentError, ":choices hash may not have nil key" end - if choices.keys.detect { |key| Symbol === key } + if choices.keys.detect { |key| key.is_a?(Symbol) } raise ArgumentError, ":choices hash may not have symbols for keys" end end end