test/test_creation.rb in top_n-1.0.0 vs test/test_creation.rb in top_n-1.0.1
- old
+ new
@@ -42,6 +42,12 @@
def test_creation_raises_assertion_with_non_fixnum_maxsize
assert_raises(ArgumentError) {
TopN.new(maxsize: 'foo')
}
end
+
+ def test_creation_raises_assertion_for_invalid_argument_names
+ assert_raises(ArgumentError) {
+ TopN.new(flarg: 1)
+ }
+ end
end