test/hightop_test.rb in hightop-0.1.4 vs test/hightop_test.rb in hightop-0.2.0

- old
+ new

@@ -99,9 +99,15 @@ "San Francisco" => 2 } assert_equal expected, Visit.top(:city, min: 2, distinct: :user_id) end + def test_bad_argument + assert_raises(ArgumentError) do + Visit.top(:city, boom: true) + end + end + def create_city(city, count = 1) create({city: city}, count) end def create(attributes, count = 1)