lib/hedgelog/context.rb in hedgelog-0.1.3 vs lib/hedgelog/context.rb in hedgelog-0.1.4

- old
+ new

@@ -56,9 +56,9 @@ private def check_reserved_keys(hash) invalid_keys = Hedgelog::RESERVED_KEYS & hash.keys - raise ::ArgumentError, "#{self.class}: The following keys are reserved and cannot be used #{invalid_keys.to_a}." if invalid_keys.length > 0 + raise ::ArgumentError, "#{self.class}: The following keys are reserved and cannot be used #{invalid_keys.to_a}." unless invalid_keys.empty? end end end