spec/spec_helper.rb in fnordmetric-0.7.1 vs spec/spec_helper.rb in fnordmetric-0.7.3
- old
+ new
@@ -34,5 +34,9 @@
def callback(&block)
block.call(*@last_return)
end
end
+
+def key_error_klass
+ RUBY_VERSION =~ /1.9.\d/ ? KeyError : IndexError
+end
\ No newline at end of file